diff options
author | Richard J. Moore <rich@kde.org> | 2016-07-31 01:08:30 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-08-01 16:13:27 +0200 |
commit | 4a9a0d9bcb6259124aa012b50540c298689fdf41 (patch) | |
tree | 1dac550ca3eaa38c66900786432f64b74b29c3d9 /crypto/ec | |
parent | 505aee296d377947a8f9aec9e6053282c5ff63fc (diff) |
Const EC_KEY_dup
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index 01faa62163..2d837f9c03 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -74,7 +74,7 @@ void EC_KEY_free(EC_KEY *r) OPENSSL_clear_free((void *)r, sizeof(EC_KEY)); } -EC_KEY *EC_KEY_copy(EC_KEY *dest, EC_KEY *src) +EC_KEY *EC_KEY_copy(EC_KEY *dest, const EC_KEY *src) { if (dest == NULL || src == NULL) { ECerr(EC_F_EC_KEY_COPY, ERR_R_PASSED_NULL_PARAMETER); @@ -151,7 +151,7 @@ EC_KEY *EC_KEY_copy(EC_KEY *dest, EC_KEY *src) return dest; } -EC_KEY *EC_KEY_dup(EC_KEY *ec_key) +EC_KEY *EC_KEY_dup(const EC_KEY *ec_key) { EC_KEY *ret = EC_KEY_new_method(ec_key->engine); |