diff options
Diffstat (limited to 'src/lib/libssl/src/apps/apps.h')
-rw-r--r-- | src/lib/libssl/src/apps/apps.h | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/src/lib/libssl/src/apps/apps.h b/src/lib/libssl/src/apps/apps.h index 4320410dad..0df170813a 100644 --- a/src/lib/libssl/src/apps/apps.h +++ b/src/lib/libssl/src/apps/apps.h | |||
@@ -114,9 +114,7 @@ | |||
114 | 114 | ||
115 | #include "e_os.h" | 115 | #include "e_os.h" |
116 | 116 | ||
117 | #include <openssl/buffer.h> | ||
118 | #include <openssl/bio.h> | 117 | #include <openssl/bio.h> |
119 | #include <openssl/crypto.h> | ||
120 | #include <openssl/x509.h> | 118 | #include <openssl/x509.h> |
121 | #include <openssl/lhash.h> | 119 | #include <openssl/lhash.h> |
122 | #include <openssl/conf.h> | 120 | #include <openssl/conf.h> |
@@ -124,6 +122,9 @@ | |||
124 | #ifndef OPENSSL_NO_ENGINE | 122 | #ifndef OPENSSL_NO_ENGINE |
125 | #include <openssl/engine.h> | 123 | #include <openssl/engine.h> |
126 | #endif | 124 | #endif |
125 | #ifndef OPENSSL_NO_OCSP | ||
126 | #include <openssl/ocsp.h> | ||
127 | #endif | ||
127 | #include <openssl/ossl_typ.h> | 128 | #include <openssl/ossl_typ.h> |
128 | 129 | ||
129 | int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn); | 130 | int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn); |
@@ -138,7 +139,7 @@ long app_RAND_load_files(char *file); /* `file' is a list of files to read, | |||
138 | 139 | ||
139 | #ifdef OPENSSL_SYS_WIN32 | 140 | #ifdef OPENSSL_SYS_WIN32 |
140 | #define rename(from,to) WIN32_rename((from),(to)) | 141 | #define rename(from,to) WIN32_rename((from),(to)) |
141 | int WIN32_rename(char *oldname,char *newname); | 142 | int WIN32_rename(const char *oldname,const char *newname); |
142 | #endif | 143 | #endif |
143 | 144 | ||
144 | #ifndef MONOLITH | 145 | #ifndef MONOLITH |
@@ -148,11 +149,9 @@ int WIN32_rename(char *oldname,char *newname); | |||
148 | #ifndef NON_MAIN | 149 | #ifndef NON_MAIN |
149 | CONF *config=NULL; | 150 | CONF *config=NULL; |
150 | BIO *bio_err=NULL; | 151 | BIO *bio_err=NULL; |
151 | int in_FIPS_mode=0; | ||
152 | #else | 152 | #else |
153 | extern CONF *config; | 153 | extern CONF *config; |
154 | extern BIO *bio_err; | 154 | extern BIO *bio_err; |
155 | extern int in_FIPS_mode; | ||
156 | #endif | 155 | #endif |
157 | 156 | ||
158 | #else | 157 | #else |
@@ -161,11 +160,12 @@ extern int in_FIPS_mode; | |||
161 | extern CONF *config; | 160 | extern CONF *config; |
162 | extern char *default_config_file; | 161 | extern char *default_config_file; |
163 | extern BIO *bio_err; | 162 | extern BIO *bio_err; |
164 | extern int in_FIPS_mode; | ||
165 | 163 | ||
166 | #endif | 164 | #endif |
167 | 165 | ||
166 | #ifndef OPENSSL_SYS_NETWARE | ||
168 | #include <signal.h> | 167 | #include <signal.h> |
168 | #endif | ||
169 | 169 | ||
170 | #ifdef SIGPIPE | 170 | #ifdef SIGPIPE |
171 | #define do_pipe_sig() signal(SIGPIPE,SIG_IGN) | 171 | #define do_pipe_sig() signal(SIGPIPE,SIG_IGN) |
@@ -231,6 +231,12 @@ extern int in_FIPS_mode; | |||
231 | # endif | 231 | # endif |
232 | #endif | 232 | #endif |
233 | 233 | ||
234 | #ifdef OPENSSL_SYSNAME_WIN32 | ||
235 | # define openssl_fdset(a,b) FD_SET((unsigned int)a, b) | ||
236 | #else | ||
237 | # define openssl_fdset(a,b) FD_SET(a, b) | ||
238 | #endif | ||
239 | |||
234 | typedef struct args_st | 240 | typedef struct args_st |
235 | { | 241 | { |
236 | char **data; | 242 | char **data; |
@@ -257,7 +263,7 @@ void program_name(char *in,char *out,int size); | |||
257 | int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]); | 263 | int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]); |
258 | #ifdef HEADER_X509_H | 264 | #ifdef HEADER_X509_H |
259 | int dump_cert_text(BIO *out, X509 *x); | 265 | int dump_cert_text(BIO *out, X509 *x); |
260 | void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags); | 266 | void print_name(BIO *out, const char *title, X509_NAME *nm, unsigned long lflags); |
261 | #endif | 267 | #endif |
262 | int set_cert_ex(unsigned long *flags, const char *arg); | 268 | int set_cert_ex(unsigned long *flags, const char *arg); |
263 | int set_name_ex(unsigned long *flags, const char *arg); | 269 | int set_name_ex(unsigned long *flags, const char *arg); |
@@ -278,12 +284,18 @@ X509_STORE *setup_verify(BIO *bp, char *CAfile, char *CApath); | |||
278 | ENGINE *setup_engine(BIO *err, const char *engine, int debug); | 284 | ENGINE *setup_engine(BIO *err, const char *engine, int debug); |
279 | #endif | 285 | #endif |
280 | 286 | ||
287 | #ifndef OPENSSL_NO_OCSP | ||
288 | OCSP_RESPONSE *process_responder(BIO *err, OCSP_REQUEST *req, | ||
289 | char *host, char *path, char *port, int use_ssl, | ||
290 | int req_timeout); | ||
291 | #endif | ||
292 | |||
281 | int load_config(BIO *err, CONF *cnf); | 293 | int load_config(BIO *err, CONF *cnf); |
282 | char *make_config_name(void); | 294 | char *make_config_name(void); |
283 | 295 | ||
284 | /* Functions defined in ca.c and also used in ocsp.c */ | 296 | /* Functions defined in ca.c and also used in ocsp.c */ |
285 | int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, | 297 | int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, |
286 | ASN1_GENERALIZEDTIME **pinvtm, char *str); | 298 | ASN1_GENERALIZEDTIME **pinvtm, const char *str); |
287 | 299 | ||
288 | #define DB_type 0 | 300 | #define DB_type 0 |
289 | #define DB_exp_date 1 | 301 | #define DB_exp_date 1 |
@@ -313,12 +325,16 @@ int rotate_serial(char *serialfile, char *new_suffix, char *old_suffix); | |||
313 | int rand_serial(BIGNUM *b, ASN1_INTEGER *ai); | 325 | int rand_serial(BIGNUM *b, ASN1_INTEGER *ai); |
314 | CA_DB *load_index(char *dbfile, DB_ATTR *dbattr); | 326 | CA_DB *load_index(char *dbfile, DB_ATTR *dbattr); |
315 | int index_index(CA_DB *db); | 327 | int index_index(CA_DB *db); |
316 | int save_index(char *dbfile, char *suffix, CA_DB *db); | 328 | int save_index(const char *dbfile, const char *suffix, CA_DB *db); |
317 | int rotate_index(char *dbfile, char *new_suffix, char *old_suffix); | 329 | int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix); |
318 | void free_index(CA_DB *db); | 330 | void free_index(CA_DB *db); |
319 | int index_name_cmp(const char **a, const char **b); | 331 | int index_name_cmp(const char **a, const char **b); |
332 | int parse_yesno(const char *str, int def); | ||
320 | 333 | ||
321 | X509_NAME *do_subject(char *str, long chtype); | 334 | X509_NAME *parse_name(char *str, long chtype, int multirdn); |
335 | int args_verify(char ***pargs, int *pargc, | ||
336 | int *badarg, BIO *err, X509_VERIFY_PARAM **pm); | ||
337 | void policies_print(BIO *out, X509_STORE_CTX *ctx); | ||
322 | 338 | ||
323 | #define FORMAT_UNDEF 0 | 339 | #define FORMAT_UNDEF 0 |
324 | #define FORMAT_ASN1 1 | 340 | #define FORMAT_ASN1 1 |