Add comments and LICENSE
This commit is contained in:
@@ -79,7 +79,6 @@ impl<'a> CertificateEntryRef<'a> {
|
||||
|
||||
let entry = CertificateEntryRef::X509(cert.as_slice());
|
||||
|
||||
// Validate extensions
|
||||
CertificateExtension::parse_vector::<2>(buf)?;
|
||||
|
||||
Ok(entry)
|
||||
@@ -103,14 +102,12 @@ impl<'a> CertificateEntryRef<'a> {
|
||||
match *self {
|
||||
CertificateEntryRef::RawPublicKey(_key) => {
|
||||
todo!("ASN1_subjectPublicKeyInfo encoding?");
|
||||
// buf.with_u24_length(|buf| buf.extend_from_slice(key))?;
|
||||
}
|
||||
CertificateEntryRef::X509(cert) => {
|
||||
buf.with_u24_length(|buf| buf.extend_from_slice(cert))?;
|
||||
}
|
||||
}
|
||||
|
||||
// Zero extensions for now
|
||||
buf.push_u16(0)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user