1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

The KAME files md5.* and sha1.* have the following changelog

entry:

----------------------------
revision 1.2
date: 2000/12/04 01:20:38;  author: tgl;  state: Exp;  lines:
+18 -18
Eliminate some of the more blatant platform-dependencies ... it
builds here now, anyway ...
----------------------------

Which basically changes u_int*_t -> uint*_t, so now it does not
compile neither under Debian 2.2 nor under NetBSD 1.5 which
is platform independent<B8> all right.  Also it replaces $KAME$
with $Id$ which is Bad Thing. PostgreSQL Id should be added as a
separate line so the file history could be seen.

So here is patch:

* changes uint*_t -> uint*.  I guess that was the original
  intention
* adds uint64 type to include/c.h because its needed
  [somebody should check if I did it right]
* adds back KAME Id, because KAME is the master repository
* removes stupid c++ comments in pgcrypto.c
* removes <sys/types.h> from the code, its not needed

--
marko

Marko Kreen
This commit is contained in:
Bruce Momjian
2001-01-09 16:07:14 +00:00
parent f906597e50
commit e586026d10
7 changed files with 51 additions and 48 deletions

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: pgcrypto.c,v 1.2 2000/11/20 20:36:56 tgl Exp $
* $Id: pgcrypto.c,v 1.3 2001/01/09 16:07:13 momjian Exp $
*/
#include <postgres.h>
@ -91,7 +91,7 @@ digest(PG_FUNCTION_ARGS)
to_hex(p, hlen, VARDATA(res));
PG_FREE_IF_COPY(arg, 0);
PG_FREE_IF_COPY(name, 0); // unnecessary i guess
PG_FREE_IF_COPY(name, 0);
PG_RETURN_TEXT_P(res);
}
@ -112,7 +112,7 @@ digest_exists(PG_FUNCTION_ARGS)
res = find_digest(&_hbuf, name, 1);
PG_FREE_IF_COPY(name, 0); // unnecessary i guess
PG_FREE_IF_COPY(name, 0);
if (res != NULL)
PG_RETURN_BOOL(true);