diff options
| author | Jethro Beekman <[email protected]> | 2015-06-30 15:41:20 -0700 |
|---|---|---|
| committer | Jethro Beekman <[email protected]> | 2015-07-08 10:09:40 -0700 |
| commit | e3c562d6a04649e97863224a7c32d1130650c755 (patch) | |
| tree | fba4bcbed5e43d1717b2a3282281bc57d8001d7f /openssl/src/x509/mod.rs | |
| parent | Add X509generator.add_names method (diff) | |
| download | rust-openssl-e3c562d6a04649e97863224a7c32d1130650c755.tar.xz rust-openssl-e3c562d6a04649e97863224a7c32d1130650c755.zip | |
Fix/add more X509generator tests
Diffstat (limited to 'openssl/src/x509/mod.rs')
| -rw-r--r-- | openssl/src/x509/mod.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 717afa65..67258da5 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -201,8 +201,9 @@ impl X509Generator { /// Add attribute to the name of the certificate /// - /// ```ignore - /// generator.add_name("CN".to_string(),"example.com".to_string()) + /// ``` + /// # let generator = openssl::x509::X509Generator::new(); + /// generator.add_name("CN".to_string(),"example.com".to_string()); /// ``` pub fn add_name(mut self, attr_type: String, attr_value: String) -> X509Generator { self.names.push((attr_type,attr_value)); @@ -211,7 +212,8 @@ impl X509Generator { /// Add multiple attributes to the name of the certificate /// - /// ```ignore + /// ``` + /// # let generator = openssl::x509::X509Generator::new(); /// generator.add_names(vec![("CN".to_string(),"example.com".to_string())]); /// ``` pub fn add_names<I>(mut self, attrs: I) -> X509Generator |