close bin/1648 libmd not 64bit safe.

if something fails to compile now, you need to add #include <sys/types.h>

Partially Submitted by:	Jason Thorpe <thorpej@nas.nasa.gov>
This commit is contained in:
Poul-Henning Kamp 1996-10-22 16:27:47 +00:00
parent f98f97bb1e
commit 40060a90b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19099
7 changed files with 21 additions and 17 deletions

View File

@ -22,11 +22,12 @@
#include "md2.h"
#include <string.h>
#include <sys/types.h>
typedef unsigned char *POINTER;
typedef unsigned short int UINT2;
typedef unsigned long int UINT4;
typedef u_int16_t UINT2;
typedef u_int32_t UINT4;
#define PROTO_LIST(list) list

View File

@ -27,8 +27,8 @@
#define _MD4_H_
/* MD4 context. */
typedef struct MD4Context {
unsigned long state[4]; /* state (ABCD) */
unsigned long count[2]; /* number of bits, modulo 2^64 (lsb first) */
u_int32_t state[4]; /* state (ABCD) */
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
unsigned char buffer[64]; /* input buffer */
} MD4_CTX;

View File

@ -23,12 +23,13 @@
documentation and/or software.
*/
#include "md4.h"
#include <sys/types.h>
#include <string.h>
#include "md4.h"
typedef unsigned char *POINTER;
typedef unsigned short int UINT2;
typedef unsigned long int UINT4;
typedef u_int16_t UINT2;
typedef u_int32_t UINT4;
#define PROTO_LIST(list) list

View File

@ -28,8 +28,8 @@ documentation and/or software.
#define _MD5_H_
/* MD5 context. */
typedef struct MD5Context {
unsigned long state[4]; /* state (ABCD) */
unsigned long count[2]; /* number of bits, modulo 2^64 (lsb first) */
u_int32_t state[4]; /* state (ABCD) */
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
unsigned char buffer[64]; /* input buffer */
} MD5_CTX;

View File

@ -24,12 +24,13 @@ These notices must be retained in any copies of any part of this
documentation and/or software.
*/
#include "md5.h"
#include <sys/types.h>
#include <string.h>
#include "md5.h"
typedef unsigned char *POINTER;
typedef unsigned short int UINT2;
typedef unsigned long int UINT4;
typedef u_int16_t UINT2;
typedef u_int32_t UINT4;
#define PROTO_LIST(list) list

View File

@ -24,12 +24,13 @@ These notices must be retained in any copies of any part of this
documentation and/or software.
*/
#include "md5.h"
#include <sys/types.h>
#include <string.h>
#include "md5.h"
typedef unsigned char *POINTER;
typedef unsigned short int UINT2;
typedef unsigned long int UINT4;
typedef u_int16_t UINT2;
typedef u_int32_t UINT4;
#define PROTO_LIST(list) list

View File

@ -28,8 +28,8 @@ documentation and/or software.
#define _MD5_H_
/* MD5 context. */
typedef struct MD5Context {
unsigned long state[4]; /* state (ABCD) */
unsigned long count[2]; /* number of bits, modulo 2^64 (lsb first) */
u_int32_t state[4]; /* state (ABCD) */
u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */
unsigned char buffer[64]; /* input buffer */
} MD5_CTX;