Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb7fc63

Browse files
author
Neil Conway
committed
Remove references to the ODBC driver from the main source tree. From Kris
Jurka.
1 parent 64a6059 commit cb7fc63

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

src/backend/libpq/md5.c

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,24 @@
1414
* Portions Copyright (c) 1994, Regents of the University of California
1515
*
1616
* IDENTIFICATION
17-
* $PostgreSQL: pgsql/src/backend/libpq/md5.c,v 1.25 2004/08/29 04:12:32 momjian Exp $
17+
* $PostgreSQL: pgsql/src/backend/libpq/md5.c,v 1.26 2004/09/27 04:18:28 neilc Exp $
1818
*/
1919

2020

21-
/*
22-
* NOTE:
23-
*
24-
* There are two copies of this file, one in backend/libpq and another
25-
* in interfaces/odbc. They should be identical. This is done so ODBC
26-
* can be compiled stand-alone.
27-
*/
28-
29-
#if ! defined(MD5_ODBC) && ! defined(FRONTEND)
21+
#if ! defined(FRONTEND)
3022
#include "postgres.h"
3123
#include "libpq/crypt.h"
3224
#endif
3325

3426
#ifdef FRONTEND
3527
#include "postgres_fe.h"
3628
#include "libpq/crypt.h"
37-
#endif /* FRONTEND */
3829

39-
#ifdef MD5_ODBC
40-
#include "md5.h"
41-
#endif
42-
43-
#ifdef FRONTEND
4430
#undef palloc
4531
#define palloc malloc
4632
#undef pfree
4733
#define pfree free
48-
#endif
34+
#endif /* FRONTEND */
4935

5036

5137
/*

src/include/c.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $PostgreSQL: pgsql/src/include/c.h,v 1.174 2004/09/26 15:13:42 tgl Exp $
15+
* $PostgreSQL: pgsql/src/include/c.h,v 1.175 2004/09/27 04:18:28 neilc Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -231,7 +231,6 @@ typedef signed int int32; /* == 32 bits */
231231
* used for numerical computations and the
232232
* frontend/backend protocol.
233233
*/
234-
/* Also defined in interfaces/odbc/md5.h */
235234
#ifndef HAVE_UINT8
236235
typedef unsigned char uint8; /* == 8 bits */
237236
typedef unsigned short uint16; /* == 16 bits */

src/include/libpq/crypt.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/libpq/crypt.h,v 1.28 2004/08/29 04:13:07 momjian Exp $
9+
* $PostgreSQL: pgsql/src/include/libpq/crypt.h,v 1.29 2004/09/27 04:18:28 neilc Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -15,7 +15,6 @@
1515

1616
#include "libpq/libpq-be.h"
1717

18-
/* Also defined in interfaces/odbc/md5.h */
1918
#define MD5_PASSWD_LEN 35
2019

2120
#define isMD5(passwd) (strncmp((passwd),"md5",3) == 0 && \
@@ -27,7 +26,6 @@ extern int md5_crypt_verify(const Port *port, const char *user,
2726
extern bool md5_hash(const void *buff, size_t len, char *hexsum);
2827
extern bool CheckMD5Pwd(char *passwd, char *storedpwd, char *seed);
2928

30-
/* Also defined in interfaces/odbc/md5.h */
3129
extern bool EncryptMD5(const char *passwd, const char *salt,
3230
size_t salt_len, char *buf);
3331

0 commit comments

Comments
 (0)