summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobhe <tobhe@openbsd.org>2021-02-24 22:17:48 +0000
committertobhe <tobhe@openbsd.org>2021-02-24 22:17:48 +0000
commitd7bdd80786556c3d6f55c7172121c60f3673e2ff (patch)
treecde5a6930c957f804dcecf55220588f19930406a
parentbuild resolvd (diff)
downloadwireguard-openbsd-d7bdd80786556c3d6f55c7172121c60f3673e2ff.tar.xz
wireguard-openbsd-d7bdd80786556c3d6f55c7172121c60f3673e2ff.zip
Use ASN1_STRING_get0_data() instead of the deprecated ASN1_STRING_data().
From Moritz Schmitt ok patrick@
-rw-r--r--sbin/iked/ca.c6
1 files 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 <reyk@openbsd.org>
@@ -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;