|
@@ -40,6 +40,7 @@ var messageTypes = []interface{}{
|
|
|
&userAuthRequestMsg{},
|
|
&userAuthRequestMsg{},
|
|
|
&channelOpenMsg{},
|
|
&channelOpenMsg{},
|
|
|
&channelOpenConfirmMsg{},
|
|
&channelOpenConfirmMsg{},
|
|
|
|
|
+ &channelOpenFailureMsg{},
|
|
|
&channelRequestMsg{},
|
|
&channelRequestMsg{},
|
|
|
&channelRequestSuccessMsg{},
|
|
&channelRequestSuccessMsg{},
|
|
|
}
|
|
}
|
|
@@ -124,6 +125,13 @@ func (*kexDHInitMsg) Generate(rand *rand.Rand, size int) reflect.Value {
|
|
|
return reflect.ValueOf(dhi)
|
|
return reflect.ValueOf(dhi)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// TODO(dfc) maybe this can be removed in the future if testing/quick can handle
|
|
|
|
|
+// derived basic types.
|
|
|
|
|
+func (RejectionReason) Generate(rand *rand.Rand, size int) reflect.Value {
|
|
|
|
|
+ m := RejectionReason(Prohibited)
|
|
|
|
|
+ return reflect.ValueOf(m)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
var (
|
|
var (
|
|
|
_kexInitMsg = new(kexInitMsg).Generate(rand.New(rand.NewSource(0)), 10).Elem().Interface()
|
|
_kexInitMsg = new(kexInitMsg).Generate(rand.New(rand.NewSource(0)), 10).Elem().Interface()
|
|
|
_kexDHInitMsg = new(kexDHInitMsg).Generate(rand.New(rand.NewSource(0)), 10).Elem().Interface()
|
|
_kexDHInitMsg = new(kexDHInitMsg).Generate(rand.New(rand.NewSource(0)), 10).Elem().Interface()
|