We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a7f5d commit a5ba203Copy full SHA for a5ba203
vm/src/stdlib/ssl.rs
@@ -345,6 +345,15 @@ impl PySslContext {
345
unreachable!()
346
}
347
348
+ #[pyproperty]
349
+ fn options(&self) -> libc::c_ulong {
350
+ self.ctx.read().options().bits()
351
+ }
352
+ #[pyproperty(setter)]
353
+ fn set_options(&self, opts: libc::c_ulong) {
354
+ self.builder()
355
+ .set_options(SslOptions::from_bits_truncate(opts));
356
357
#[pyproperty(setter)]
358
fn set_verify_mode(&self, cert: i32, vm: &VirtualMachine) -> PyResult<()> {
359
let mut ctx = self.builder();
0 commit comments