Module pingora_core::utils
source · Expand description
This module contains various types that make it easier to work with bytes and X509 certificates.
Structs§
- A
BufRef
is a reference to a buffer of bytes. It removes the need for self-referential data structures. It is safe to use as long as the underlying buffer does not get mutated. - This type contains a list of one or more certificates and an associated private key. The leaf certificate should always be first.
- A
KVRef
contains a key name and value pair, stored as two BufRef types.
Constants§
- A KVRef which contains empty sub-slices.
Functions§
- Return the common name associated with the X509 certificate.
- Return the organization associated with the X509 certificate.
- Return the common name associated with the X509 certificate.
- Return the serial number associated with the X509 certificate as a hexadecimal value.