@@ -1683,6 +1683,18 @@ impl SslContextBuilder {
1683
1683
unsafe { ffi:: SSL_CTX_set_grease_enabled ( self . as_ptr ( ) , enabled as c_int ) }
1684
1684
}
1685
1685
1686
+ /// Configures whether sockets on ctx should permute extensions.
1687
+ ///
1688
+ /// This corresponds to [`SSL_CTX_set_permute_extensions`].
1689
+ ///
1690
+ /// [`SSL_CTX_set_permute_extensions`]: https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#SSL_CTX_set_permute_extensions
1691
+ ///
1692
+ /// Requires BoringSSL.
1693
+ #[ cfg( boringssl) ]
1694
+ pub fn set_permute_extensions ( & mut self , enabled : bool ) {
1695
+ unsafe { ffi:: SSL_CTX_set_permute_extensions ( self . as_ptr ( ) , enabled as c_int ) }
1696
+ }
1697
+
1686
1698
/// Enable the processing of signed certificate timestamps (SCTs) for all connections that share the given SSL context.
1687
1699
#[ corresponds( SSL_CTX_enable_ct ) ]
1688
1700
#[ cfg( ossl111) ]
@@ -3403,6 +3415,18 @@ impl SslRef {
3403
3415
unsafe { ffi:: SSL_enable_signed_cert_timestamps ( self . as_ptr ( ) ) }
3404
3416
}
3405
3417
3418
+ /// Configures whether sockets on ssl should permute extensions.
3419
+ ///
3420
+ /// This corresponds to [`SSL_set_permute_extensions`].
3421
+ ///
3422
+ /// [`SSL_set_permute_extensions`]: https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#SSL_set_permute_extensions
3423
+ ///
3424
+ /// Requires BoringSSL.
3425
+ #[ cfg( boringssl) ]
3426
+ pub fn set_permute_extensions ( & mut self , enabled : bool ) {
3427
+ unsafe { ffi:: SSL_set_permute_extensions ( self . as_ptr ( ) , enabled as c_int ) }
3428
+ }
3429
+
3406
3430
/// Enable the processing of signed certificate timestamps (SCTs) for the given SSL connection.
3407
3431
#[ corresponds( SSL_enable_ct ) ]
3408
3432
#[ cfg( ossl111) ]
0 commit comments