aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-09-27 04:18:28 +0000
committerNeil Conway <neilc@samurai.com>2004-09-27 04:18:28 +0000
commitcb7fc63d3e3f985049a88239eb3b1d7393b3e552 (patch)
tree45e337482f2a55f65da415dac09ea210779efa35 /src
parent64a60590ba5da8026abb65a7abe8fce9e573c476 (diff)
downloadpostgresql-cb7fc63d3e3f985049a88239eb3b1d7393b3e552.tar.gz
postgresql-cb7fc63d3e3f985049a88239eb3b1d7393b3e552.zip
Remove references to the ODBC driver from the main source tree. From Kris
Jurka.
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/md5.c20
-rw-r--r--src/include/c.h3
-rw-r--r--src/include/libpq/crypt.h4
3 files changed, 5 insertions, 22 deletions
diff --git a/src/backend/libpq/md5.c b/src/backend/libpq/md5.c
index 56844994bd2..f67dca9f006 100644
--- a/src/backend/libpq/md5.c
+++ b/src/backend/libpq/md5.c
@@ -14,19 +14,11 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/libpq/md5.c,v 1.25 2004/08/29 04:12:32 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/md5.c,v 1.26 2004/09/27 04:18:28 neilc Exp $
*/
-/*
- * NOTE:
- *
- * There are two copies of this file, one in backend/libpq and another
- * in interfaces/odbc. They should be identical. This is done so ODBC
- * can be compiled stand-alone.
- */
-
-#if ! defined(MD5_ODBC) && ! defined(FRONTEND)
+#if ! defined(FRONTEND)
#include "postgres.h"
#include "libpq/crypt.h"
#endif
@@ -34,18 +26,12 @@
#ifdef FRONTEND
#include "postgres_fe.h"
#include "libpq/crypt.h"
-#endif /* FRONTEND */
-#ifdef MD5_ODBC
-#include "md5.h"
-#endif
-
-#ifdef FRONTEND
#undef palloc
#define palloc malloc
#undef pfree
#define pfree free
-#endif
+#endif /* FRONTEND */
/*
diff --git a/src/include/c.h b/src/include/c.h
index 29657169f94..cf97f34edda 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.174 2004/09/26 15:13:42 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.175 2004/09/27 04:18:28 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -231,7 +231,6 @@ typedef signed int int32; /* == 32 bits */
* used for numerical computations and the
* frontend/backend protocol.
*/
-/* Also defined in interfaces/odbc/md5.h */
#ifndef HAVE_UINT8
typedef unsigned char uint8; /* == 8 bits */
typedef unsigned short uint16; /* == 16 bits */
diff --git a/src/include/libpq/crypt.h b/src/include/libpq/crypt.h
index 407652783de..34b52eba7ac 100644
--- a/src/include/libpq/crypt.h
+++ b/src/include/libpq/crypt.h
@@ -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);