Skip to content

Commit 5cec50d

Browse files
committed
deimos.openssl.ssl: Update SSL_*_options functions
These macros seem to have been replaced by linked functions.
1 parent fda84d2 commit 5cec50d

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

deimos/openssl/ssl.d

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -661,24 +661,12 @@ enum SSL_MODE_SEND_SERVERHELLO_TIME = 0x00000040L;
661661
/* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value,
662662
* they cannot be used to clear bits. */
663663

664-
auto SSL_CTX_set_options()(SSL_CTX* ctx, c_long op) {
665-
return SSL_CTX_ctrl(ctx,SSL_CTRL_OPTIONS,op,null);
666-
}
667-
auto SSL_CTX_clear_options()(SSL_CTX* ctx, c_long op) {
668-
return SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_OPTIONS,op,null);
669-
}
670-
auto SSL_CTX_get_options()(SSL_CTX* ctx) {
671-
return SSL_CTX_ctrl(ctx,SSL_CTRL_OPTIONS,0,null);
672-
}
673-
auto SSL_set_options()(SSL* ssl, c_long op) {
674-
return SSL_ctrl(ssl,SSL_CTRL_OPTIONS,op,null);
675-
}
676-
auto SSL_clear_options()(SSL* ssl, c_long op) {
677-
return SSL_ctrl(ssl,SSL_CTRL_CLEAR_OPTIONS,op,null);
678-
}
679-
auto SSL_get_options()(SSL* ssl) {
680-
return SSL_ctrl(ssl,SSL_CTRL_OPTIONS,0,null);
681-
}
664+
c_ulong SSL_CTX_get_options(const SSL_CTX *ctx);
665+
c_ulong SSL_get_options(const SSL *s);
666+
c_ulong SSL_CTX_clear_options(SSL_CTX *ctx, c_ulong op);
667+
c_ulong SSL_clear_options(SSL *s, c_ulong op);
668+
c_ulong SSL_CTX_set_options(SSL_CTX *ctx, c_ulong op);
669+
c_ulong SSL_set_options(SSL *s, c_ulong op);
682670

683671
auto SSL_CTX_set_mode()(SSL_CTX* ctx, c_long op) {
684672
return SSL_CTX_ctrl(ctx,SSL_CTRL_MODE,op,null);

0 commit comments

Comments
 (0)