* (see e_os.h). The string is
* destroyed! */
-#ifndef MONOLITH
-
-#define MAIN(a,v) main(a,v)
-
-#ifndef NON_MAIN
-CONF *config = NULL;
-BIO *bio_err = NULL;
-#else
-extern CONF *config;
-extern BIO *bio_err;
-#endif
-
-#else
-
#define MAIN(a,v) PROG(a,v)
extern CONF *config;
extern char *default_config_file;
extern BIO *bio_err;
-#endif
-
#include <signal.h>
#define do_pipe_sig() signal(SIGPIPE,SIG_IGN)
#define zlib_cleanup() COMP_zlib_cleanup()
#endif
-#if defined(MONOLITH) && !defined(OPENSSL_C)
+#if !defined(OPENSSL_C)
# define apps_startup() \
do_pipe_sig()
# define apps_shutdown()
static void list_md(BIO *out);
char *default_config_file=NULL;
-/* Make sure there is only one when MONOLITH is defined */
-#ifdef MONOLITH
CONF *config=NULL;
BIO *bio_err=NULL;
-#endif
-
static void lock_dbg_cb(int mode, int type, const char *file, int line)
{
static EVP_PKEY_CTX *set_keygen_ctx(BIO *err, const char *gstr, int *pkey_type,
long *pkeylen, char **palgnam,
ENGINE *keygen_engine);
-#ifndef MONOLITH
-static char *default_config_file=NULL;
-#endif
static CONF *req_conf=NULL;
static int batch=0;
int multirdn = 0;
const EVP_MD *md_alg=NULL,*digest=NULL;
unsigned long chtype = MBSTRING_ASC;
-#ifndef MONOLITH
- char *to_free;
- long errline;
-#endif
req_conf = NULL;
#ifndef OPENSSL_NO_DES
goto end;
}
-#ifndef MONOLITH /* else this has happened in openssl.c (global `config') */
- /* Lets load up our environment a little */
- p=getenv("OPENSSL_CONF");
- if (p == NULL)
- p=getenv("SSLEAY_CONF");
- if (p == NULL)
- p=to_free=make_config_name();
- default_config_file=p;
- config=NCONF_new(NULL);
- i=NCONF_load(config, p, &errline);
-#endif
-
if (template != NULL)
{
long errline = -1;
}
ex=0;
end:
-#ifndef MONOLITH
- if(to_free)
- free(to_free);
-#endif
if (ex)
{
ERR_print_errors(bio_err);
static DH *get_dh512(void);
#endif
-#ifdef MONOLITH
static void s_server_init(void);
-#endif
#ifndef OPENSSL_NO_DH
static unsigned char dh512_p[]={
#endif
-#ifdef MONOLITH
static void s_server_init(void)
{
accept_socket=-1;
engine_id=NULL;
#endif
}
-#endif
static void sv_usage(void)
{
local_argv=argv;
apps_startup();
-#ifdef MONOLITH
s_server_init();
-#endif
if (bio_err == NULL)
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
-# $OpenBSD: Makefile,v 1.24 2014/04/17 20:46:29 tedu Exp $
+# $OpenBSD: Makefile,v 1.25 2014/04/17 22:44:34 matthew Exp $
PROG= openssl
LDADD= -lssl -lcrypto
SSLEAY_SRC_TOP= ${.CURDIR}/../../${SSLEAYDIST}
CFLAGS+= -Wall
-CFLAGS+= -DMONOLITH -DTERMIOS -DANSI_SOURCE -DOPENSSL_NO_RC5
+CFLAGS+= -DTERMIOS -DANSI_SOURCE -DOPENSSL_NO_RC5
CFLAGS+= -DOPENSSL_NO_SSL2
CFLAGS+= -I${SSLEAY_SRC_TOP}