X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=md5.h;h=90f9021dac9587bbdb8b5e14849d7fe681b1d22c;hb=33efcad5728d54fa7368a424556e883e556a4791;hp=097156ec48c29d8758849ef71d069894d69855e3;hpb=a4d53c2fe3dc1952c7c7d8a4283545389ba5aa64;p=tac_plus.git diff --git a/md5.h b/md5.h index 097156e..90f9021 100644 --- a/md5.h +++ b/md5.h @@ -1,4 +1,9 @@ -/* +#ifndef MD5_H +#define MD5_H 1 + +#include "tac_plus.h" + +/* Copyright (c) 1995-1998 by Cisco systems, Inc. Permission to use, copy, modify, and distribute this software for @@ -44,8 +49,6 @@ * documentation and/or software. */ -#ifndef _MD5_H -#define _MD5_H /* delineate the cisco changes to the RSA supplied module */ #define CISCO_MD5_MODS @@ -53,16 +56,11 @@ #if defined(CISCO_MD5_MODS) /* typedef a 32-bit type */ -typedef unsigned long int UINT4; +typedef tac_uint32 UINT4; /* typedef a generic pointer type */ typedef unsigned char *POINTER; -/* enable prototyping */ -/* #define PROTO_LIST(x) x */ -/* disable prototyping */ -#define PROTO_LIST(x) () - #endif /* defined(CISCO_MD5_MODS) */ /* MD5 context. */ @@ -72,10 +70,10 @@ typedef struct { unsigned char buffer[64]; /* input buffer */ } MD5_CTX; -void MD5Init PROTO_LIST ((MD5_CTX *)); -void MD5Update PROTO_LIST - ((MD5_CTX *, unsigned char *, unsigned int)); -void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *)); + +extern void MD5Init TAC_ARGS((MD5_CTX *context)); +extern void MD5Update TAC_ARGS((MD5_CTX *context, unsigned char *input, unsigned int inputLen)); +extern void MD5Final TAC_ARGS((unsigned char *digest, MD5_CTX *context)); -#endif /* _MD5_H */ +#endif /* MD5_H */