Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/test/runner/dtls.go')
-rw-r--r--ssl/test/runner/dtls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/test/runner/dtls.go b/ssl/test/runner/dtls.go
index b873ae6d..788bec86 100644
--- a/ssl/test/runner/dtls.go
+++ b/ssl/test/runner/dtls.go
@@ -335,7 +335,7 @@ func (c *Conn) dtlsSealRecord(typ recordType, data []byte) (b *block, err error)
// use the sequence number as the nonce.
explicitIVIsSeq = true
}
- } else if c.out.cipher != nil {
+ } else if _, ok := c.out.cipher.(nullCipher); !ok && c.out.cipher != nil {
panic("Unknown cipher")
}
b.resize(recordHeaderLen + explicitIVLen + len(data))