summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ui')
-rw-r--r--src/lib/libcrypto/ui/ui.h5
-rw-r--r--src/lib/libcrypto/ui/ui_null.c18
2 files changed, 22 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ui/ui.h b/src/lib/libcrypto/ui/ui.h
index 7755cf4a3a..ee27fd2a49 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.14 2022/07/12 18:43:56 jsing Exp $ */ 1/* $OpenBSD: ui.h,v 1.15 2022/12/17 21:59:39 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 */
@@ -257,6 +257,9 @@ const UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth);
257/* The method with all the built-in thingies */ 257/* The method with all the built-in thingies */
258UI_METHOD *UI_OpenSSL(void); 258UI_METHOD *UI_OpenSSL(void);
259 259
260#if defined(LIBRESSL_INTERNAL) || defined(LIBRESSL_NEXT_API)
261const UI_METHOD *UI_null(void);
262#endif
260 263
261/* 264/*
262 * ---------- For method writers ---------- 265 * ---------- For method writers ----------
diff --git a/src/lib/libcrypto/ui/ui_null.c b/src/lib/libcrypto/ui/ui_null.c
new file mode 100644
index 0000000000..7bb7a90b2f
--- /dev/null
+++ b/src/lib/libcrypto/ui/ui_null.c
@@ -0,0 +1,18 @@
1/* $OpenBSD: ui_null.c,v 1.1 2022/12/17 21:59:39 tb Exp $ */
2
3/*
4 * Written by Theo Buehler. Public domain.
5 */
6
7#include "ui_local.h"
8
9static const UI_METHOD ui_null = {
10 .name = "OpenSSL NULL UI",
11};
12
13const UI_METHOD *
14UI_null(void)
15{
16 return &ui_null;
17}
18LCRYPTO_ALIAS(UI_null)