diff options
Diffstat (limited to 'src/usr.bin/openssl/genpkey.c')
| -rw-r--r-- | src/usr.bin/openssl/genpkey.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/genpkey.c b/src/usr.bin/openssl/genpkey.c index f161c55f7b..9e8e08aef4 100644 --- a/src/usr.bin/openssl/genpkey.c +++ b/src/usr.bin/openssl/genpkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: genpkey.c,v 1.10 2018/02/07 04:57:06 jsing Exp $ */ | 1 | /* $OpenBSD: genpkey.c,v 1.11 2018/02/07 05:47:55 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006 | 3 | * project 2006 |
| 4 | */ | 4 | */ |
| @@ -161,7 +161,7 @@ genpkey_main(int argc, char **argv) | |||
| 161 | badarg = 1; | 161 | badarg = 1; |
| 162 | 162 | ||
| 163 | if (badarg) { | 163 | if (badarg) { |
| 164 | bad: | 164 | bad: |
| 165 | BIO_printf(bio_err, "Usage: genpkey [options]\n"); | 165 | BIO_printf(bio_err, "Usage: genpkey [options]\n"); |
| 166 | BIO_printf(bio_err, "where options may be\n"); | 166 | BIO_printf(bio_err, "where options may be\n"); |
| 167 | BIO_printf(bio_err, "-out file output file\n"); | 167 | BIO_printf(bio_err, "-out file output file\n"); |
| @@ -237,7 +237,7 @@ bad: | |||
| 237 | } | 237 | } |
| 238 | ret = 0; | 238 | ret = 0; |
| 239 | 239 | ||
| 240 | end: | 240 | end: |
| 241 | EVP_PKEY_free(pkey); | 241 | EVP_PKEY_free(pkey); |
| 242 | EVP_PKEY_CTX_free(ctx); | 242 | EVP_PKEY_CTX_free(ctx); |
| 243 | BIO_free_all(out); | 243 | BIO_free_all(out); |
| @@ -279,7 +279,7 @@ init_keygen_file(BIO * err, EVP_PKEY_CTX ** pctx, | |||
| 279 | *pctx = ctx; | 279 | *pctx = ctx; |
| 280 | return 1; | 280 | return 1; |
| 281 | 281 | ||
| 282 | err: | 282 | err: |
| 283 | BIO_puts(err, "Error initializing context\n"); | 283 | BIO_puts(err, "Error initializing context\n"); |
| 284 | ERR_print_errors(err); | 284 | ERR_print_errors(err); |
| 285 | EVP_PKEY_CTX_free(ctx); | 285 | EVP_PKEY_CTX_free(ctx); |
| @@ -324,7 +324,7 @@ init_gen_str(BIO * err, EVP_PKEY_CTX ** pctx, | |||
| 324 | *pctx = ctx; | 324 | *pctx = ctx; |
| 325 | return 1; | 325 | return 1; |
| 326 | 326 | ||
| 327 | err: | 327 | err: |
| 328 | BIO_printf(err, "Error initializing %s context\n", algname); | 328 | BIO_printf(err, "Error initializing %s context\n", algname); |
| 329 | ERR_print_errors(err); | 329 | ERR_print_errors(err); |
| 330 | EVP_PKEY_CTX_free(ctx); | 330 | EVP_PKEY_CTX_free(ctx); |
