mirror of https://github.com/adamdruppe/arsd.git
newer openssl api versioned
This commit is contained in:
parent
ea545eabe2
commit
4b9eb734d3
12
http2.d
12
http2.d
|
|
@ -1433,6 +1433,7 @@ version(use_openssl) {
|
|||
alias SslClientSocket = OpenSslSocket;
|
||||
|
||||
// macros in the original C
|
||||
version(newer_openssl) {
|
||||
void SSL_library_init() {
|
||||
OPENSSL_init_ssl(0, null);
|
||||
}
|
||||
|
|
@ -1450,14 +1451,17 @@ version(use_openssl) {
|
|||
SSL_METHOD* SSLv23_client_method() {
|
||||
return TLS_client_method();
|
||||
}
|
||||
}
|
||||
|
||||
extern(C) {
|
||||
//int SSL_library_init();
|
||||
version(newer_openssl) {} else {
|
||||
int SSL_library_init();
|
||||
void OpenSSL_add_all_ciphers();
|
||||
void OpenSSL_add_all_digests();
|
||||
void SSL_load_error_strings();
|
||||
}
|
||||
void OPENSSL_init_ssl(ulong, void*);
|
||||
//void OpenSSL_add_all_ciphers();
|
||||
//void OpenSSL_add_all_digests();
|
||||
void OPENSSL_init_crypto(ulong, void*);
|
||||
//void SSL_load_error_strings();
|
||||
|
||||
struct SSL {}
|
||||
struct SSL_CTX {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue