diff options
Diffstat (limited to 'src/lib/libcrypto/crypto_memory.c')
| -rw-r--r-- | src/lib/libcrypto/crypto_memory.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/lib/libcrypto/crypto_memory.c b/src/lib/libcrypto/crypto_memory.c deleted file mode 100644 index 8c7bb5fe16..0000000000 --- a/src/lib/libcrypto/crypto_memory.c +++ /dev/null | |||
| @@ -1,59 +0,0 @@ | |||
| 1 | /* $OpenBSD: crypto_memory.c,v 1.4 2025/03/09 15:29:56 tb Exp $ */ | ||
| 2 | /* | ||
| 3 | * Copyright (c) 2014 Bob Beck | ||
| 4 | * | ||
| 5 | * Permission to use, copy, modify, and distribute this software for any | ||
| 6 | * purpose with or without fee is hereby granted, provided that the above | ||
| 7 | * copyright notice and this permission notice appear in all copies. | ||
| 8 | * | ||
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| 10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| 11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| 12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| 13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| 14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include <stdio.h> | ||
| 19 | #include <stdlib.h> | ||
| 20 | #include <string.h> | ||
| 21 | |||
| 22 | #include <openssl/crypto.h> | ||
| 23 | |||
| 24 | void | ||
| 25 | OPENSSL_cleanse(void *ptr, size_t len) | ||
| 26 | { | ||
| 27 | explicit_bzero(ptr, len); | ||
| 28 | } | ||
| 29 | LCRYPTO_ALIAS(OPENSSL_cleanse); | ||
| 30 | |||
| 31 | int | ||
| 32 | CRYPTO_set_mem_functions(void *(*m)(size_t, const char *, int), | ||
| 33 | void *(*r)(void *, size_t, const char *, int), | ||
| 34 | void (*f)(void *, const char *, int)) | ||
| 35 | { | ||
| 36 | return 0; | ||
| 37 | } | ||
| 38 | LCRYPTO_ALIAS(CRYPTO_set_mem_functions); | ||
| 39 | |||
| 40 | void * | ||
| 41 | CRYPTO_malloc(size_t num, const char *file, int line) | ||
| 42 | { | ||
| 43 | return malloc(num); | ||
| 44 | } | ||
| 45 | LCRYPTO_ALIAS(CRYPTO_malloc); | ||
| 46 | |||
| 47 | char * | ||
| 48 | CRYPTO_strdup(const char *str, const char *file, int line) | ||
| 49 | { | ||
| 50 | return strdup(str); | ||
| 51 | } | ||
| 52 | LCRYPTO_ALIAS(CRYPTO_strdup); | ||
| 53 | |||
| 54 | void | ||
| 55 | CRYPTO_free(void *ptr, const char *file, int line) | ||
| 56 | { | ||
| 57 | free(ptr); | ||
| 58 | } | ||
| 59 | LCRYPTO_ALIAS(CRYPTO_free); | ||
