diff options
author | jsing <> | 2014-04-24 12:22:22 +0000 |
---|---|---|
committer | jsing <> | 2014-04-24 12:22:22 +0000 |
commit | e9702133faf0d911803a3f642fb2d87d696708ef (patch) | |
tree | 365353d8eaf7800412dd262f4c3aa7681555e245 /src/lib/libssl/src/apps/genrsa.c | |
parent | a8d067331dc94d6605ac28365db8ef5acb460b95 (diff) | |
download | openbsd-e9702133faf0d911803a3f642fb2d87d696708ef.tar.gz openbsd-e9702133faf0d911803a3f642fb2d87d696708ef.tar.bz2 openbsd-e9702133faf0d911803a3f642fb2d87d696708ef.zip |
When OPENSSL_C is not defined, apps_startup becomes a
signal(SIGPIPE, SIG_IGN) and apps_shutdown is a no-op. So just do that
instead.
ok beck@
Diffstat (limited to 'src/lib/libssl/src/apps/genrsa.c')
-rw-r--r-- | src/lib/libssl/src/apps/genrsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/src/apps/genrsa.c b/src/lib/libssl/src/apps/genrsa.c index 020bc49aaf..79c228f2d3 100644 --- a/src/lib/libssl/src/apps/genrsa.c +++ b/src/lib/libssl/src/apps/genrsa.c | |||
@@ -109,7 +109,7 @@ genrsa_main(int argc, char **argv) | |||
109 | if (!bn) | 109 | if (!bn) |
110 | goto err; | 110 | goto err; |
111 | 111 | ||
112 | apps_startup(); | 112 | signal(SIGPIPE, SIG_IGN); |
113 | BN_GENCB_set(&cb, genrsa_cb, bio_err); | 113 | BN_GENCB_set(&cb, genrsa_cb, bio_err); |
114 | 114 | ||
115 | if (bio_err == NULL) | 115 | if (bio_err == NULL) |
@@ -284,7 +284,7 @@ err: | |||
284 | free(passout); | 284 | free(passout); |
285 | if (ret != 0) | 285 | if (ret != 0) |
286 | ERR_print_errors(bio_err); | 286 | ERR_print_errors(bio_err); |
287 | apps_shutdown(); | 287 | |
288 | return (ret); | 288 | return (ret); |
289 | } | 289 | } |
290 | 290 | ||