summaryrefslogtreecommitdiff
path: root/package/mutt/patches/patch-mutt_ssl_c
blob: 160dc668ce7b46da196253acb24782e438502b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- mutt-1.5.20.orig/mutt_ssl.c	2009-06-10 07:08:29.000000000 +0200
+++ mutt-1.5.20/mutt_ssl.c	2010-06-02 19:53:33.141613592 +0200
@@ -652,7 +652,7 @@ static int check_host (X509 *x509cert, c
   char *buf = NULL;
   int bufsize;
   /* 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? */
@@ -735,7 +735,7 @@ static int ssl_cache_trusted_cert (X509 
 {
   dprint (1, (debugfile, "trusted: %s\n", c->name));
   if (!SslSessionCerts)
-    SslSessionCerts = sk_new_null();
+    SslSessionCerts = sk_X509_new_null();
   return (sk_X509_push (SslSessionCerts, X509_dup(c)));
 }