From 9fdcc21fdc9d148f78d9cd5be34030f38cc45812 Mon Sep 17 00:00:00 2001 From: David von Oheimb Date: Tue, 15 Jan 2019 21:51:25 +0100 Subject: constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8029) --- crypto/sm2/sm2_pmeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/sm2') diff --git a/crypto/sm2/sm2_pmeth.c b/crypto/sm2/sm2_pmeth.c index 5ca430f515..fecdc28fe9 100644 --- a/crypto/sm2/sm2_pmeth.c +++ b/crypto/sm2/sm2_pmeth.c @@ -54,7 +54,7 @@ static void pkey_sm2_cleanup(EVP_PKEY_CTX *ctx) } } -static int pkey_sm2_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) +static int pkey_sm2_copy(EVP_PKEY_CTX *dst, const EVP_PKEY_CTX *src) { SM2_PKEY_CTX *dctx, *sctx; -- cgit v1.2.3