summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec.h
diff options
context:
space:
mode:
authorjsing <>2015-10-13 15:25:18 +0000
committerjsing <>2015-10-13 15:25:18 +0000
commit118a859ea4c28f8b6ffd00540de9e1b511925ae7 (patch)
tree95c0b10e1d70598129942e4d7c82e0d1c7bcf82c /src/lib/libcrypto/ec/ec.h
parent662c5e99363907f9f55492004d9626b6b7ae4579 (diff)
downloadopenbsd-118a859ea4c28f8b6ffd00540de9e1b511925ae7.tar.gz
openbsd-118a859ea4c28f8b6ffd00540de9e1b511925ae7.tar.bz2
openbsd-118a859ea4c28f8b6ffd00540de9e1b511925ae7.zip
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@
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r--src/lib/libcrypto/ec/ec.h5
1 files changed, 2 insertions, 3 deletions
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 @@
1/* $OpenBSD: ec.h,v 1.10 2015/06/20 13:26:08 jsing Exp $ */ 1/* $OpenBSD: ec.h,v 1.11 2015/10/13 15:25:18 jsing Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -945,8 +945,7 @@ int ECParameters_print_fp(FILE *fp, const EC_KEY *key);
945 */ 945 */
946int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); 946int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);
947 947
948 948EC_KEY *ECParameters_dup(EC_KEY *key);
949#define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)
950 949
951#ifndef __cplusplus 950#ifndef __cplusplus
952#if defined(__SUNPRO_C) 951#if defined(__SUNPRO_C)