@@ -661,24 +661,12 @@ enum SSL_MODE_SEND_SERVERHELLO_TIME = 0x00000040L;
661
661
/* Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value,
662
662
* they cannot be used to clear bits. */
663
663
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);
682
670
683
671
auto SSL_CTX_set_mode ()(SSL_CTX * ctx, c_long op) {
684
672
return SSL_CTX_ctrl (ctx,SSL_CTRL_MODE ,op,null );
0 commit comments