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.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libssl/src/apps/apps.h b/src/lib/libssl/src/apps/apps.h
index b2e78e12fb..ad8ae9d146 100644
--- a/src/lib/libssl/src/apps/apps.h
+++ b/src/lib/libssl/src/apps/apps.h
@@ -137,27 +137,11 @@ long app_RAND_load_files(char *file); /* `file' is a list of files to read,
137 * (see e_os.h). The string is 137 * (see e_os.h). The string is
138 * destroyed! */ 138 * destroyed! */
139 139
140#ifndef MONOLITH
141
142#define MAIN(a,v) main(a,v)
143
144#ifndef NON_MAIN
145CONF *config = NULL;
146BIO *bio_err = NULL;
147#else
148extern CONF *config;
149extern BIO *bio_err;
150#endif
151
152#else
153
154#define MAIN(a,v) PROG(a,v) 140#define MAIN(a,v) PROG(a,v)
155extern CONF *config; 141extern CONF *config;
156extern char *default_config_file; 142extern char *default_config_file;
157extern BIO *bio_err; 143extern BIO *bio_err;
158 144
159#endif
160
161#include <signal.h> 145#include <signal.h>
162 146
163#define do_pipe_sig() signal(SIGPIPE,SIG_IGN) 147#define do_pipe_sig() signal(SIGPIPE,SIG_IGN)
@@ -168,7 +152,7 @@ extern BIO *bio_err;
168#define zlib_cleanup() COMP_zlib_cleanup() 152#define zlib_cleanup() COMP_zlib_cleanup()
169#endif 153#endif
170 154
171#if defined(MONOLITH) && !defined(OPENSSL_C) 155#if !defined(OPENSSL_C)
172# define apps_startup() \ 156# define apps_startup() \
173 do_pipe_sig() 157 do_pipe_sig()
174# define apps_shutdown() 158# define apps_shutdown()