Skip to content

Commit c2b124a

Browse files
authored
Be explicit that aliases are not part of X.509 certificates
1 parent 1abf4a5 commit c2b124a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openssl/src/x509/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,9 @@ impl X509Ref {
651651

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

0 commit comments

Comments
 (0)