diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2022-12-23 02:20:29 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2022-12-23 02:20:29 +0000 |
commit | f9763c7fb05081121d57e4c13c59f02e82caa85e (patch) | |
tree | 44dd667e50dab6c091c97556d14bfe37c9db59dd /lib/libcrypto/ui | |
parent | 165b17fbae2006e8968788a47410561c86b5a070 (diff) |
Remove compatibility "glue" for des_read_pw{_string}()
Nothing can be actually using these as the symbols are not exported from
libcrypto... hopefully ui_compat.h can also go away entirely.
ok tb@
Diffstat (limited to 'lib/libcrypto/ui')
-rw-r--r-- | lib/libcrypto/ui/ui_compat.h | 20 | ||||
-rw-r--r-- | lib/libcrypto/ui/ui_util.c | 17 |
2 files changed, 2 insertions, 35 deletions
diff --git a/lib/libcrypto/ui/ui_compat.h b/lib/libcrypto/ui/ui_compat.h index 860e80c83c5..6484bf6b5e5 100644 --- a/lib/libcrypto/ui/ui_compat.h +++ b/lib/libcrypto/ui/ui_compat.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ui_compat.h,v 1.4 2014/06/12 15:49:31 deraadt Exp $ */ +/* $OpenBSD: ui_compat.h,v 1.5 2022/12/23 02:20:28 jsing Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2001. */ @@ -62,22 +62,4 @@ #include <openssl/opensslconf.h> #include <openssl/ui.h> -#ifdef __cplusplus -extern "C" { -#endif - -/* The following functions were previously part of the DES section, - and are provided here for backward compatibility reasons. */ - -#define des_read_pw_string(b,l,p,v) \ - _ossl_old_des_read_pw_string((b),(l),(p),(v)) -#define des_read_pw(b,bf,s,p,v) \ - _ossl_old_des_read_pw((b),(bf),(s),(p),(v)) - -int _ossl_old_des_read_pw_string(char *buf, int length, const char *prompt, int verify); -int _ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, int verify); - -#ifdef __cplusplus -} -#endif #endif diff --git a/lib/libcrypto/ui/ui_util.c b/lib/libcrypto/ui/ui_util.c index 347e4118bcc..5e7048531cc 100644 --- a/lib/libcrypto/ui/ui_util.c +++ b/lib/libcrypto/ui/ui_util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ui_util.c,v 1.12 2022/11/26 16:08:54 tb Exp $ */ +/* $OpenBSD: ui_util.c,v 1.13 2022/12/23 02:20:28 jsing Exp $ */ /* ==================================================================== * Copyright (c) 2001-2002 The OpenSSL Project. All rights reserved. * @@ -96,18 +96,3 @@ UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) return (ok); } LCRYPTO_ALIAS(UI_UTIL_read_pw) - -/* - * Old compatibility glue - see comment in ui_compat.h. - */ -int -_ossl_old_des_read_pw_string(char *buf, int length, const char *prompt, int verify) -{ - return UI_UTIL_read_pw_string(buf, length, prompt, verify); -} - -int -_ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, int verify) -{ - return UI_UTIL_read_pw(buf, buff, size, prompt, verify); -} |