Don't redundantly(and falsely) count the remainder when reading KeysAndCert

This commit is contained in:
idk
2021-04-24 16:25:21 -04:00
parent 648c05b15f
commit 6de4dde1f2
3 changed files with 18 additions and 14 deletions

View File

@ -357,4 +357,11 @@ func (lease_set LeaseSet) OldestExpiration() (earliest Date, err error) {
return
}*/
//func ReadKeysAndCert(data []byte) (keys_and_cert KeysAndCert, remainder []byte, err error) {}
func ReadLeaseSet(data []byte) (lease_set LeaseSet, remainder []byte, err error) {
destination, remainder, err := ReadDestination(data)
if err != nil {
return
}
lease_set.Destination = destination
return
}