]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
doc: remove duplicated code in example
authorPauli <paul.dale@oracle.com>
Wed, 30 Sep 2020 10:01:02 +0000 (20:01 +1000)
committerPauli <paul.dale@oracle.com>
Mon, 5 Oct 2020 23:01:34 +0000 (09:01 +1000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13048)

doc/man7/EVP_PKEY-EC.pod

index e423a529715db9a05b5e9049b78902efd4ec996b..9b195810d0e2b82d4655e9a79b58270d5779e78a 100644 (file)
@@ -166,10 +166,6 @@ An B<EVP_PKEY> EC CDH (Cofactor Diffie-Hellman) key can be generated with a
     EVP_PKEY_CTX *gctx =
         EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL);
 
-    EVP_PKEY *key = NULL;
-    OSSL_PARAM params[3];
-    EVP_PKEY_CTX *gctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL);
-
     EVP_PKEY_keygen_init(gctx);
 
     params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME,