aboutsummaryrefslogtreecommitdiff
path: root/src/backend/libpq/md5.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-09-21 20:31:49 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-09-21 20:31:49 +0000
commitc1c888a9de0c062182552e66ca766b252ca140bc (patch)
tree627829c42bcbcc8e84e563fe685158fcb4404a04 /src/backend/libpq/md5.c
parent4e77b4a5487c074e3e9882feef816f87e3a03a18 (diff)
downloadpostgresql-c1c888a9de0c062182552e66ca766b252ca140bc.tar.gz
postgresql-c1c888a9de0c062182552e66ca766b252ca140bc.zip
Code review for MD5 authorization patch. Clean up some breakage
(salts were always zero!?), add much missing documentation.
Diffstat (limited to 'src/backend/libpq/md5.c')
-rw-r--r--src/backend/libpq/md5.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/backend/libpq/md5.c b/src/backend/libpq/md5.c
index 16a0ed5817c..ad5b4c91ec4 100644
--- a/src/backend/libpq/md5.c
+++ b/src/backend/libpq/md5.c
@@ -9,27 +9,20 @@
* generating hashed passwords from limited input.
*
* Sverre H. Huseby <sverrehu@online.no>
+ *
+ * $Header: /cvsroot/pgsql/src/backend/libpq/md5.c,v 1.6 2001/09/21 20:31:47 tgl Exp $
*/
+#include "postgres.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <errno.h>
-#include "postgres.h"
#include "libpq/crypt.h"
/*
* PRIVATE FUNCTIONS
*/
-#ifdef FRONTEND
-#undef palloc
-#define palloc malloc
-#undef pfree
-#define pfree free
-#endif
/*
* The returned array is allocated using malloc. the caller should free it