diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-04-15 15:55:02 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-04-15 15:55:02 +0000 |
commit | ca414fb31786541783336e761cf636294af8075e (patch) | |
tree | 02ba9d314ecfa7d1820c7ec3b568c0d4d6558c19 | |
parent | a71d1f97830101e38cf1b422497651f65e97c6d3 (diff) |
Bye, bye, OPENSSL_str{,n}casecmp()
ok jsing
-rw-r--r-- | lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | lib/libcrypto/Symbols.list | 2 | ||||
-rw-r--r-- | lib/libcrypto/o_str.c | 21 |
3 files changed, 1 insertions, 25 deletions
diff --git a/lib/libcrypto/Makefile b/lib/libcrypto/Makefile index 7ed583fe4b1..1e295d17ecc 100644 --- a/lib/libcrypto/Makefile +++ b/lib/libcrypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.192 2024/03/29 07:36:38 jsing Exp $ +# $OpenBSD: Makefile,v 1.193 2024/04/15 15:55:01 tb Exp $ LIB= crypto LIBREBUILD=y @@ -69,7 +69,6 @@ SRCS+= malloc-wrapper.c SRCS+= mem_clr.c SRCS+= mem_dbg.c SRCS+= o_fips.c -SRCS+= o_str.c # aes/ SRCS+= aes.c diff --git a/lib/libcrypto/Symbols.list b/lib/libcrypto/Symbols.list index 3e7a32cf2fc..aa3019905ac 100644 --- a/lib/libcrypto/Symbols.list +++ b/lib/libcrypto/Symbols.list @@ -1707,8 +1707,6 @@ OPENSSL_init_crypto OPENSSL_load_builtin_modules OPENSSL_no_config OPENSSL_posix_to_tm -OPENSSL_strcasecmp -OPENSSL_strncasecmp OPENSSL_timegm OPENSSL_tm_to_posix OPENSSL_uni2asc diff --git a/lib/libcrypto/o_str.c b/lib/libcrypto/o_str.c deleted file mode 100644 index f05889e4c87..00000000000 --- a/lib/libcrypto/o_str.c +++ /dev/null @@ -1,21 +0,0 @@ -/* $OpenBSD: o_str.c,v 1.9 2014/07/09 20:22:14 tedu Exp $ */ -/* - * Written by Theo de Raadt. Public domain. - */ - -#include <string.h> - -int OPENSSL_strcasecmp(const char *str1, const char *str2); -int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n); - -int -OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) -{ - return strncasecmp(str1, str2, n); -} - -int -OPENSSL_strcasecmp(const char *str1, const char *str2) -{ - return strcasecmp(str1, str2); -} |