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:
parent
f98f97bb1e
commit
40060a90b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19099
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user