/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
mod builtins; mod cert_storage; mod tls;
use log; use nserror::{nsresult, NS_ERROR_INVALID_ARG, NS_ERROR_UNEXPECTED, NS_OK}; use std::fmt::Display; use std::io::Write; use tls::{CertificateMessage, CompressedCertEntry, UncompressedCertEntry};
fn pass_1_mapping(mut entry: UncompressedCertEntry) -> Result<CompressedCertEntry, AbridgedError> { let id_or_cert = &entry.data; let Ok(id) = TryInto::<&[u8; 3]>::try_into(id_or_cert.as_slice()) else { // Avoid doing a lookup when we know its not an identifier.
log::trace!("Passing through directly {:#02X?}", entry.data); return Ok(entry);
};
if !tail.is_empty() { // Trailing data on a certificate message is forbidden by Abridged Certs spec return Err(AbridgedError::ParsingInvalidCertificateMessage);
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.