Fixed login timeout term handling/restoreState * NOTE breaking change to exit codes

Also some value => ref fixes for Conn receiver methods

Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
Russ Magee 2020-07-21 21:52:58 -07:00
parent 769df46fb1
commit 69a3fb5d08
8 changed files with 56 additions and 18 deletions

View file

@ -191,11 +191,11 @@ func (hc *Conn) Unlock() {
hc.m.Unlock()
}
func (hc Conn) KEX() KEXAlg {
func (hc *Conn) KEX() KEXAlg {
return hc.kex
}
func (hc Conn) GetStatus() CSOType {
func (hc *Conn) GetStatus() CSOType {
return *hc.closeStat
}
@ -209,7 +209,7 @@ func (hc *Conn) SetStatus(stat CSOType) {
//
// (Used for protocol-level negotiations after KEx such as
// cipher/HMAC algorithm options etc.)
func (hc Conn) ConnOpts() uint32 {
func (hc *Conn) ConnOpts() uint32 {
return hc.cipheropts
}