mirror of
https://github.com/openssl/openssl.git
synced 2024-12-27 06:21:43 +08:00
5674466e00
This got triggered by test/testutil.h including ../apps/opt.h. Some compilers do all inclusions from the directory of the C file being compiled, so when a C file includes a header file with a relative file spec, and that header file also includes another header file with a relative file spec, the compiler no longer follows. As a specific example, test/testutil/basic_output.c included ../testutil.h. Fine so far, but then, test/testutil.h includes ../apps/opt.h, and the compiler ends up trying to include (seen from the source top) test/apps/opt.h rather than apps/opt.h, and fails. The solution could have been to simply add apps/ as an inclusion directory. However, that directory also has header files that have nothing to do with libapps, so we take this a bit further, create apps/include and move libapps specific headers there, and then add apps/include as inclusion directory in the build.info files where needed. Reviewed-by: Paul Yang <yang.yang@baishancloud.com> (Merged from https://github.com/openssl/openssl/pull/8210)
29 lines
710 B
C
29 lines
710 B
C
/*
|
|
* 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
|