|
|
|
@ -6,7 +6,7 @@ |
|
|
|
|
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group |
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California |
|
|
|
|
* |
|
|
|
|
* $PostgreSQL: pgsql/src/include/libpq/crypt.h,v 1.28 2004/08/29 04:13:07 momjian Exp $ |
|
|
|
|
* $PostgreSQL: pgsql/src/include/libpq/crypt.h,v 1.29 2004/09/27 04:18:28 neilc Exp $ |
|
|
|
|
* |
|
|
|
|
*------------------------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
@ -15,7 +15,6 @@ |
|
|
|
|
|
|
|
|
|
#include "libpq/libpq-be.h" |
|
|
|
|
|
|
|
|
|
/* Also defined in interfaces/odbc/md5.h */ |
|
|
|
|
#define MD5_PASSWD_LEN 35 |
|
|
|
|
|
|
|
|
|
#define isMD5(passwd) (strncmp((passwd),"md5",3) == 0 && \ |
|
|
|
@ -27,7 +26,6 @@ extern int md5_crypt_verify(const Port *port, const char *user, |
|
|
|
|
extern bool md5_hash(const void *buff, size_t len, char *hexsum); |
|
|
|
|
extern bool CheckMD5Pwd(char *passwd, char *storedpwd, char *seed); |
|
|
|
|
|
|
|
|
|
/* Also defined in interfaces/odbc/md5.h */ |
|
|
|
|
extern bool EncryptMD5(const char *passwd, const char *salt, |
|
|
|
|
size_t salt_len, char *buf); |
|
|
|
|
|
|
|
|
|