In openconnect client the BYE packet indicates an explicit
user disconnect by sending 0x0b as payload. In anyconnect clients it
may indicate an intention to reconnect (e.g., because network was changed).
We introduce a check for 0x0b to identify the user disconnect and
add debugging output for other disconnect reasons.
Relates: #281
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
This eliminates race-conditions related to signal handling and potential
main/sec-mod desynchronizations related to cert/key pairs.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
That is, enhance the security module to accept and understand
more elaborate signing commands.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>