diff options
Diffstat (limited to 'src/lib/libcrypto/crypto_legacy.c')
-rw-r--r-- | src/lib/libcrypto/crypto_legacy.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_legacy.c b/src/lib/libcrypto/crypto_legacy.c index 65ca9b5f9a..9e3ba4f3ed 100644 --- a/src/lib/libcrypto/crypto_legacy.c +++ b/src/lib/libcrypto/crypto_legacy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_legacy.c,v 1.2 2024/11/05 11:02:58 tb Exp $ */ | 1 | /* $OpenBSD: crypto_legacy.c,v 1.3 2024/11/05 11:05:01 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -356,6 +356,13 @@ OpenSSLDie(const char *file, int line, const char *assertion) | |||
356 | } | 356 | } |
357 | LCRYPTO_ALIAS(OpenSSLDie); | 357 | LCRYPTO_ALIAS(OpenSSLDie); |
358 | 358 | ||
359 | void | ||
360 | OPENSSL_cleanse(void *ptr, size_t len) | ||
361 | { | ||
362 | explicit_bzero(ptr, len); | ||
363 | } | ||
364 | LCRYPTO_ALIAS(OPENSSL_cleanse); | ||
365 | |||
359 | int | 366 | int |
360 | CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) | 367 | CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) |
361 | { | 368 | { |