2
0

apps_ui.h 710 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (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. #ifndef HEADER_APPS_UI_H
  10. # define HEADER_APPS_UI_H
  11. # define PW_MIN_LENGTH 4
  12. typedef struct pw_cb_data {
  13. const void *password;
  14. const char *prompt_info;
  15. } PW_CB_DATA;
  16. int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_data);
  17. int setup_ui_method(void);
  18. void destroy_ui_method(void);
  19. const UI_METHOD *get_ui_method(void);
  20. extern BIO *bio_err;
  21. #endif