File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ base64 = "0.13"
13
13
byteorder = " 1.0"
14
14
bytes = " 1.0"
15
15
fallible-iterator = " 0.2"
16
- hmac = " 0.11 "
17
- md-5 = " 0.9 "
16
+ hmac = " 0.12 "
17
+ md-5 = " 0.10 "
18
18
memchr = " 2.0"
19
19
rand = " 0.8"
20
- sha2 = " 0.9 "
20
+ sha2 = " 0.10 "
21
21
stringprep = " 0.1"
Original file line number Diff line number Diff line change 1
1
//! SASL-based authentication support.
2
2
3
- use hmac:: { Hmac , Mac , NewMac } ;
3
+ use hmac:: { Hmac , Mac } ;
4
4
use rand:: { self , Rng } ;
5
5
use sha2:: digest:: FixedOutput ;
6
6
use sha2:: { Digest , Sha256 } ;
@@ -275,7 +275,7 @@ impl ScramSha256 {
275
275
let mut hmac = Hmac :: < Sha256 > :: new_from_slice ( & server_key)
276
276
. expect ( "HMAC is able to accept all key sizes" ) ;
277
277
hmac. update ( auth_message. as_bytes ( ) ) ;
278
- hmac. verify ( & verifier)
278
+ hmac. verify_slice ( & verifier)
279
279
. map_err ( |_| io:: Error :: new ( io:: ErrorKind :: InvalidInput , "SCRAM verification error" ) )
280
280
}
281
281
}
Original file line number Diff line number Diff line change 7
7
//! end up in logs pg_stat displays, etc.
8
8
9
9
use crate :: authentication:: sasl;
10
- use hmac:: { Hmac , Mac , NewMac } ;
10
+ use hmac:: { Hmac , Mac } ;
11
11
use md5:: Md5 ;
12
12
use rand:: RngCore ;
13
13
use sha2:: digest:: FixedOutput ;
Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ impl<'a> UrlParser<'a> {
780
780
}
781
781
782
782
fn take_all ( & mut self ) -> & ' a str {
783
- mem:: replace ( & mut self . s , "" )
783
+ mem:: take ( & mut self . s )
784
784
}
785
785
786
786
fn eat_byte ( & mut self ) {
You can’t perform that action at this time.
0 commit comments