Skip to content

Commit

Permalink
Remove OpenSSL code dependency for Botan configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Cimon authored and s-ludwig committed Sep 13, 2015
1 parent 9f599f2 commit 04c34f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/vibe/stream/openssl.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions source/vibe/stream/tls.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.");
Expand Down

0 comments on commit 04c34f1

Please sign in to comment.