Skip to content

Commit a752805

Browse files
committed
Document the horror show
1 parent 78aa9aa commit a752805

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openssl/src/x509/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@ impl X509Extension {
807807
/// Some extension types, such as `subjectAlternativeName`, require an `X509v3Context` to be
808808
/// provided.
809809
///
810+
/// DO NOT CALL THIS WITH UNTRUSTED `value`: `value` is an OpenSSL
811+
/// mini-language that can read arbitrary files.
812+
///
810813
/// See the extension module for builder types which will construct certain common extensions.
811814
pub fn new(
812815
conf: Option<&ConfRef>,
@@ -849,6 +852,9 @@ impl X509Extension {
849852
/// Some extension types, such as `nid::SUBJECT_ALTERNATIVE_NAME`, require an `X509v3Context` to
850853
/// be provided.
851854
///
855+
/// DO NOT CALL THIS WITH UNTRUSTED `value`: `value` is an OpenSSL
856+
/// mini-language that can read arbitrary files.
857+
///
852858
/// See the extension module for builder types which will construct certain common extensions.
853859
pub fn new_nid(
854860
conf: Option<&ConfRef>,

0 commit comments

Comments
 (0)