From: Pauli Date: Wed, 30 Sep 2020 10:01:02 +0000 (+1000) Subject: doc: remove duplicated code in example X-Git-Tag: openssl-3.0.0-alpha7~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69340cafb4a894c469a392ce517b2e092758f1c4;p=thirdparty%2Fopenssl.git doc: remove duplicated code in example Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/13048) --- diff --git a/doc/man7/EVP_PKEY-EC.pod b/doc/man7/EVP_PKEY-EC.pod index e423a529715..9b195810d0e 100644 --- a/doc/man7/EVP_PKEY-EC.pod +++ b/doc/man7/EVP_PKEY-EC.pod @@ -166,10 +166,6 @@ An B 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,