Fix no-engine no-ui.
authorBen Laurie <ben@links.org>
Mon, 18 Apr 2016 09:44:42 +0000 (10:44 +0100)
committerBen Laurie <ben@links.org>
Wed, 27 Apr 2016 11:36:30 +0000 (12:36 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/apps.c

index 8cf3b59ee84414f1fac36bbcf95bb4443e007a12..a80a07e3d5001dc1cb0ba7469451c7b47412503e 100644 (file)
@@ -156,7 +156,9 @@ typedef struct {
     unsigned long mask;
 } NAME_EX_TBL;
 
+#if !defined(OPENSSL_NO_UI) || !defined(OPENSSL_NO_ENGINE)
 static UI_METHOD *ui_method = NULL;
+#endif
 
 static int set_table_opts(unsigned long *flags, const char *arg,
                           const NAME_EX_TBL * in_tbl);