Skip to content

Commit

Permalink
Fix an ABI bug on 32-bit systems causing a crash on incoming TLS conn…
Browse files Browse the repository at this point in the history
…ections.
  • Loading branch information
s-ludwig committed Feb 8, 2019
1 parent 3038f50 commit fa84078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tls/vibe/stream/openssl.d
Expand Up @@ -98,11 +98,11 @@ static if (OPENSSL_VERSION.startsWith("1.1")) {
// #define SSL_get_ex_new_index(l, p, newf, dupf, freef) \
// CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef)

extern(C) int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,
extern(C) int CRYPTO_get_ex_new_index(int class_index, c_long argl, void *argp,
CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,
CRYPTO_EX_free *free_func);

int SSL_get_ex_new_index(long argl, void *argp,
int SSL_get_ex_new_index(c_long argl, void *argp,
CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,
CRYPTO_EX_free *free_func) {
// # define CRYPTO_EX_INDEX_SSL 0
Expand Down

0 comments on commit fa84078

Please sign in to comment.