informat = FORMAT_PEM;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
if (osk != NULL)
sk_OPENSSL_STRING_free(osk);
OBJ_cleanup();
- apps_shutdown();
+
return (ret);
}
EF_ALIGNMENT = 0;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
conf = NULL;
key = NULL;
NCONF_free(conf);
NCONF_free(extconf);
OBJ_cleanup();
- apps_shutdown();
+
return (ret);
}
meth = SSLv3_server_method();
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
SSL_free(ssl);
if (STDout != NULL)
BIO_free_all(STDout);
- apps_shutdown();
+
return (ret);
}
args = argv + 1;
ret = 1;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL) {
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
int do_ver = 0;
const EVP_MD *md_alg, *digest = EVP_sha1();
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
X509_STORE_CTX_cleanup(&ctx);
X509_STORE_free(store);
}
- apps_shutdown();
+
return (ret);
}
STACK_OF(X509) * cert_stack = NULL;
int ret = 1, nocrl = 0;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
if (crl != NULL)
X509_CRL_free(crl);
- apps_shutdown();
+
return (ret);
}
int non_fips_allow = 0;
STACK_OF(OPENSSL_STRING) * sigopts = NULL, *macopts = NULL;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if ((buf = (unsigned char *) malloc(BUFSIZE)) == NULL) {
BIO_printf(bio_err, "out of memory\n");
free(sigbuf);
if (bmd != NULL)
BIO_free(bmd);
- apps_shutdown();
+
return (err);
}
char *engine;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
BIO_free_all(out);
if (dh != NULL)
DH_free(dh);
- apps_shutdown();
+
return (ret);
}
#endif
#endif
int num = 0, g = 0;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
BIO_free_all(out);
if (dh != NULL)
DH_free(dh);
- apps_shutdown();
+
return (ret);
}
int pvk_encr = 2;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
free(passin);
if (passout)
free(passout);
- apps_shutdown();
+
return (ret);
}
#endif
int timebomb = 0;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
BIO_free_all(out);
if (dsa != NULL)
DSA_free(dsa);
- apps_shutdown();
+
return (ret);
}
int asn1_flag = OPENSSL_EC_NAMED_CURVE;
int new_asn1_flag = 0;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
free(passin);
if (passout)
free(passout);
- apps_shutdown();
+
return (ret);
}
#endif
*ec_order = NULL, *ec_cofactor = NULL;
unsigned char *buffer = NULL;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
BIO_free_all(out);
if (group != NULL)
EC_GROUP_free(group);
- apps_shutdown();
+
return (ret);
}
const EVP_MD *dgst = NULL;
int non_fips_allow = 0;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
#endif
if (pass)
free(pass);
- apps_shutdown();
+
return (ret);
}
BIO *bio_out = NULL;
const char *indent = " ";
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
SSL_load_error_strings();
if (bio_err == NULL)
sk_OPENSSL_STRING_pop_free(post_cmds, identity);
if (bio_out != NULL)
BIO_free_all(bio_out);
- apps_shutdown();
+
return (ret);
}
#endif
char buf[256];
unsigned long l;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
ret++;
}
}
- apps_shutdown();
+
return (ret);
}
#endif
BIO *out = NULL;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
BN_GENCB_set(&cb, dh_cb, bio_err);
if (bio_err == NULL)
BIO_free_all(out);
if (dh != NULL)
DH_free(dh);
- apps_shutdown();
+
return (ret);
}
char *engine = NULL;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
DSA_free(dsa);
if (passout)
free(passout);
- apps_shutdown();
+
return (ret);
}
#endif
if (!bn)
goto err;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
BN_GENCB_set(&cb, genrsa_cb, bio_err);
if (bio_err == NULL)
free(passout);
if (ret != 0)
ERR_print_errors(bio_err);
- apps_shutdown();
+
return (ret);
}
int usecrypt = 0, use1 = 0, useapr1 = 0;
size_t pw_maxlen = 0;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
BIO_free(in);
if (out)
BIO_free_all(out);
- apps_shutdown();
+
return (ret);
}
char *engine = NULL;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
cert_pbe = NID_pbe_WithSHA1And40BitRC2_CBC;
free(passin);
if (passout)
free(passout);
- apps_shutdown();
+
return (ret);
}
char *engine = NULL;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
BIO_free(in);
if (out != NULL)
BIO_free_all(out);
- apps_shutdown();
+
return (ret);
}
BIGNUM *bn = NULL;
BIO *bio_out;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
char *engine = NULL;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
ERR_print_errors(bio_err);
if (out)
BIO_free_all(out);
- apps_shutdown();
+
return (ret);
}
#ifndef OPENSSL_NO_DES
cipher = EVP_des_ede3_cbc();
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
if (passargout && passout)
free(passout);
OBJ_cleanup();
- apps_shutdown();
+
return (ex);
}
int pvk_encr = 2;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
free(passin);
if (passout)
free(passout);
- apps_shutdown();
+
return (ret);
}
#endif
meth = SSLv23_client_method();
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
c_Pause = 0;
c_quiet = 0;
c_ign_eof = 0;
BIO_free(bio_c_out);
bio_c_out = NULL;
}
- apps_shutdown();
+
return (ret);
}
local_argc = argc;
local_argv = argv;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
s_server_init();
if (bio_err == NULL)
BIO_free(bio_s_out);
bio_s_out = NULL;
}
- apps_shutdown();
+
return (ret);
}
char buf[1024 * 8];
int ver;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
s_time_init();
if (bio_err == NULL)
SSL_CTX_free(tm_ctx);
tm_ctx = NULL;
}
- apps_shutdown();
+
return (ret);
}
int cert = 0, noout = 0, text = 0;
const char **pp;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
BIO_free_all(out);
if (x != NULL)
SSL_SESSION_free(x);
- apps_shutdown();
+
return (ret);
}
args = argv + 1;
ret = 1;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL) {
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
usertime = -1;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
memset(results, 0, sizeof(results));
#ifndef OPENSSL_NO_DSA
memset(dsa_key, 0, sizeof(dsa_key));
}
#endif
- apps_shutdown();
+
return (mret);
}
char *engine = NULL;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (!bio_err)
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
EVP_PKEY_free(pkey);
if (passin)
free(passin);
- apps_shutdown();
+
return (ret);
}
EF_ALIGNMENT = 0;
#endif
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
conf = NULL;
section = NULL;
free_index(db);
OBJ_cleanup();
- apps_shutdown();
+
return (ret);
}
int free_bio_err = 0;
ERR_load_crypto_strings();
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL && (bio_err = BIO_new(BIO_s_file())) != NULL) {
free_bio_err = 1;
ERR_load_crypto_strings();
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
sk_X509_pop_free(untrusted, X509_free);
sk_X509_pop_free(trusted, X509_free);
sk_X509_CRL_pop_free(crls, X509_CRL_free);
- apps_shutdown();
+
return (ret < 0 ? 2 : ret);
}
int cflags = 0, version = 0, date = 0, options = 0, platform = 0,
dir = 0;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
if ((bio_err = BIO_new(BIO_s_file())) != NULL)
if (dir)
printf("%s\n", SSLeay_version(SSLEAY_DIR));
end:
- apps_shutdown();
+
return (ret);
}
reqfile = 0;
- apps_startup();
+ signal(SIGPIPE, SIG_IGN);
if (bio_err == NULL)
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
sk_ASN1_OBJECT_pop_free(reject, ASN1_OBJECT_free);
if (passin)
free(passin);
- apps_shutdown();
+
return (ret);
}