diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-21 20:31:49 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-21 20:31:49 +0000 |
commit | c1c888a9de0c062182552e66ca766b252ca140bc (patch) | |
tree | 627829c42bcbcc8e84e563fe685158fcb4404a04 /src/backend/libpq/md5.c | |
parent | 4e77b4a5487c074e3e9882feef816f87e3a03a18 (diff) | |
download | postgresql-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.c | 13 |
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 |