@@ -19,9 +19,13 @@ use std::rt::io::net::ip::SocketAddr;
1919use std:: rt:: io:: net:: tcp:: TcpStream ;
2020
2121use message:: { BackendMessage ,
22+ AuthenticationOk ,
23+ AuthenticationKerberosV5 ,
2224 AuthenticationCleartextPassword ,
2325 AuthenticationMD5Password ,
24- AuthenticationOk ,
26+ AuthenticationSCMCredential ,
27+ AuthenticationGSS ,
28+ AuthenticationSSPI ,
2529 BackendKeyData ,
2630 BindComplete ,
2731 CommandComplete ,
@@ -180,7 +184,8 @@ impl PostgresConnection {
180184 let conn = PostgresConnection {
181185 stream : Cell :: new ( stream) ,
182186 next_stmt_id : Cell :: new ( 0 ) ,
183- notice_handler : Cell :: new ( ~DefaultNoticeHandler as ~PostgresNoticeHandler )
187+ notice_handler : Cell :: new ( ~DefaultNoticeHandler
188+ as ~PostgresNoticeHandler )
184189 } ;
185190
186191 args. push ( ( ~"client_encoding", ~"UTF8 ") ) ;
@@ -299,6 +304,10 @@ impl PostgresConnection {
299304 password : output. as_slice ( )
300305 } ) ;
301306 }
307+ AuthenticationKerberosV5
308+ | AuthenticationSCMCredential
309+ | AuthenticationGSS
310+ | AuthenticationSSPI => return Some ( UnsupportedAuthentication ) ,
302311 _ => fail ! ( )
303312 }
304313
0 commit comments