Ticket #25623: mutt-devel.patch

File mutt-devel.patch, 1.2 KB (added by dmitry@…, 14 years ago)
  • Portfile

    diff --git a/Portfile b/Portfile
    index a3fb371..97b96b9 100644
    a b variant imap description {IMAP support} { 
    5757    configure.args-append   --enable-imap
    5858}
    5959variant ssl description {Secure Sockets Layer support} {
     60    patchfiles-append       patch-1.5.20.mutt_ssl.diff
    6061    configure.args-append   --with-ssl=${prefix}
    6162    depends_lib-append      port:openssl
    6263}
  • new file files/patch-1.5.20.mutt_ssl.diff

    diff --git a/files/patch-1.5.20.mutt_ssl.diff b/files/patch-1.5.20.mutt_ssl.diff
    new file mode 100644
    index 0000000..3299605
    - +  
     1diff --git a/PATCHES b/PATCHES
     2new file mode 100644
     3index 0000000..12d07af
     4--- /dev/null
     5+++ b/PATCHES
     6@@ -0,0 +1 @@
     7+patch-1.5.20.mutt_ssl.diff
     8diff --git a/mutt_ssl.c b/mutt_ssl.c
     9index cb1b0cc..7490200 100644
     10--- a/mutt_ssl.c
     11+++ b/mutt_ssl.c
     12@@ -652,7 +652,7 @@ static int check_host (X509 *x509cert, const char *hostname, char *err, size_t e
     13   char *buf = NULL;
     14   int bufsize;
     15   /* needed to get the DNS subjectAltNames: */
     16-  STACK *subj_alt_names;
     17+  STACK_OF(GENERAL_NAME) *subj_alt_names;
     18   int subj_alt_names_count;
     19   GENERAL_NAME *subj_alt_name;
     20   /* did we find a name matching hostname? */