summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2022-12-23 02:20:28 +0000
committerjsing <>2022-12-23 02:20:28 +0000
commit4ed2a95a81d6732d2b435a025503ec360868ffbb (patch)
tree32e8776697214cefd819c1ff66f77968cc0acabd
parentcbe70dd07d4650c041b37b035949887a36a7dd54 (diff)
downloadopenbsd-4ed2a95a81d6732d2b435a025503ec360868ffbb.tar.gz
openbsd-4ed2a95a81d6732d2b435a025503ec360868ffbb.tar.bz2
openbsd-4ed2a95a81d6732d2b435a025503ec360868ffbb.zip
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@
-rw-r--r--src/lib/libcrypto/ui/ui_compat.h20
-rw-r--r--src/lib/libcrypto/ui/ui_util.c17
2 files changed, 2 insertions, 35 deletions
diff --git a/src/lib/libcrypto/ui/ui_compat.h b/src/lib/libcrypto/ui/ui_compat.h
index 860e80c83c..6484bf6b5e 100644
--- a/src/lib/libcrypto/ui/ui_compat.h
+++ b/src/lib/libcrypto/ui/ui_compat.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ui_compat.h,v 1.4 2014/06/12 15:49:31 deraadt Exp $ */ 1/* $OpenBSD: ui_compat.h,v 1.5 2022/12/23 02:20:28 jsing Exp $ */
2/* Written by Richard Levitte (richard@levitte.org) for the OpenSSL 2/* Written by Richard Levitte (richard@levitte.org) for the OpenSSL
3 * project 2001. 3 * project 2001.
4 */ 4 */
@@ -62,22 +62,4 @@
62#include <openssl/opensslconf.h> 62#include <openssl/opensslconf.h>
63#include <openssl/ui.h> 63#include <openssl/ui.h>
64 64
65#ifdef __cplusplus
66extern "C" {
67#endif
68
69/* The following functions were previously part of the DES section,
70 and are provided here for backward compatibility reasons. */
71
72#define des_read_pw_string(b,l,p,v) \
73 _ossl_old_des_read_pw_string((b),(l),(p),(v))
74#define des_read_pw(b,bf,s,p,v) \
75 _ossl_old_des_read_pw((b),(bf),(s),(p),(v))
76
77int _ossl_old_des_read_pw_string(char *buf, int length, const char *prompt, int verify);
78int _ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, int verify);
79
80#ifdef __cplusplus
81}
82#endif
83#endif 65#endif
diff --git a/src/lib/libcrypto/ui/ui_util.c b/src/lib/libcrypto/ui/ui_util.c
index 347e4118bc..5e7048531c 100644
--- a/src/lib/libcrypto/ui/ui_util.c
+++ b/src/lib/libcrypto/ui/ui_util.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ui_util.c,v 1.12 2022/11/26 16:08:54 tb Exp $ */ 1/* $OpenBSD: ui_util.c,v 1.13 2022/12/23 02:20:28 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2001-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2001-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -96,18 +96,3 @@ UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, int verify)
96 return (ok); 96 return (ok);
97} 97}
98LCRYPTO_ALIAS(UI_UTIL_read_pw) 98LCRYPTO_ALIAS(UI_UTIL_read_pw)
99
100/*
101 * Old compatibility glue - see comment in ui_compat.h.
102 */
103int
104_ossl_old_des_read_pw_string(char *buf, int length, const char *prompt, int verify)
105{
106 return UI_UTIL_read_pw_string(buf, length, prompt, verify);
107}
108
109int
110_ossl_old_des_read_pw(char *buf, char *buff, int size, const char *prompt, int verify)
111{
112 return UI_UTIL_read_pw(buf, buff, size, prompt, verify);
113}