6e5ee11ca95cd971984038cf65bae00d9c898707 galt Wed Jun 4 15:40:02 2014 -0700 Since we have git, it is easy to rename errabort.c to errAbort.c without losing any history. diff --git src/lib/hmac.c src/lib/hmac.c index 05509a1..be52852 100644 --- src/lib/hmac.c +++ src/lib/hmac.c @@ -29,31 +29,31 @@ /* Calculate a openssl MD5 keyed-hash message authentication code (HMAC) */ { unsigned char* digest; digest=HMAC(EVP_md5(), key, strlen(key), (unsigned char*)data, strlen(data), NULL, NULL); //printf("Raw mdr digest: %s\n", digest); char hmacStr[32]; int i; for(i = 0; i < 16; i++) sprintf(&hmacStr[i*2], "%02x", (unsigned int)digest[i]); return cloneStringZ(hmacStr, sizeof(hmacStr)); } #else // --------- no USE_SSL ==> errAbort with message that openssl is required -------------- #include "common.h" -#include "errabort.h" +#include "errAbort.h" #define NEED_OPENSSL "kent/src must be recompiled with openssl libs and USE_SSL=1 in order for this to work." char *hmacSha1(char *key, char *data) /* This is just a warning that appears in the absence of USE_SSL. Real * implementation is above! */ { errAbort(NEED_OPENSSL); return NULL; } char *hmacMd5(char *key, char *data) /* This is just a warning that appears in the absence of USE_SSL. Real * implementation is above! */ { errAbort(NEED_OPENSSL);