Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 658508
Collapse All | Expand All

(-)a/openssl-esp.c (-1 / +4 lines)
Lines 37-43 Link Here
37
				    free(c); } while (0)
37
				    free(c); } while (0)
38
#define HMAC_CTX_reset HMAC_CTX_cleanup
38
#define HMAC_CTX_reset HMAC_CTX_cleanup
39
39
40
static inline HMAC_CTX *HMAC_CTX_new(void)
40
#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL
41
static
42
#endif
43
inline HMAC_CTX *HMAC_CTX_new(void)
41
{
44
{
42
	HMAC_CTX *ret = malloc(sizeof(*ret));
45
	HMAC_CTX *ret = malloc(sizeof(*ret));
43
	if (ret)
46
	if (ret)
(-)a/tests/bad_dtls_test.c (-2 / +8 lines)
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
}

Return to bug 658508