fix: make hmac_md5.c issue
This commit is contained in:
@@ -6,14 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "md5.h"
|
// #include "md5.h"
|
||||||
#include "radius_md5.h"
|
#include "radius_md5.h"
|
||||||
|
|
||||||
#ifndef _T_BYTE
|
|
||||||
#define _T_BYTE
|
|
||||||
typedef unsigned char BYTE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const int blocksize = 64;
|
const int blocksize = 64;
|
||||||
const int hashsize = 16;
|
const int hashsize = 16;
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
#ifndef SQUID_MD5_H
|
|
||||||
#define SQUID_MD5_H
|
|
||||||
|
|
||||||
typedef unsigned char uint8_t;
|
|
||||||
typedef unsigned short uint16_t;
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
|
|
||||||
typedef struct SquidMD5Context {
|
|
||||||
uint32_t buf[4];
|
|
||||||
uint32_t bytes[2];
|
|
||||||
uint32_t in[16];
|
|
||||||
}SquidMD5_CTX;
|
|
||||||
|
|
||||||
void SquidMD5Init(struct SquidMD5Context *context);
|
|
||||||
void SquidMD5Update(struct SquidMD5Context *context, const void *buf, unsigned len);
|
|
||||||
void SquidMD5Final(uint8_t digest[16], struct SquidMD5Context *context);
|
|
||||||
void SQUID_MD5Transform(uint32_t buf[4], uint32_t const in[16]); // void SquidMD5Transform(uint32_t buf[4], uint32_t const in[16]);
|
|
||||||
|
|
||||||
#define SQUID_MD5_DIGEST_LENGTH 16
|
|
||||||
|
|
||||||
#endif /** SQUID_MD5_H */
|
|
||||||
@@ -37,10 +37,7 @@
|
|||||||
#ifndef _RADIUS_MD5_H
|
#ifndef _RADIUS_MD5_H
|
||||||
#define _RADIUS_MD5_H
|
#define _RADIUS_MD5_H
|
||||||
|
|
||||||
#ifndef _T_BYTE
|
typedef unsigned char BYTE;
|
||||||
#define _T_BYTE
|
|
||||||
typedef unsigned char BYTE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* typedef a 32-bit type */
|
/* typedef a 32-bit type */
|
||||||
//typedef unsigned long int UINT4;
|
//typedef unsigned long int UINT4;
|
||||||
|
|||||||
Reference in New Issue
Block a user