summaryrefslogtreecommitdiffstats
path: root/apps/apps_ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/apps_ui.h')
-rw-r--r--apps/apps_ui.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/apps_ui.h b/apps/apps_ui.h
new file mode 100644
index 0000000000..36e0864a08
--- /dev/null
+++ b/apps/apps_ui.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+#ifndef HEADER_APPS_UI_H
+# define HEADER_APPS_UI_H
+
+
+# define PW_MIN_LENGTH 4
+typedef struct pw_cb_data {
+ const void *password;
+ const char *prompt_info;
+} PW_CB_DATA;
+
+int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_data);
+
+int setup_ui_method(void);
+void destroy_ui_method(void);
+const UI_METHOD *get_ui_method(void);
+
+extern BIO *bio_err;
+
+#endif