SHA256
1
0
forked from pool/msmtp
msmtp/msmtp-fix-newopenssl.patch
OBS User autobuild 569ee06b31 Accepting request 38311 from server:mail
Copy from server:mail/msmtp based on submit request 38311 from user coolo

OBS-URL: https://build.opensuse.org/request/show/38311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/msmtp?expand=0&rev=11
2010-04-20 23:59:42 +00:00

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++)