Skip to content

Commit

Permalink
Document the horror show
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Mar 24, 2023
1 parent 78aa9aa commit a752805
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,9 @@ impl X509Extension {
/// Some extension types, such as `subjectAlternativeName`, require an `X509v3Context` to be
/// provided.
///
/// DO NOT CALL THIS WITH UNTRUSTED `value`: `value` is an OpenSSL
/// mini-language that can read arbitrary files.
///
/// See the extension module for builder types which will construct certain common extensions.
pub fn new(
conf: Option<&ConfRef>,
Expand Down Expand Up @@ -849,6 +852,9 @@ impl X509Extension {
/// Some extension types, such as `nid::SUBJECT_ALTERNATIVE_NAME`, require an `X509v3Context` to
/// be provided.
///
/// DO NOT CALL THIS WITH UNTRUSTED `value`: `value` is an OpenSSL
/// mini-language that can read arbitrary files.
///
/// See the extension module for builder types which will construct certain common extensions.
pub fn new_nid(
conf: Option<&ConfRef>,
Expand Down

0 comments on commit a752805

Please sign in to comment.