diff options
Diffstat (limited to 'src/include/libpq/crypt.h')
-rw-r--r-- | src/include/libpq/crypt.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/include/libpq/crypt.h b/src/include/libpq/crypt.h deleted file mode 100644 index d5328c704b3..00000000000 --- a/src/include/libpq/crypt.h +++ /dev/null @@ -1,33 +0,0 @@ -/*------------------------------------------------------------------------- - * - * crypt.h - * Interface to libpq/crypt.c - * - * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * $Id: crypt.h,v 1.21 2002/06/20 20:29:49 momjian Exp $ - * - *------------------------------------------------------------------------- - */ -#ifndef PG_CRYPT_H -#define PG_CRYPT_H - -#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 && \ - strlen(passwd) == MD5_PASSWD_LEN) - - -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); -/* Also defined in interfaces/odbc/md5.h */ -extern bool EncryptMD5(const char *passwd, const char *salt, - size_t salt_len, char *buf); - -#endif |