<<< Date Index >>>     <<< Thread Index >>>

[PATCH 2 of 2] Unbreak X.509 SubjAltName checks,



# HG changeset patch
# User Matthias Andree <matthias.andree@xxxxxx>
# Date 1281081481 -7200
# Branch HEAD
# Node ID b757803be9260e0152098ee2a2be856a416d085e
# Parent  a979f8e21063d62e686af37d73976290d07816f0
Unbreak X.509 SubjAltName checks,

regression in 6016:dc09812e63a3 that calls strlen on an SSL sk rather than
its string payload.

diff --git a/mutt_ssl.c b/mutt_ssl.c
--- a/mutt_ssl.c
+++ b/mutt_ssl.c
@@ -760,7 +760,7 @@
       subj_alt_name = sk_GENERAL_NAME_value(subj_alt_names, i);
       if (subj_alt_name->type == GEN_DNS)
       {
-       if (mutt_strlen(subj_alt_name) == subj_alt_name->d.ia5->length  &&
+       if (mutt_strlen(subj_alt_name->d.ia5->data) == 
subj_alt_name->d.ia5->length  &&
            (match_found = hostname_match(hostname_ascii,
                                          (char 
*)(subj_alt_name->d.ia5->data))))
        {