diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-23 00:20:40 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-23 00:20:40 -0700 |
commit | ed85e20e4d6a27d5405f37366dd34b64c10a9211 (patch) | |
tree | 1dd34201f8777a4aba0ecbc39e8f480ba1407c41 /signature.c | |
parent | 595f1b5414c37b6ba31ed876343fd278a4c058ca (diff) | |
download | tcpdump-ed85e20e4d6a27d5405f37366dd34b64c10a9211.tar.gz |
u_intN_t is dead, long live uintN_t.
And, as we require at least autoconf 2.61, and as autoconf 2.61 and
later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to
define the uintN_t and intN_t macros if the system doesn't define them
for us.
This lets us get rid of bitypes.h as well.
Diffstat (limited to 'signature.c')
-rw-r--r-- | signature.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/signature.c b/signature.c index c3520a08..324035fb 100644 --- a/signature.c +++ b/signature.c @@ -46,8 +46,8 @@ const struct tok signature_check_values[] = { */ USES_APPLE_DEPRECATED_API static void -signature_compute_hmac_md5(const u_int8_t *text, int text_len, unsigned char *key, - unsigned int key_len, u_int8_t *digest) +signature_compute_hmac_md5(const uint8_t *text, int text_len, unsigned char *key, + unsigned int key_len, uint8_t *digest) { MD5_CTX context; unsigned char k_ipad[65]; /* inner padding - key XORd with ipad */ @@ -119,8 +119,8 @@ int signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, u_char *sig_ptr) { - u_int8_t rcvsig[16]; - u_int8_t sig[16]; + uint8_t rcvsig[16]; + uint8_t sig[16]; unsigned int i; /* |