diff options
Diffstat (limited to 'ldap/servers/plugins/pwdstorage/pwdstorage.h')
-rw-r--r-- | ldap/servers/plugins/pwdstorage/pwdstorage.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ldap/servers/plugins/pwdstorage/pwdstorage.h b/ldap/servers/plugins/pwdstorage/pwdstorage.h index 895ac4ea..f43e63e5 100644 --- a/ldap/servers/plugins/pwdstorage/pwdstorage.h +++ b/ldap/servers/plugins/pwdstorage/pwdstorage.h @@ -80,6 +80,8 @@ #define CLEARTEXT_NAME_LEN 5 #define MD5_SCHEME_NAME "MD5" #define MD5_NAME_LEN 3 +#define SALTED_MD5_SCHEME_NAME "SMD5" +#define SALTED_MD5_NAME_LEN 4 SECStatus sha_salted_hash(char *hash_out, const char *pwd, struct berval *salt, unsigned int secOID); int sha_pw_cmp( const char *userpwd, const char *dbpwd, unsigned int shaLen ); @@ -107,5 +109,10 @@ char *crypt_pw_enc( const char *pwd ); int ns_mta_md5_pw_cmp( const char *userpwd, const char *dbpwd ); int md5_pw_cmp( const char *userpwd, const char *dbpwd ); char *md5_pw_enc( const char *pwd ); +int smd5_pw_cmp( const char *userpwd, const char *dbpwd ); +char *smd5_pw_enc( const char *pwd ); + +/* Utility functions */ +int pwdstorage_base64_decode_len(const char *encval); #endif /* _PWDSTORAGE_H */ |