Create the correct PskIdentity type on query (#138)

This commit is contained in:
Ulf Lilleengen 2022-10-26 11:13:03 +02:00 committed by GitHub
parent bc51d800ff
commit 7b4696b193
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ impl<F: Filter> Filter for SslFilter<F> {
} }
} else if id == any::TypeId::of::<PskIdentity>() { } else if id == any::TypeId::of::<PskIdentity>() {
if let Some(psk_id) = self.inner.borrow().ssl().psk_identity() { if let Some(psk_id) = self.inner.borrow().ssl().psk_identity() {
Some(Box::new(psk_id.to_vec())) Some(Box::new(PskIdentity(psk_id.to_vec())))
} else { } else {
None None
} }