|
@@ -20,6 +20,7 @@ type MemoryAccount struct {
|
|
|
Security protocol.SecurityType
|
|
Security protocol.SecurityType
|
|
|
|
|
|
|
|
AuthenticatedLengthExperiment bool
|
|
AuthenticatedLengthExperiment bool
|
|
|
|
|
+ NoTerminationSignal bool
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// AnyValidID returns an ID that is either the main ID or one of the alternative IDs if any.
|
|
// AnyValidID returns an ID that is either the main ID or one of the alternative IDs if any.
|
|
@@ -47,14 +48,18 @@ func (a *Account) AsAccount() (protocol.Account, error) {
|
|
|
return nil, newError("failed to parse ID").Base(err).AtError()
|
|
return nil, newError("failed to parse ID").Base(err).AtError()
|
|
|
}
|
|
}
|
|
|
protoID := protocol.NewID(id)
|
|
protoID := protocol.NewID(id)
|
|
|
- var AuthenticatedLength bool
|
|
|
|
|
|
|
+ var AuthenticatedLength, NoTerminationSignal bool
|
|
|
if strings.Contains(a.TestsEnabled, "AuthenticatedLength") {
|
|
if strings.Contains(a.TestsEnabled, "AuthenticatedLength") {
|
|
|
AuthenticatedLength = true
|
|
AuthenticatedLength = true
|
|
|
}
|
|
}
|
|
|
|
|
+ if strings.Contains(a.TestsEnabled, "NoTerminationSignal") {
|
|
|
|
|
+ NoTerminationSignal = true
|
|
|
|
|
+ }
|
|
|
return &MemoryAccount{
|
|
return &MemoryAccount{
|
|
|
ID: protoID,
|
|
ID: protoID,
|
|
|
AlterIDs: protocol.NewAlterIDs(protoID, uint16(a.AlterId)),
|
|
AlterIDs: protocol.NewAlterIDs(protoID, uint16(a.AlterId)),
|
|
|
Security: a.SecuritySettings.GetSecurityType(),
|
|
Security: a.SecuritySettings.GetSecurityType(),
|
|
|
AuthenticatedLengthExperiment: AuthenticatedLength,
|
|
AuthenticatedLengthExperiment: AuthenticatedLength,
|
|
|
|
|
+ NoTerminationSignal: NoTerminationSignal,
|
|
|
}, nil
|
|
}, nil
|
|
|
}
|
|
}
|