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 authored Mar 15, 2018
2 parents dffeecc + 32370d9 commit b1e46af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/stream/openssl.d
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,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 b1e46af

Please sign in to comment.