From 0c8006480f2d5e4999726ab4161b173010bea13a Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 16 Aug 2016 20:14:02 +0100 Subject: [PATCH] Constify ASN1_item_unpack(). Reviewed-by: Richard Levitte --- crypto/asn1/asn_pack.c | 2 +- include/openssl/asn1.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/asn1/asn_pack.c b/crypto/asn1/asn_pack.c index 1f5be53189..63bc306756 100644 --- a/crypto/asn1/asn_pack.c +++ b/crypto/asn1/asn_pack.c @@ -50,7 +50,7 @@ ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_STRING **oct) /* Extract an ASN1 object from an ASN1_STRING */ -void *ASN1_item_unpack(ASN1_STRING *oct, const ASN1_ITEM *it) +void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it) { const unsigned char *p; void *ret; diff --git a/include/openssl/asn1.h b/include/openssl/asn1.h index 40526fbaa2..d37a3fc793 100644 --- a/include/openssl/asn1.h +++ b/include/openssl/asn1.h @@ -772,7 +772,7 @@ int ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, int ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num, unsigned char *data, int max_len); -void *ASN1_item_unpack(ASN1_STRING *oct, const ASN1_ITEM *it); +void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it); ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_OCTET_STRING **oct); -- 2.25.1