-
Notifications
You must be signed in to change notification settings - Fork 41
Fix and add various functions related to http/2 #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
etcimon
wants to merge
1
commit into
D-Programming-Deimos:master
Choose a base branch
from
etcimon:http2fix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -559,6 +559,12 @@ version(OPENSSL_NO_SRP) {} else { | |
|
||
} // OPENSSL_NO_SSL_INTERN | ||
|
||
alias ALPNCallback = int function(SSL *ssl, const(char) **output, ubyte* outlen, const(char) *input, uint inlen, void *arg); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this not be called |
||
void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx, ALPNCallback cb, void *arg); | ||
int SSL_set_alpn_protos(SSL *ssl, const char *data, uint len); | ||
int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const char* protos, uint protos_len); | ||
void SSL_get0_alpn_selected(const SSL *ssl, const(char)** data, uint *len); | ||
|
||
enum SSL_OP_MICROSOFT_SESS_ID_BUG = 0x00000001; | ||
enum SSL_OP_NETSCAPE_CHALLENGE_BUG = 0x00000002; | ||
/* Allow initial connection to servers that don't support RI */ | ||
|
@@ -619,8 +625,10 @@ enum SSL_OP_TLS_ROLLBACK_BUG = 0x00800000; | |
enum SSL_OP_NO_SSLv2 = 0x01000000; | ||
enum SSL_OP_NO_SSLv3 = 0x02000000; | ||
enum SSL_OP_NO_TLSv1 = 0x04000000; | ||
enum SSL_OP_NO_TLSv1_2 = 0x08000000L; | ||
enum SSL_OP_NO_TLSv1_1 = 0x10000000L; | ||
enum SSL_OP_NO_TLSv1_2 = 0x08000000L; | ||
enum SSL_OP_NO_TLSv1_3 = 0x20000000L; | ||
enum SSL_OP_ALLOW_NO_DHE_KEX = 0x00000400L; | ||
|
||
/* These next two were never actually used for anything since SSLeay | ||
* zap so we have some more flags. | ||
|
@@ -1778,6 +1786,9 @@ enum SSL_CTRL_CLEAR_MODE = 78; | |
enum SSL_CTRL_GET_EXTRA_CHAIN_CERTS = 82; | ||
enum SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS = 83; | ||
|
||
enum SSL_CTRL_SET_GROUPS_LIST = 92; | ||
enum SSL_CTRL_SET_SIGALGS_LIST = 98; | ||
|
||
auto DTLSv1_get_timeout()(SSL* ssl, void* arg) { | ||
pragma(inline, true); return SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0,arg); | ||
} | ||
|
@@ -1816,7 +1827,12 @@ auto SSL_CTX_set_tmp_dh()(SSL_CTX* ctx, void* dh) { | |
auto SSL_CTX_set_tmp_ecdh()(SSL_CTX* ctx, void* ecdh) { | ||
pragma(inline, true); return SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,ecdh); | ||
} | ||
|
||
auto SSL_CTX_set1_groups_list()(SSL_CTX* ctx, const(char)* groups) { | ||
return SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,cast(void*)groups); | ||
} | ||
auto SSL_CTX_set1_sigalgs_list()(SSL_CTX* ctx, const(char)* sigalgs) { | ||
return SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,cast(void*)sigalgs); | ||
} | ||
auto SSL_need_tmp_RSA()(SSL* ssl) { | ||
pragma(inline, true); return SSL_ctrl(ssl,SSL_CTRL_NEED_TMP_RSA,0,null); | ||
} | ||
|
@@ -2105,6 +2121,7 @@ void SSL_free(SSL* ssl); | |
int SSL_accept(SSL* ssl); | ||
int SSL_connect(SSL* ssl); | ||
int SSL_read(SSL* ssl,void* buf,int num); | ||
int SSL_read_ex(SSL* ssl,void* buf, size_t num, size_t *readbytes); | ||
int SSL_peek(SSL* ssl,void* buf,int num); | ||
int SSL_write(SSL* ssl,const(void)* buf,int num); | ||
c_long SSL_ctrl(SSL* ssl,int cmd, c_long larg, void* parg); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why switch this? Isn't c_ulong correct?