add macro for get thread id and update debug message for wolfSSL_HMAC

This commit is contained in:
Jacob Barthelmeh
2017-02-20 18:08:49 -07:00
parent f2518ecbc4
commit f968e65314
2 changed files with 7 additions and 2 deletions

View File

@ -14020,9 +14020,11 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
#endif
void* heap = NULL;
WOLFSSL_ENTER("HMAC");
if (!md)
WOLFSSL_ENTER("wolfSSL_HMAC");
if (!md) {
WOLFSSL_MSG("Static buffer not supported, pass in md buffer");
return NULL; /* no static buffer support */
}
if (XSTRNCMP(evp_md, "MD5", 3) == 0)
type = WC_MD5;

View File

@ -36,6 +36,9 @@
WOLFSSL_API const char* wolfSSLeay_version(int type);
WOLFSSL_API unsigned long wolfSSLeay(void);
/* depreciated */
#define CRYPTO_thread_id() 0
#define CRYPTO_THREADID void
#define SSLeay_version wolfSSLeay_version