Document the horror show

This commit is contained in:
Alex Gaynor 2023-03-21 20:45:35 -04:00 committed by Anthony Ramine
parent c80e3a3ec5
commit 90dfe2f912
1 changed files with 6 additions and 0 deletions

View File

@ -748,6 +748,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>,
@ -791,6 +794,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>,