Skip to content

Commit

Permalink
Be explicit that aliases are not part of X.509 certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Feb 17, 2024
1 parent 1abf4a5 commit c2b124a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,9 @@ impl X509Ref {

/// Returns this certificate's "alias". This field is populated by
/// OpenSSL in some situations -- specifically OpenSSL will store a
/// PKCS#12 `friendlyName` in this field.
/// PKCS#12 `friendlyName` in this field. This is not a part of the X.509
/// certificate itself, OpenSSL merely attaches it to this structure in
/// memory.
#[corresponds(X509_alias_get0)]
pub fn alias(&self) -> Option<&[u8]> {
unsafe {
Expand Down

0 comments on commit c2b124a

Please sign in to comment.