From 88b0d840f69dd12f0a18deed843456edf672b5f5 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 10 Sep 2015 16:35:15 +0000 Subject: Put OPENSSL_cleanse under #ifndef LIBRESSL_INTERNAL. --- src/lib/libcrypto/crypto.h | 5 ++++- src/lib/libssl/src/crypto/crypto.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index 767c83491b..612b390f27 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.h,v 1.36 2015/09/10 16:07:58 jsing Exp $ */ +/* $OpenBSD: crypto.h,v 1.37 2015/09/10 16:35:15 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * @@ -438,11 +438,14 @@ char *CRYPTO_strdup(const char *str, const char *file, int line); void CRYPTO_free(void *ptr); void *CRYPTO_realloc(void *addr, int num, const char *file, int line); #endif + void *CRYPTO_realloc_clean(void *addr, int old_num, int num, const char *file, int line); void *CRYPTO_remalloc(void *addr, int num, const char *file, int line); +#ifndef LIBRESSL_INTERNAL void OPENSSL_cleanse(void *ptr, size_t len); +#endif void CRYPTO_set_mem_debug_options(long bits); long CRYPTO_get_mem_debug_options(void); diff --git a/src/lib/libssl/src/crypto/crypto.h b/src/lib/libssl/src/crypto/crypto.h index 767c83491b..612b390f27 100644 --- a/src/lib/libssl/src/crypto/crypto.h +++ b/src/lib/libssl/src/crypto/crypto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.h,v 1.36 2015/09/10 16:07:58 jsing Exp $ */ +/* $OpenBSD: crypto.h,v 1.37 2015/09/10 16:35:15 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * @@ -438,11 +438,14 @@ char *CRYPTO_strdup(const char *str, const char *file, int line); void CRYPTO_free(void *ptr); void *CRYPTO_realloc(void *addr, int num, const char *file, int line); #endif + void *CRYPTO_realloc_clean(void *addr, int old_num, int num, const char *file, int line); void *CRYPTO_remalloc(void *addr, int num, const char *file, int line); +#ifndef LIBRESSL_INTERNAL void OPENSSL_cleanse(void *ptr, size_t len); +#endif void CRYPTO_set_mem_debug_options(long bits); long CRYPTO_get_mem_debug_options(void); -- cgit v1.2.3-55-g6feb