summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/apps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/apps/apps.h')
-rw-r--r--src/lib/libssl/src/apps/apps.h38
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
129int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn); 130int 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))
141int WIN32_rename(char *oldname,char *newname); 142int 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
149CONF *config=NULL; 150CONF *config=NULL;
150BIO *bio_err=NULL; 151BIO *bio_err=NULL;
151int in_FIPS_mode=0;
152#else 152#else
153extern CONF *config; 153extern CONF *config;
154extern BIO *bio_err; 154extern BIO *bio_err;
155extern int in_FIPS_mode;
156#endif 155#endif
157 156
158#else 157#else
@@ -161,11 +160,12 @@ extern int in_FIPS_mode;
161extern CONF *config; 160extern CONF *config;
162extern char *default_config_file; 161extern char *default_config_file;
163extern BIO *bio_err; 162extern BIO *bio_err;
164extern 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
234typedef struct args_st 240typedef struct args_st
235 { 241 {
236 char **data; 242 char **data;
@@ -257,7 +263,7 @@ void program_name(char *in,char *out,int size);
257int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]); 263int chopup_args(ARGS *arg,char *buf, int *argc, char **argv[]);
258#ifdef HEADER_X509_H 264#ifdef HEADER_X509_H
259int dump_cert_text(BIO *out, X509 *x); 265int dump_cert_text(BIO *out, X509 *x);
260void print_name(BIO *out, char *title, X509_NAME *nm, unsigned long lflags); 266void print_name(BIO *out, const char *title, X509_NAME *nm, unsigned long lflags);
261#endif 267#endif
262int set_cert_ex(unsigned long *flags, const char *arg); 268int set_cert_ex(unsigned long *flags, const char *arg);
263int set_name_ex(unsigned long *flags, const char *arg); 269int set_name_ex(unsigned long *flags, const char *arg);
@@ -278,12 +284,18 @@ X509_STORE *setup_verify(BIO *bp, char *CAfile, char *CApath);
278ENGINE *setup_engine(BIO *err, const char *engine, int debug); 284ENGINE *setup_engine(BIO *err, const char *engine, int debug);
279#endif 285#endif
280 286
287#ifndef OPENSSL_NO_OCSP
288OCSP_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
281int load_config(BIO *err, CONF *cnf); 293int load_config(BIO *err, CONF *cnf);
282char *make_config_name(void); 294char *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 */
285int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, 297int 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);
313int rand_serial(BIGNUM *b, ASN1_INTEGER *ai); 325int rand_serial(BIGNUM *b, ASN1_INTEGER *ai);
314CA_DB *load_index(char *dbfile, DB_ATTR *dbattr); 326CA_DB *load_index(char *dbfile, DB_ATTR *dbattr);
315int index_index(CA_DB *db); 327int index_index(CA_DB *db);
316int save_index(char *dbfile, char *suffix, CA_DB *db); 328int save_index(const char *dbfile, const char *suffix, CA_DB *db);
317int rotate_index(char *dbfile, char *new_suffix, char *old_suffix); 329int rotate_index(const char *dbfile, const char *new_suffix, const char *old_suffix);
318void free_index(CA_DB *db); 330void free_index(CA_DB *db);
319int index_name_cmp(const char **a, const char **b); 331int index_name_cmp(const char **a, const char **b);
332int parse_yesno(const char *str, int def);
320 333
321X509_NAME *do_subject(char *str, long chtype); 334X509_NAME *parse_name(char *str, long chtype, int multirdn);
335int args_verify(char ***pargs, int *pargc,
336 int *badarg, BIO *err, X509_VERIFY_PARAM **pm);
337void 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