From d7bdd80786556c3d6f55c7172121c60f3673e2ff Mon Sep 17 00:00:00 2001 From: tobhe Date: Wed, 24 Feb 2021 22:17:48 +0000 Subject: [PATCH] Use ASN1_STRING_get0_data() instead of the deprecated ASN1_STRING_data(). From Moritz Schmitt ok patrick@ --- sbin/iked/ca.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c index be710c7398e..36749457247 100644 --- a/sbin/iked/ca.c +++ b/sbin/iked/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.77 2021/02/07 00:56:06 tobhe Exp $ */ +/* $OpenBSD: ca.c,v 1.78 2021/02/24 22:17:48 tobhe Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -1660,7 +1660,7 @@ ca_x509_subjectaltname_do(X509 *cert, int mode, const char *logmsg, ASN1_STRING *cstr; char idstr[IKED_ID_SIZE]; int idx, ret, i, type, len; - uint8_t *data; + const uint8_t *data; ret = -1; idx = -1; @@ -1700,7 +1700,7 @@ ca_x509_subjectaltname_do(X509 *cert, int mode, const char *logmsg, continue; } len = ASN1_STRING_length(cstr); - data = ASN1_STRING_data(cstr); + data = ASN1_STRING_get0_data(cstr); if (mode == MODE_ALT_LOG) { struct iked_id sanid; -- 2.20.1