forked from pool/msmtp
d328d6e5d7
OBS-URL: https://build.opensuse.org/package/show/server:mail/msmtp?expand=0&rev=d7a3863437fef9e81a4a42c3fd1eeff3
23 lines
951 B
Diff
23 lines
951 B
Diff
Index: msmtp-1.4.20/src/tls.c
|
|
===================================================================
|
|
--- msmtp-1.4.20.orig/src/tls.c
|
|
+++ msmtp-1.4.20/src/tls.c
|
|
@@ -888,7 +888,7 @@ int tls_check_cert(tls_t *tls, const cha
|
|
char *buf;
|
|
int length;
|
|
/* needed to get the DNS subjectAltNames: */
|
|
- STACK *subj_alt_names;
|
|
+ STACK_OF(GENERAL_NAME) *subj_alt_names;
|
|
int subj_alt_names_count;
|
|
GENERAL_NAME *subj_alt_name;
|
|
/* did we find a name matching hostname? */
|
|
@@ -988,7 +988,7 @@ int tls_check_cert(tls_t *tls, const cha
|
|
/* Try the DNS subjectAltNames. */
|
|
match_found = 0;
|
|
if ((subj_alt_names =
|
|
- X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL)))
|
|
+ (STACK_OF(GENERAL_NAME)*)X509_get_ext_d2i(x509cert, NID_subject_alt_name, NULL, NULL)))
|
|
{
|
|
subj_alt_names_count = sk_GENERAL_NAME_num(subj_alt_names);
|
|
for (i = 0; i < subj_alt_names_count; i++)
|