set fail-fast and get the rest of these tests

This commit is contained in:
idk
2021-07-28 08:09:30 -04:00
parent 3f4d02dc3e
commit 27547611ed
5 changed files with 24 additions and 14 deletions

View File

@ -156,7 +156,8 @@ func (certificate Certificate) Data() (data []byte, err error) {
// Read a Certificate from a slice of bytes, returning any extra data on the end of the slice
// and any errors if a valid Certificate could not be read.
//
func ReadCertificate(data []byte) (certificate Certificate, remainder []byte, err error) {
func ReadCertificate(data []byte) (certificate *Certificate, remainder []byte, err error) {
certificate = &Certificate{}
certificate.CertType, err = NewInteger(data[0:1])
certificate.CertLen = &Integer{}
cert_len := len(data)