summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeremy <>2018-11-30 04:51:19 +0000
committerjeremy <>2018-11-30 04:51:19 +0000
commitce46eb83da6f0dd3fd9a3e951067930ee51d2abb (patch)
tree48b5057dc820f12009e4be646d4f454c8ab6c34e
parentf886f47ca5d2be9b27a4c10d3a20cf5da69ec656 (diff)
downloadopenbsd-ce46eb83da6f0dd3fd9a3e951067930ee51d2abb.tar.gz
openbsd-ce46eb83da6f0dd3fd9a3e951067930ee51d2abb.tar.bz2
openbsd-ce46eb83da6f0dd3fd9a3e951067930ee51d2abb.zip
Restore function prototype for ASN1_dup, fixing usage on I32LP64 platforms.
This prototype was removed inadvertantly in r1.50. OK jsing@
-rw-r--r--src/lib/libcrypto/asn1/asn1.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index f6c6ba8045..0a8da415fb 100644
--- a/src/lib/libcrypto/asn1/asn1.h
+++ b/src/lib/libcrypto/asn1/asn1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1.h,v 1.52 2018/11/09 03:42:30 tb Exp $ */ 1/* $OpenBSD: asn1.h,v 1.53 2018/11/30 04:51:19 jeremy Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -825,6 +825,12 @@ int ASN1_object_size(int constructed, int length, int tag);
825 825
826void *ASN1_item_dup(const ASN1_ITEM *it, void *x); 826void *ASN1_item_dup(const ASN1_ITEM *it, void *x);
827 827
828#ifndef LIBRESSL_INTERNAL
829
830void *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x);
831
832#endif /* !LIBRESSL_INTERNAL */
833
828void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); 834void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x);
829 835
830#define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ 836#define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \