Skip to content

Commit

Permalink
Merge pull request #1981 from andrewbenton/feature/ssl11_outbound_fix
Browse files Browse the repository at this point in the history
Fix support for outbound SSL w/ SSL1.1.x
  • Loading branch information
s-ludwig authored Nov 20, 2017
2 parents 24465ee + 4b0466e commit e424042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tls/vibe/stream/openssl.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import deimos.openssl.bio;
import deimos.openssl.err;
import deimos.openssl.rand;
import deimos.openssl.ssl;
import deimos.openssl.stack;
import deimos.openssl.x509v3;

version (VibePragmaLib) {
Expand Down Expand Up @@ -96,11 +97,11 @@ version (VibeUseOpenSSL11) {

// # define sk_num OPENSSL_sk_num
extern(C) int OPENSSL_sk_num(const void *);
extern(C) int sk_num(const void* p) { return OPENSSL_sk_num(p); }
extern(C) int sk_num(const(_STACK)* p) { return OPENSSL_sk_num(p); }

// # define sk_value OPENSSL_sk_value
extern(C) void *OPENSSL_sk_value(const void *, int);
extern(C) void* sk_value(const void* p, int i) { return OPENSSL_sk_value(p, i); }
extern(C) void* sk_value(const(_STACK)* p, int i) { return OPENSSL_sk_value(p, i); }
}

/**
Expand Down

0 comments on commit e424042

Please sign in to comment.