pub struct IssuerAndSerial {
pub issuer_der: Vec<u8>,
pub serial: Vec<u8>,
}Expand description
Identifier-and-serial-number pair (RFC 5280 §A.1) that points at
one of the recipient’s certificates. Bytes are the raw DER of the
Name for issuer (so the matcher can byte-compare against the
recipient’s own certificate’s issuer directly), and the raw
big-endian two’s-complement INTEGER body for serial_number.
Fields§
§issuer_der: Vec<u8>DER-encoded issuer Name (a SEQUENCE OF RelativeDistinguishedName).
serial: Vec<u8>Raw INTEGER body bytes of serialNumber. RFC 5280 §4.1.2.2
allows up to 20 octets; we keep the full big-endian body so a
byte-for-byte match against the user’s cert serial is exact.
Trait Implementations§
Source§impl Clone for IssuerAndSerial
impl Clone for IssuerAndSerial
Source§fn clone(&self) -> IssuerAndSerial
fn clone(&self) -> IssuerAndSerial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IssuerAndSerial
impl RefUnwindSafe for IssuerAndSerial
impl Send for IssuerAndSerial
impl Sync for IssuerAndSerial
impl Unpin for IssuerAndSerial
impl UnsafeUnpin for IssuerAndSerial
impl UnwindSafe for IssuerAndSerial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more