Path: blob/main/crypto/openssl/apps/include/apps_ui.h
34870 views
/*1* Copyright 2018-2020 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#ifndef OSSL_APPS_UI_H10# define OSSL_APPS_UI_H111213# define PW_MIN_LENGTH 414typedef struct pw_cb_data {15const void *password;16const char *prompt_info;17} PW_CB_DATA;1819int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_data);2021int setup_ui_method(void);22void destroy_ui_method(void);23int set_base_ui_method(const UI_METHOD *ui_method);24const UI_METHOD *get_ui_method(void);2526extern BIO *bio_err;2728#endif293031