From e3aa83198f4718fdc7ffe6d92e086b932a4437d6 Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 15 Apr 2024 15:55:01 +0000 Subject: Bye, bye, OPENSSL_str{,n}casecmp() ok jsing --- src/lib/libcrypto/Makefile | 3 +-- src/lib/libcrypto/Symbols.list | 2 -- src/lib/libcrypto/o_str.c | 21 --------------------- 3 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 src/lib/libcrypto/o_str.c (limited to 'src') diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 7ed583fe4b..1e295d17ec 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/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/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index 3e7a32cf2f..aa3019905a 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/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/src/lib/libcrypto/o_str.c b/src/lib/libcrypto/o_str.c deleted file mode 100644 index f05889e4c8..0000000000 --- a/src/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 - -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); -} -- cgit v1.2.3-55-g6feb