Changeset 5726 for pjproject/trunk/third_party/srtp/crypto/hash/hmac_ossl.c
- Timestamp:
- Jan 17, 2018 11:15:34 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/srtp/crypto/hash/hmac_ossl.c
r5614 r5726 52 52 #include <openssl/evp.h> 53 53 #include <openssl/hmac.h> 54 #include <openssl/opensslv.h> 54 55 55 56 #define SHA1_DIGEST_SIZE 20 57 #define USING_LIBRESSL (defined(LIBRESSL_VERSION_NUMBER)) 56 58 57 59 /* the debug module for authentiation */ … … 77 79 /* OpenSSL 1.1.0 made HMAC_CTX an opaque structure, which must be allocated 78 80 using HMAC_CTX_new. But this function doesn't exist in OpenSSL 1.0.x. */ 79 #if OPENSSL_VERSION_NUMBER < 0x10100000L81 #if USING_LIBRESSL || OPENSSL_VERSION_NUMBER < 0x10100000L 80 82 { 81 83 /* allocate memory for auth and HMAC_CTX structures */ … … 122 124 hmac_ctx = (HMAC_CTX*)a->state; 123 125 124 #if OPENSSL_VERSION_NUMBER < 0x10100000L126 #if USING_LIBRESSL || OPENSSL_VERSION_NUMBER < 0x10100000L 125 127 HMAC_CTX_cleanup(hmac_ctx); 126 128
Note: See TracChangeset
for help on using the changeset viewer.