mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
use Cancellable::NONE for re-handshake action
This commit is contained in:
parent
cca3e4daa6
commit
efc9b62786
1 changed files with 2 additions and 5 deletions
|
|
@ -71,14 +71,11 @@ impl Connection {
|
|||
}
|
||||
}
|
||||
|
||||
/// Request force handshake for `Self`
|
||||
/// Force non-cancellable handshake request for `Self`
|
||||
/// * useful for certificate change in runtime
|
||||
/// * support guest and user sessions
|
||||
pub fn rehandshake(&self) -> Result<(), Error> {
|
||||
match self
|
||||
.tls_client_connection()?
|
||||
.handshake(self.cancellable.as_ref())
|
||||
{
|
||||
match self.tls_client_connection()?.handshake(Cancellable::NONE) {
|
||||
Ok(()) => Ok(()),
|
||||
Err(e) => Err(Error::Rehandshake(e)),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue