diff options
author | Linus Nordberg <linus@nordberg.se> | 2017-11-14 15:28:34 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2017-11-14 15:38:04 +0100 |
commit | 7d043b9c65026715a431741718d9d4cd795d8cd8 (patch) | |
tree | 3026cbcefb824e139b31f5991830c17e806da90e | |
parent | 3d954bfd2f658ac05a0f20a1241738ed3e3fdd28 (diff) |
ASN1_STRING_data() -> ASN1_STRING_get0_data().
From radsecproxy commit c206fc8.
-rw-r--r-- | radsecproxy/tlscommon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/radsecproxy/tlscommon.c b/radsecproxy/tlscommon.c index a31fa32..ed6c4bd 100644 --- a/radsecproxy/tlscommon.c +++ b/radsecproxy/tlscommon.c @@ -346,7 +346,7 @@ int subjectaltnameaddr(X509 *cert, int family, const struct in6_addr *addr) { if (gn->type != GEN_IPADD) continue; r = -1; - v = (char *)ASN1_STRING_data(gn->d.ia5); + v = (char *)ASN1_STRING_get0_data(gn->d.ia5); l = ASN1_STRING_length(gn->d.ia5); if (((family == AF_INET && l == sizeof(struct in_addr)) || (family == AF_INET6 && l == sizeof(struct in6_addr))) && !memcmp(v, &addr, l)) { @@ -382,7 +382,7 @@ int subjectaltnameregexp(X509 *cert, int type, const char *exact, const regex_t if (gn->type != type) continue; r = -1; - v = (char *)ASN1_STRING_data(gn->d.ia5); + v = (char *)ASN1_STRING_get0_data(gn->d.ia5); l = ASN1_STRING_length(gn->d.ia5); if (l <= 0) continue; @@ -426,7 +426,7 @@ int cnregexp(X509 *cert, const char *exact, const regex_t *regex) { break; e = X509_NAME_get_entry(nm, loc); t = X509_NAME_ENTRY_get_data(e); - v = (char *) ASN1_STRING_data(t); + v = (char *) ASN1_STRING_get0_data(t); l = ASN1_STRING_length(t); if (l < 0) continue; |