Lines 291-302
static EVP_MD_CTX *handshake_md5;
Link Here
|
291 |
static EVP_MD_CTX *handshake_sha1; |
291 |
static EVP_MD_CTX *handshake_sha1; |
292 |
|
292 |
|
293 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
293 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
294 |
static inline HMAC_CTX *HMAC_CTX_new(void) { |
294 |
#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL |
|
|
295 |
static |
296 |
#endif |
297 |
inline HMAC_CTX *HMAC_CTX_new(void) { |
295 |
HMAC_CTX *ret = malloc(sizeof(*ret)); |
298 |
HMAC_CTX *ret = malloc(sizeof(*ret)); |
296 |
HMAC_CTX_init(ret); |
299 |
HMAC_CTX_init(ret); |
297 |
return ret; |
300 |
return ret; |
298 |
} |
301 |
} |
299 |
static inline void HMAC_CTX_free(HMAC_CTX *ctx) { |
302 |
#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL |
|
|
303 |
static |
304 |
#endif |
305 |
inline void HMAC_CTX_free(HMAC_CTX *ctx) { |
300 |
HMAC_CTX_cleanup(ctx); |
306 |
HMAC_CTX_cleanup(ctx); |
301 |
free(ctx); |
307 |
free(ctx); |
302 |
} |
308 |
} |
303 |
- |
|
|
304 |
error: 'DTLS1_2_VERSION' undeclared |
309 |
error: 'DTLS1_2_VERSION' undeclared |
305 |
-- |
|
|
306 |
cstp.c | 2 +- |
310 |
cstp.c | 2 +- |
307 |
library.c | 2 +- |
311 |
library.c | 2 +- |
308 |
main.c | 4 ++-- |
312 |
main.c | 4 ++-- |
309 |
openssl-dtls.c | 2 +- |
313 |
openssl-dtls.c | 2 +- |
310 |
4 files changed, 5 insertions(+), 5 deletions(-) |
314 |
4 files changed, 5 insertions(+), 5 deletions(-) |