X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Fdhparam.c;h=3e5f4095a9eb28132d14437069ab1293980794e1;hb=a96e6c347bc1da9964ffe941608b11cf030320ef;hp=54b159e50ea90aee5e8b213d7be4ae5d94dde7a4;hpb=ccefc3411e8870776b83fe740664c1e23217eb9c;p=openssl.git diff --git a/apps/dhparam.c b/apps/dhparam.c index 54b159e50e..3e5f4095a9 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -1,5 +1,5 @@ /* - * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -245,7 +245,7 @@ int dhparam_main(int argc, char **argv) ERR_print_errors(bio_err); goto end; } - + if (!EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, num)) { BIO_printf(bio_err, "Error, unable to set DH prime length\n"); ERR_print_errors(bio_err); @@ -258,7 +258,6 @@ int dhparam_main(int argc, char **argv) } } } else { - in = bio_open_default(infile, 'r', informat); if (in == NULL) goto end; @@ -307,7 +306,6 @@ int dhparam_main(int argc, char **argv) goto end; } } - /* dh != NULL */ }