summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ocsp
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-09-26 17:38:42 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-09-26 17:38:42 +0000
commit7660c3d28322af77289e95c1315a4cc84185bd06 (patch)
treed2379ddb408aa82e422f7b558b7c6e8711f53e07 /lib/libcrypto/ocsp
parent3a9110179c5e59525588f04016abeb3b8b5a3cfa (diff)
Use ASN1_item_dup() instead of ASN1_dup().
ok bcook@
Diffstat (limited to 'lib/libcrypto/ocsp')
-rw-r--r--lib/libcrypto/ocsp/ocsp.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libcrypto/ocsp/ocsp.h b/lib/libcrypto/ocsp/ocsp.h
index b7e3115e8df..eb653099811 100644
--- a/lib/libcrypto/ocsp/ocsp.h
+++ b/lib/libcrypto/ocsp/ocsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ocsp.h,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: ocsp.h,v 1.7 2015/09/26 17:38:41 jsing Exp $ */
/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
* project. */
@@ -388,9 +388,8 @@ typedef struct ocsp_service_locator_st {
#define ASN1_BIT_STRING_digest(data,type,md,len) \
ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)
-#define OCSP_CERTSTATUS_dup(cs)\
- (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\
- (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs))
+#define OCSP_CERTSTATUS_dup(cs) \
+ ASN1_item_dup(&OCSP_CERTSTATUS_it, cs)
OCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id);