Go to the documentation of this file.
112 #ifndef HEADER_APPS_H
113 #define HEADER_APPS_H
122 #ifndef OPENSSL_NO_ENGINE
125 #ifndef OPENSSL_NO_OCSP
142 #define MAIN(a,v) main(a,v)
154 #define MAIN(a,v) PROG(a,v)
156 extern char *default_config_file;
161 #ifndef OPENSSL_SYS_NETWARE
166 #define do_pipe_sig() signal(SIGPIPE,SIG_IGN)
168 #define do_pipe_sig()
171 #ifdef OPENSSL_NO_COMP
172 #define zlib_cleanup()
174 #define zlib_cleanup() COMP_zlib_cleanup()
177 #if defined(MONOLITH) && !defined(OPENSSL_C)
178 # define apps_startup() \
180 # define apps_shutdown()
182 # ifndef OPENSSL_NO_ENGINE
183 # define apps_startup() \
184 do { do_pipe_sig(); CRYPTO_malloc_init(); \
185 ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
186 ENGINE_load_builtin_engines(); setup_ui_method(); } while(0)
187 # define apps_shutdown() \
188 do { CONF_modules_unload(1); destroy_ui_method(); \
189 OBJ_cleanup(); EVP_cleanup(); ENGINE_cleanup(); \
190 CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
191 ERR_free_strings(); zlib_cleanup();} while(0)
193 # define apps_startup() \
194 do { do_pipe_sig(); CRYPTO_malloc_init(); \
195 ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
196 setup_ui_method(); } while(0)
197 # define apps_shutdown() \
198 do { CONF_modules_unload(1); destroy_ui_method(); \
199 OBJ_cleanup(); EVP_cleanup(); \
200 CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
201 ERR_free_strings(); zlib_cleanup(); } while(0)
205 #ifdef OPENSSL_SYSNAME_WIN32
206 # define openssl_fdset(a,b) FD_SET((unsigned int)a, b)
208 # define openssl_fdset(a,b) FD_SET(a, b)
218 #define PW_MIN_LENGTH 4
244 int app_passwd(
BIO *err,
char *arg1,
char *arg2,
char **pass1,
char **pass2);
249 const char *
pass,
ENGINE *
e,
const char *key_descrip);
251 const char *
pass,
ENGINE *
e,
const char *key_descrip);
257 #ifndef OPENSSL_NO_ENGINE
261 #ifndef OPENSSL_NO_OCSP
263 char *host,
char *path,
char *port,
int use_ssl,
276 #define DB_exp_date 1
277 #define DB_rev_date 2
283 #define DB_TYPE_REV 'R'
284 #define DB_TYPE_EXP 'E'
285 #define DB_TYPE_VAL 'V'
299 int rotate_serial(
char *serialfile,
char *new_suffix,
char *old_suffix);
304 int rotate_index(
const char *dbfile,
const char *new_suffix,
const char *old_suffix);
306 #define index_name_cmp_noconst(a, b) \
307 index_name_cmp((const OPENSSL_CSTRING *)CHECKED_PTR_OF(OPENSSL_STRING, a), \
308 (const OPENSSL_CSTRING *)CHECKED_PTR_OF(OPENSSL_STRING, b))
319 const char *algname,
ENGINE *
e,
int do_param);
326 #ifndef OPENSSL_NO_PSK
329 #ifndef OPENSSL_NO_JPAKE
334 #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG)
338 #define FORMAT_UNDEF 0
339 #define FORMAT_ASN1 1
340 #define FORMAT_TEXT 2
342 #define FORMAT_NETSCAPE 4
343 #define FORMAT_PKCS12 5
344 #define FORMAT_SMIME 6
345 #define FORMAT_ENGINE 7
346 #define FORMAT_IISSGC 8
348 #define FORMAT_PEMRSA 9
349 #define FORMAT_ASN1RSA 10
350 #define FORMAT_MSBLOB 11
351 #define FORMAT_PVK 12
353 #define EXT_COPY_NONE 0
354 #define EXT_COPY_ADD 1
355 #define EXT_COPY_ALL 2
357 #define NETSCAPE_CERT_HDR "certificate"
359 #define APP_PASS_LEN 1024
361 #define SERIAL_RAND_BITS 64
371 #define OPENSSL_NO_SSL_INTERN