cosmetic
This commit is contained in:
1 parent
2f35ad1d42
commit
bbacaa42b8
1 file changed
+2
-4
+2
-4
@@ -265,8 +265,7 @@ func (res *ProtocolIntroResults) doIntroV2(params ProtocolIntroParams, pubKey, p
|
|||||||
return ErrExpectedCrypto
|
return ErrExpectedCrypto
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setupNoCrypto(gob.NewEncoder(params.Conn),
|
res.setupNoCrypto(gob.NewEncoder(params.Conn), gob.NewDecoder(params.Conn))
|
||||||
gob.NewDecoder(params.Conn))
|
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
if pubKey == nil {
|
if pubKey == nil {
|
||||||
@@ -278,8 +277,7 @@ func (res *ProtocolIntroResults) doIntroV2(params ProtocolIntroParams, pubKey, p
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setupCrypto(params, gob.NewEncoder(params.Conn),
|
res.setupCrypto(params, gob.NewEncoder(params.Conn), gob.NewDecoder(params.Conn), rbuf, privKey)
|
||||||
gob.NewDecoder(params.Conn), rbuf, privKey)
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("Bad encryption flag %d", rbuf[0])
|
return fmt.Errorf("Bad encryption flag %d", rbuf[0])
|
||||||
|
|||||||
Reference in new issue
Block a user