From 04c34f129a0e9e0da7af789e209194db396d4909 Mon Sep 17 00:00:00 2001 From: Etienne Cimon Date: Sun, 13 Sep 2015 14:13:36 +0200 Subject: [PATCH] Remove OpenSSL code dependency for Botan configurations. --- source/vibe/stream/openssl.d | 2 +- source/vibe/stream/tls.d | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/vibe/stream/openssl.d b/source/vibe/stream/openssl.d index a0030984af..77a74101c3 100644 --- a/source/vibe/stream/openssl.d +++ b/source/vibe/stream/openssl.d @@ -6,7 +6,7 @@ Authors: Sönke Ludwig */ module vibe.stream.openssl; - +version(Have_openssl): import vibe.core.log; import vibe.core.net; import vibe.core.stream; diff --git a/source/vibe/stream/tls.d b/source/vibe/stream/tls.d index 7b90b13723..7f2d16f45c 100644 --- a/source/vibe/stream/tls.d +++ b/source/vibe/stream/tls.d @@ -29,7 +29,7 @@ import core.sync.mutex; import core.thread; version (VibeNoSSL) {} -else version = OpenSSL; +else version(Have_openssl) version = OpenSSL; /// A simple TLS client @@ -94,7 +94,7 @@ TLSContext createTLSContext(TLSContextKind kind, TLSVersion ver = TLSVersion.any import vibe.stream.botan; return new BotanTLSContext(kind); } - if (!gs_tlsContextFactory) + if (!gs_sslContextFactory) setTLSContextFactory(&createBotanContext); } assert(gs_sslContextFactory !is null, "No TLS context factory registered.");