From 5e452fbcbaa85718d1cafb0f047a72e9825b28a0 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 9 Mar 2025 15:25:53 +0000 Subject: const correct UI_OpenSSL() ok jsing --- src/lib/libcrypto/ui/ui.h | 4 ++-- src/lib/libcrypto/ui/ui_openssl.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 @@ -/* $OpenBSD: ui.h,v 1.19 2024/08/31 10:28:03 tb Exp $ */ +/* $OpenBSD: ui.h,v 1.20 2025/03/09 15:25:53 tb Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2001. */ @@ -253,7 +253,7 @@ const UI_METHOD *UI_get_method(UI *ui); const UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth); /* The method with all the built-in thingies */ -UI_METHOD *UI_OpenSSL(void); +const UI_METHOD *UI_OpenSSL(void); const UI_METHOD *UI_null(void); 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 @@ -/* $OpenBSD: ui_openssl.c,v 1.28 2023/02/16 08:38:17 tb Exp $ */ +/* $OpenBSD: ui_openssl.c,v 1.29 2025/03/09 15:25:53 tb Exp $ */ /* Written by Richard Levitte (richard@levitte.org) and others * for the OpenSSL project 2001. */ @@ -153,7 +153,7 @@ static int echo_console(UI *ui); static int noecho_console(UI *ui); static int close_console(UI *ui); -static UI_METHOD ui_openssl = { +static const UI_METHOD ui_openssl = { .name = "OpenSSL default user interface", .ui_open_session = open_console, .ui_write_string = write_string, @@ -162,7 +162,7 @@ static UI_METHOD ui_openssl = { }; /* The method with all the built-in thingies */ -UI_METHOD * +const UI_METHOD * UI_OpenSSL(void) { return &ui_openssl; -- cgit v1.2.3-55-g6feb