diff --git a/Portfile b/Portfile
index a3fb371..97b96b9 100644
a
|
b
|
variant imap description {IMAP support} { |
57 | 57 | configure.args-append --enable-imap |
58 | 58 | } |
59 | 59 | variant ssl description {Secure Sockets Layer support} { |
| 60 | patchfiles-append patch-1.5.20.mutt_ssl.diff |
60 | 61 | configure.args-append --with-ssl=${prefix} |
61 | 62 | depends_lib-append port:openssl |
62 | 63 | } |
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
-
|
+
|
|
| 1 | diff --git a/PATCHES b/PATCHES |
| 2 | new file mode 100644 |
| 3 | index 0000000..12d07af |
| 4 | --- /dev/null |
| 5 | +++ b/PATCHES |
| 6 | @@ -0,0 +1 @@ |
| 7 | +patch-1.5.20.mutt_ssl.diff |
| 8 | diff --git a/mutt_ssl.c b/mutt_ssl.c |
| 9 | index 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? */ |