From 118a859ea4c28f8b6ffd00540de9e1b511925ae7 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 13 Oct 2015 15:25:18 +0000 Subject: Convert ECParameters_dup() from a macro that uses ASN1_dup_of() into an actual function. This removes the last ASN1_dup_of usage from the tree. Feedback from doug@ and miod@ --- src/lib/libcrypto/ec/ec.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/ec/ec.h') diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 3b409ff92d..a1ece2e0d5 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec.h,v 1.10 2015/06/20 13:26:08 jsing Exp $ */ +/* $OpenBSD: ec.h,v 1.11 2015/10/13 15:25:18 jsing Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -945,8 +945,7 @@ int ECParameters_print_fp(FILE *fp, const EC_KEY *key); */ int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); - -#define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) +EC_KEY *ECParameters_dup(EC_KEY *key); #ifndef __cplusplus #if defined(__SUNPRO_C) -- cgit v1.2.3-55-g6feb