File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ pub fn initialize_stream(params: &PostgresConnectParams, ssl: &SslMode)
117117 }
118118 }
119119
120- match SslStream :: try_new ( ctx, socket) {
120+ match SslStream :: new ( ctx, socket) {
121121 Ok ( stream) => Ok ( SslStream ( stream) ) ,
122122 Err ( err) => Err ( SslError ( err) )
123123 }
Original file line number Diff line number Diff line change @@ -628,15 +628,15 @@ fn test_cancel_query() {
628628
629629#[ test]
630630fn test_require_ssl_conn ( ) {
631- let ctx = SslContext :: new ( Sslv3 ) ;
631+ let ctx = SslContext :: new ( Sslv3 ) . unwrap ( ) ;
632632 let conn = or_fail ! ( PostgresConnection :: connect( "postgres://postgres@localhost" ,
633633 & RequireSsl ( ctx) ) ) ;
634634 or_fail ! ( conn. execute( "SELECT 1::VARCHAR" , [ ] ) ) ;
635635}
636636
637637#[ test]
638638fn test_prefer_ssl_conn ( ) {
639- let ctx = SslContext :: new ( Sslv3 ) ;
639+ let ctx = SslContext :: new ( Sslv3 ) . unwrap ( ) ;
640640 let conn = or_fail ! ( PostgresConnection :: connect( "postgres://postgres@localhost" ,
641641 & PreferSsl ( ctx) ) ) ;
642642 or_fail ! ( conn. execute( "SELECT 1::VARCHAR" , [ ] ) ) ;
You can’t perform that action at this time.
0 commit comments