fix deserialization issue in ciphersuite_deserialize (#589)
This commit is contained in:
parent
221c089f2b
commit
6d82adf941
|
@ -120,7 +120,7 @@ where
|
|||
C: Ciphersuite,
|
||||
{
|
||||
if deserializer.is_human_readable() {
|
||||
let s: &str = serde::de::Deserialize::deserialize(deserializer)?;
|
||||
let s: String = serde::de::Deserialize::deserialize(deserializer)?;
|
||||
if s != C::ID {
|
||||
Err(serde::de::Error::custom("wrong ciphersuite"))
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue