xref: /openssl/crypto/ui/ui_null.c (revision 706457b7)
1 /*
2  * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #include "ui_local.h"
11 
12 static const UI_METHOD ui_null = {
13     "OpenSSL NULL UI",
14     NULL,                        /* opener */
15     NULL,                        /* writer */
16     NULL,                        /* flusher */
17     NULL,                        /* reader */
18     NULL,                        /* closer */
19     NULL
20 };
21 
22 /* The method with all the built-in thingies */
UI_null(void)23 const UI_METHOD *UI_null(void)
24 {
25     return &ui_null;
26 }
27