more lease set work, certificate completed

This commit is contained in:
Hayden Parker
2016-02-14 22:28:20 -08:00
parent a64fe87dbe
commit e19d6fa0ab
5 changed files with 190 additions and 63 deletions

View File

@ -151,8 +151,8 @@ func TestReadCertificateWithInvalidLength(t *testing.T) {
bytes := []byte{0x00, 0x00}
cert, remainder, err := ReadCertificate(bytes)
cert_len := len(cert)
if cert_len != 0 {
t.Fatal("ReadCertificate() did not return 0 length certificate with invalid length:", cert_len)
if cert_len != 2 {
t.Fatal("ReadCertificate() did not populate certificate even though data invalid", cert_len)
}
remainder_len := len(remainder)
if remainder_len != 0 {