mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add comments of duplicate definitions in interfaces/odbc/md5.h.
This commit is contained in:
@ -12,7 +12,7 @@
|
|||||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: c.h,v 1.108 2001/11/05 17:46:31 momjian Exp $
|
* $Id: c.h,v 1.109 2001/11/12 01:52:46 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -147,6 +147,7 @@
|
|||||||
/* BeOS defines bool already, but the compiler chokes on the
|
/* BeOS defines bool already, but the compiler chokes on the
|
||||||
* #ifndef unless we wrap it in this check.
|
* #ifndef unless we wrap it in this check.
|
||||||
*/
|
*/
|
||||||
|
/* Also defined in interfaces/odbc/md5.h */
|
||||||
#ifndef __BEOS__
|
#ifndef __BEOS__
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
@ -216,6 +217,7 @@ typedef signed int int32; /* == 32 bits */
|
|||||||
* used for numerical computations and the
|
* used for numerical computations and the
|
||||||
* frontend/backend protocol.
|
* frontend/backend protocol.
|
||||||
*/
|
*/
|
||||||
|
/* Also defined in interfaces/odbc/md5.h */
|
||||||
#ifndef __BEOS__ /* this shouldn't be required, but is is! */
|
#ifndef __BEOS__ /* this shouldn't be required, but is is! */
|
||||||
typedef unsigned char uint8; /* == 8 bits */
|
typedef unsigned char uint8; /* == 8 bits */
|
||||||
typedef unsigned short uint16; /* == 16 bits */
|
typedef unsigned short uint16; /* == 16 bits */
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: crypt.h,v 1.18 2001/11/05 17:46:33 momjian Exp $
|
* $Id: crypt.h,v 1.19 2001/11/12 01:52:46 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#define CRYPT_PWD_FILE_SEPSTR "\t"
|
#define CRYPT_PWD_FILE_SEPSTR "\t"
|
||||||
|
|
||||||
|
/* Also defined in interfaces/odbc/md5.h */
|
||||||
#define MD5_PASSWD_LEN 35
|
#define MD5_PASSWD_LEN 35
|
||||||
|
|
||||||
#define isMD5(passwd) (strncmp((passwd),"md5",3) == 0 && \
|
#define isMD5(passwd) (strncmp((passwd),"md5",3) == 0 && \
|
||||||
@ -30,6 +31,7 @@ extern int md5_crypt_verify(const Port *port, const char *user,
|
|||||||
const char *pgpass);
|
const char *pgpass);
|
||||||
extern bool md5_hash(const void *buff, size_t len, char *hexsum);
|
extern bool md5_hash(const void *buff, size_t len, char *hexsum);
|
||||||
extern bool CheckMD5Pwd(char *passwd, char *storedpwd, char *seed);
|
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,
|
extern bool EncryptMD5(const char *passwd, const char *salt,
|
||||||
size_t salt_len, char *buf);
|
size_t salt_len, char *buf);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user