summaryrefslogtreecommitdiff
path: root/lib/libcrypto/pkcs7/pk7_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/pkcs7/pk7_attr.c')
-rw-r--r--lib/libcrypto/pkcs7/pk7_attr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/pkcs7/pk7_attr.c b/lib/libcrypto/pkcs7/pk7_attr.c
index 039141027a6..735c8800e10 100644
--- a/lib/libcrypto/pkcs7/pk7_attr.c
+++ b/lib/libcrypto/pkcs7/pk7_attr.c
@@ -96,7 +96,8 @@ int PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si, STACK_OF(X509_ALGOR) *cap)
STACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si)
{
ASN1_TYPE *cap;
- unsigned char *p;
+ const unsigned char *p;
+
cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities);
if (!cap || (cap->type != V_ASN1_SEQUENCE))
return NULL;