Lines Matching refs:scheme

154 	struct berval *scheme,  in lutil_passwd_add()  argument
165 ptr->s.name = *scheme; in lutil_passwd_add()
194 const char* scheme ) in get_scheme() argument
201 bv.bv_val = strchr( scheme, '}' ); in get_scheme()
205 bv.bv_len = bv.bv_val - scheme + 1; in get_scheme()
206 bv.bv_val = (char *) scheme; in get_scheme()
218 const char* scheme ) in lutil_passwd_scheme() argument
220 if( scheme == NULL ) { in lutil_passwd_scheme()
224 return get_scheme(scheme) != NULL; in lutil_passwd_scheme()
229 const char* scheme, in is_allowed_scheme() argument
237 if( strcasecmp( scheme, schemes[i] ) == 0 ) { in is_allowed_scheme()
245 const struct pw_scheme *scheme, in passwd_scheme() argument
250 if( !is_allowed_scheme( scheme->name.bv_val, allowed ) ) { in passwd_scheme()
254 if( passwd->bv_len >= scheme->name.bv_len ) { in passwd_scheme()
255 if( strncasecmp( passwd->bv_val, scheme->name.bv_val, scheme->name.bv_len ) == 0 ) { in passwd_scheme()
256 bv->bv_val = &passwd->bv_val[scheme->name.bv_len]; in passwd_scheme()
257 bv->bv_len = passwd->bv_len - scheme->name.bv_len; in passwd_scheme()
756 const struct berval *scheme, in hash_ssha1() argument
783 return lutil_passwd_string64( scheme, &digest, hash, &salt); in hash_ssha1()
787 const struct berval *scheme, in hash_sha1() argument
803 return lutil_passwd_string64( scheme, &digest, hash, NULL); in hash_sha1()
808 const struct berval *scheme, in hash_smd5() argument
835 return lutil_passwd_string64( scheme, &digest, hash, &salt ); in hash_smd5()
839 const struct berval *scheme, in hash_md5() argument
857 return lutil_passwd_string64( scheme, &digest, hash, NULL ); in hash_md5()
863 const struct berval *scheme, in hash_crypt() argument
912 rc = pw_string( scheme, hash ); in hash_crypt()
932 const struct berval *scheme, in hash_clear() argument