File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ mod _ssl {
119
119
#[ pyattr]
120
120
const PROTO_MAXIMUM_SUPPORTED : i32 = ProtoVersion :: MaxSupported as i32 ;
121
121
#[ pyattr]
122
- const OP_ALL : libc:: c_ulong = sys:: SSL_OP_ALL & !sys:: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS ;
122
+ const OP_ALL : libc:: c_ulong = ( sys:: SSL_OP_ALL & !sys:: SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS ) as u32 ;
123
123
#[ pyattr]
124
124
const HAS_TLS_UNIQUE : bool = true ;
125
125
#[ pyattr]
@@ -541,12 +541,12 @@ mod _ssl {
541
541
542
542
#[ pygetset]
543
543
fn options ( & self ) -> libc:: c_ulong {
544
- self . ctx . read ( ) . options ( ) . bits ( )
544
+ self . ctx . read ( ) . options ( ) . bits ( ) . try_into ( ) . unwrap ( )
545
545
}
546
546
#[ pygetset( setter) ]
547
547
fn set_options ( & self , opts : libc:: c_ulong ) {
548
548
self . builder ( )
549
- . set_options ( SslOptions :: from_bits_truncate ( opts) ) ;
549
+ . set_options ( SslOptions :: from_bits_truncate ( opts. into ( ) ) ) ;
550
550
}
551
551
#[ pygetset]
552
552
fn protocol ( & self ) -> i32 {
You can’t perform that action at this time.
0 commit comments