Upgrade to openssl 0.2
This commit is contained in:
parent
f35e3b6e3a
commit
7b8786c6a2
@ -24,7 +24,7 @@ default = ["uuid", "time"]
|
||||
[dependencies]
|
||||
phf = "0.1"
|
||||
phf_mac = "0.1"
|
||||
openssl = "0.1"
|
||||
openssl = "0.2"
|
||||
|
||||
[dependencies.uuid]
|
||||
optional = true
|
||||
|
@ -443,11 +443,11 @@ impl InnerConnection {
|
||||
}
|
||||
AuthenticationMD5Password { salt } => {
|
||||
let pass = try!(user.password.ok_or(ConnectError::MissingPassword));
|
||||
let hasher = Hasher::new(MD5);
|
||||
let mut hasher = Hasher::new(MD5);
|
||||
hasher.update(pass.as_bytes());
|
||||
hasher.update(user.user.as_bytes());
|
||||
let output = hasher.finalize()[].to_hex();
|
||||
let hasher = Hasher::new(MD5);
|
||||
let mut hasher = Hasher::new(MD5);
|
||||
hasher.update(output.as_bytes());
|
||||
hasher.update(&salt);
|
||||
let output = format!("md5{}", hasher.finalize()[].to_hex());
|
||||
|
Loading…
Reference in New Issue
Block a user