Lines Matching refs:scheme
57 const char **scheme ));
59 int ldap_pvt_url_scheme2proto( const char *scheme ) in ldap_pvt_url_scheme2proto() argument
61 assert( scheme != NULL ); in ldap_pvt_url_scheme2proto()
63 if( scheme == NULL ) { in ldap_pvt_url_scheme2proto()
67 if( strcmp("ldap", scheme) == 0 || strcmp("pldap", scheme) == 0 ) { in ldap_pvt_url_scheme2proto()
71 if( strcmp("ldapi", scheme) == 0 ) { in ldap_pvt_url_scheme2proto()
75 if( strcmp("ldaps", scheme) == 0 || strcmp("pldaps", scheme) == 0 ) { in ldap_pvt_url_scheme2proto()
79 if( strcmp("cldap", scheme) == 0 ) { in ldap_pvt_url_scheme2proto()
87 int ldap_pvt_url_scheme_port( const char *scheme, int port ) in ldap_pvt_url_scheme_port() argument
89 assert( scheme != NULL ); in ldap_pvt_url_scheme_port()
92 if( scheme == NULL ) return port; in ldap_pvt_url_scheme_port()
94 if( strcmp("ldap", scheme) == 0 || strcmp("pldap", scheme) == 0 ) { in ldap_pvt_url_scheme_port()
98 if( strcmp("ldapi", scheme) == 0 ) { in ldap_pvt_url_scheme_port()
102 if( strcmp("ldaps", scheme) == 0 || strcmp("pldaps", scheme) == 0 ) { in ldap_pvt_url_scheme_port()
107 if( strcmp("cldap", scheme) == 0 ) { in ldap_pvt_url_scheme_port()
116 ldap_pvt_url_scheme2tls( const char *scheme ) in ldap_pvt_url_scheme2tls() argument
118 assert( scheme != NULL ); in ldap_pvt_url_scheme2tls()
120 if( scheme == NULL ) { in ldap_pvt_url_scheme2tls()
124 return strcmp("ldaps", scheme) == 0 || strcmp("pldaps", scheme) == 0; in ldap_pvt_url_scheme2tls()
128 ldap_pvt_url_scheme2proxied( const char *scheme ) in ldap_pvt_url_scheme2proxied() argument
130 assert( scheme != NULL ); in ldap_pvt_url_scheme2proxied()
132 if( scheme == NULL ) { in ldap_pvt_url_scheme2proxied()
136 return strcmp("pldap", scheme) == 0 || strcmp("pldaps", scheme) == 0; in ldap_pvt_url_scheme2proxied()
143 const char * scheme; in ldap_is_ldap_url() local
149 if( skip_url_prefix( url, &enclosed, &scheme ) == NULL ) { in ldap_is_ldap_url()
160 const char * scheme; in ldap_is_ldaps_url() local
166 if( skip_url_prefix( url, &enclosed, &scheme ) == NULL ) { in ldap_is_ldaps_url()
170 return strcmp(scheme, "ldaps") == 0 || strcmp(scheme, "pldaps") == 0; in ldap_is_ldaps_url()
177 const char * scheme; in ldap_is_ldapi_url() local
183 if( skip_url_prefix( url, &enclosed, &scheme ) == NULL ) { in ldap_is_ldapi_url()
187 return strcmp(scheme, "ldapi") == 0; in ldap_is_ldapi_url()
195 const char * scheme; in ldap_is_ldapc_url() local
201 if( skip_url_prefix( url, &enclosed, &scheme ) == NULL ) { in ldap_is_ldapc_url()
205 return strcmp(scheme, "cldap") == 0; in ldap_is_ldapc_url()
213 const char **scheme ) in skip_url_prefix() argument
244 *scheme = "ldap"; in skip_url_prefix()
252 *scheme = "pldap"; in skip_url_prefix()
260 *scheme = "ldaps"; in skip_url_prefix()
268 *scheme = "pldaps"; in skip_url_prefix()
276 *scheme = "ldapi"; in skip_url_prefix()
285 *scheme = "cldap"; in skip_url_prefix()
834 const char *scheme = NULL; in ldap_url_parse_ext() local
855 url_tmp = skip_url_prefix( url_in, &enclosed, &scheme ); in ldap_url_parse_ext()
861 assert( scheme != NULL ); in ldap_url_parse_ext()
863 proto = ldap_pvt_url_scheme2proto( scheme ); in ldap_url_parse_ext()
902 ludp->lud_scheme = LDAP_STRDUP( scheme ); in ldap_url_parse_ext()