From 44b9cded77ac2dc41791540bf7eeca6c3ff5efdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 24 Oct 2017 18:46:57 +0200 Subject: [PATCH] Replace assertion from BotanTLSStream with a warning message. Fixes #1918. See #1958. --- tls/vibe/stream/botan.d | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tls/vibe/stream/botan.d b/tls/vibe/stream/botan.d index 3fcd41bb7c..d43d58ca6f 100644 --- a/tls/vibe/stream/botan.d +++ b/tls/vibe/stream/botan.d @@ -1,4 +1,4 @@ -/** +/** Botan TLS implementation Copyright: © 2015 RejectedSoftware e.K., GlobecSys Inc Authors: Sönke Ludwig, Etienne Cimon @@ -67,7 +67,12 @@ class BotanTLSStream : TLSStream/*, Buffered*/ @property string alpn() const @trusted { return m_tlsChannel.underlyingChannel().applicationProtocol(); } - @property TLSCertificateInformation peerCertificate() { assert(false, "Incompatible interface method requested"); } + @property TLSCertificateInformation peerCertificate() + { + if (!!m_peer_cert) + logWarn("BotanTLSStream.peerCertificate is not implemented and does not return the actual certificate information."); + return TLSCertificateInformation.init; + } // Constructs a new TLS Client Stream and connects with the specified handlers this(InterfaceProxy!Stream underlying, BotanTLSContext ctx,