diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 22:05:52 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 22:05:52 +0200 |
commit | e6e9663d40f7aab9e1982dddcaa11386551ad182 (patch) | |
tree | 39c2a34aa78d4723e8308d270e872f61da3818ca /src/tls_remote.c | |
parent | 20b85c03e751b4876fa3c92040464e483172b746 (diff) |
fix issues preventing compilationjannis
Diffstat (limited to 'src/tls_remote.c')
-rw-r--r-- | src/tls_remote.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tls_remote.c b/src/tls_remote.c index fd72033..dde4dff 100644 --- a/src/tls_remote.c +++ b/src/tls_remote.c @@ -56,7 +56,6 @@ int tls_conn(SSL *ssl, int smtpfd) int tls_checkpeer(SSL *ssl, X509 *cert, const stralloc host, const int flag, const int verify) { - STACK_OF(GENERAL_NAME) * extensions; const GENERAL_NAME *ext; char buf[SSL_NAME_LEN]; char *dnsname = 0; @@ -74,7 +73,7 @@ int tls_checkpeer(SSL *ssl, X509 *cert, const stralloc host, const int flag, con /* X.509 CA DN/SAN name validation against DNS */ if (host.len && fflag > 4) { - extensions = (GENERAL_NAME *)X509_get_ext_d2i(cert, NID_subject_alt_name, 0, 0); + GENERAL_NAMES *extensions = X509_get_ext_d2i(cert, NID_subject_alt_name, 0, 0); num = sk_GENERAL_NAME_num(extensions); /* num = 0, if no SAN extensions */ for (i = 0; i < num; ++i) { |