summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2025-03-09 15:25:53 +0000
committertb <>2025-03-09 15:25:53 +0000
commit5e452fbcbaa85718d1cafb0f047a72e9825b28a0 (patch)
tree55a3acf05b23f79cc31bde5751c2440a5d9fbf26 /src/lib
parentbf7d4b90688577912cb93df8fee86d8df72338d3 (diff)
downloadopenbsd-5e452fbcbaa85718d1cafb0f047a72e9825b28a0.tar.gz
openbsd-5e452fbcbaa85718d1cafb0f047a72e9825b28a0.tar.bz2
openbsd-5e452fbcbaa85718d1cafb0f047a72e9825b28a0.zip
const correct UI_OpenSSL()
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/ui/ui.h4
-rw-r--r--src/lib/libcrypto/ui/ui_openssl.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ui/ui.h b/src/lib/libcrypto/ui/ui.h
index e297e9fbaf..cc400c2d5a 100644
--- a/src/lib/libcrypto/ui/ui.h
+++ b/src/lib/libcrypto/ui/ui.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ui.h,v 1.19 2024/08/31 10:28:03 tb Exp $ */ 1/* $OpenBSD: ui.h,v 1.20 2025/03/09 15:25:53 tb 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 */
@@ -253,7 +253,7 @@ const UI_METHOD *UI_get_method(UI *ui);
253const UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth); 253const UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth);
254 254
255/* The method with all the built-in thingies */ 255/* The method with all the built-in thingies */
256UI_METHOD *UI_OpenSSL(void); 256const UI_METHOD *UI_OpenSSL(void);
257 257
258const UI_METHOD *UI_null(void); 258const UI_METHOD *UI_null(void);
259 259
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c
index 0b91700571..3ace3a4e75 100644
--- a/src/lib/libcrypto/ui/ui_openssl.c
+++ b/src/lib/libcrypto/ui/ui_openssl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ui_openssl.c,v 1.28 2023/02/16 08:38:17 tb Exp $ */ 1/* $OpenBSD: ui_openssl.c,v 1.29 2025/03/09 15:25:53 tb Exp $ */
2/* Written by Richard Levitte (richard@levitte.org) and others 2/* Written by Richard Levitte (richard@levitte.org) and others
3 * for the OpenSSL project 2001. 3 * for the OpenSSL project 2001.
4 */ 4 */
@@ -153,7 +153,7 @@ static int echo_console(UI *ui);
153static int noecho_console(UI *ui); 153static int noecho_console(UI *ui);
154static int close_console(UI *ui); 154static int close_console(UI *ui);
155 155
156static UI_METHOD ui_openssl = { 156static const UI_METHOD ui_openssl = {
157 .name = "OpenSSL default user interface", 157 .name = "OpenSSL default user interface",
158 .ui_open_session = open_console, 158 .ui_open_session = open_console,
159 .ui_write_string = write_string, 159 .ui_write_string = write_string,
@@ -162,7 +162,7 @@ static UI_METHOD ui_openssl = {
162}; 162};
163 163
164/* The method with all the built-in thingies */ 164/* The method with all the built-in thingies */
165UI_METHOD * 165const UI_METHOD *
166UI_OpenSSL(void) 166UI_OpenSSL(void)
167{ 167{
168 return &ui_openssl; 168 return &ui_openssl;