mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Move md5.h contents to crypt.h.
This commit is contained in:
@@ -24,4 +24,13 @@ extern char *crypt_getpwdreloadfilename(void);
|
||||
|
||||
extern int md5_crypt_verify(const Port *port, const char *user, const char *pgpass);
|
||||
|
||||
extern bool md5_hash(const void *buff, size_t len, char *hexsum);
|
||||
extern bool CheckMD5Pwd(char *passwd, char *storedpwd, char *seed);
|
||||
extern bool EncryptMD5(const char *passwd, const char *salt, char *buf);
|
||||
|
||||
#define MD5_PASSWD_LEN 35
|
||||
|
||||
#define isMD5(passwd) (strncmp((passwd),"md5",3) == 0 && \
|
||||
strlen(passwd) == MD5_PASSWD_LEN)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user