Skip to content

Commit 8fc5ba2

Browse files
committed
SCRAM-SHA-256 protocol support
1 parent 801835a commit 8fc5ba2

File tree

4 files changed

+434
-2
lines changed

4 files changed

+434
-2
lines changed

postgres-protocol/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ documentation = "https://docs.rs/postgres-protocol/0.2.2/postgres_protocol"
99
readme = "../README.md"
1010

1111
[dependencies]
12-
bytes = "0.4"
12+
base64 = "0.5"
1313
byteorder = "1.0"
14+
bytes = "0.4"
1415
fallible-iterator = "0.1"
16+
generic-array = "0.7"
17+
hmac = "0.1"
1518
md5 = "0.3"
1619
memchr = "1.0"
20+
rand = "0.3"
21+
sha2 = "0.5"
22+
stringprep = "0.1"

postgres-protocol/src/authentication.rs renamed to postgres-protocol/src/authentication/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Authentication protocol support.
22
use md5::Context;
33

4+
pub mod sasl;
5+
46
/// Hashes authentication information in a way suitable for use in response
57
/// to an `AuthenticationMd5Password` message.
68
///

0 commit comments

Comments
 (0)