Skip to content

Commit

Permalink
Merge pull request #2121 from marcioapm/fix_openssl_cert_peer_validation
Browse files Browse the repository at this point in the history
Fix openssl cert peer validation
  • Loading branch information
s-ludwig committed Mar 15, 2018
1 parent 0977d94 commit 1b52202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tls/vibe/stream/openssl.d
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ private bool verifyCertName(X509* cert, int field, in char[] value, bool allow_w
}

X509_NAME* name = X509_get_subject_name(cert);
int i;
int i = -1;
while ((i = X509_NAME_get_index_by_NID(name, cnid, i)) >= 0) {
X509_NAME_ENTRY* ne = X509_NAME_get_entry(name, i);
ASN1_STRING* str = X509_NAME_ENTRY_get_data(ne);
Expand Down

0 comments on commit 1b52202

Please sign in to comment.