Skip to content

Commit

Permalink
Merge pull request #1921 from MartinNowak/openssl_1_1_cert
Browse files Browse the repository at this point in the history
fix direct access of X509_STORE field with VibeUseOpenSSL11
merged-on-behalf-of: Sönke Ludwig <[email protected]>
  • Loading branch information
dlang-bot authored Sep 11, 2017
2 parents 874a3aa + bfffaa1 commit 3656c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tls/vibe/stream/openssl.d
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,8 @@ final class OpenSSLContext : TLSContext {
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY:
case X509_V_ERR_CERT_UNTRUSTED:
assert(ctx.current_cert !is null);
X509_NAME_oneline(X509_get_issuer_name(ctx.current_cert), buf.ptr, buf.length);
assert(err_cert !is null);
X509_NAME_oneline(X509_get_issuer_name(err_cert), buf.ptr, buf.length);
buf[$-1] = 0;
logDebug("SSL cert not trusted or unknown issuer: %s", buf.ptr.to!string);
if (!(vdata.validationMode & TLSPeerValidationMode.checkTrust)) {
Expand Down

0 comments on commit 3656c5d

Please sign in to comment.