Path: blob/main/crypto/openssl/apps/include/apps_ui.h
103971 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_H1112#define PW_MIN_LENGTH 413typedef struct pw_cb_data {14const void *password;15const char *prompt_info;16} PW_CB_DATA;1718int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_data);1920int setup_ui_method(void);21void destroy_ui_method(void);22int set_base_ui_method(const UI_METHOD *ui_method);23const UI_METHOD *get_ui_method(void);2425extern BIO *bio_err;2627#endif282930