From 16d5632983ea40a35b722e8aeb08d6a3e6b0b721 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 11 Feb 2017 10:14:16 -0800 Subject: [PATCH] Remove X509Req setters --- openssl/src/x509/mod.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 6b65fbd2..d225e565 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -874,13 +874,6 @@ impl X509ReqRef { } } - pub fn set_version(&mut self, value: i32) -> Result<(), ErrorStack> - { - unsafe { - cvt(ffi::X509_REQ_set_version(self.as_ptr(), value as c_long)).map(|_| ()) - } - } - pub fn subject_name(&self) -> &X509NameRef { unsafe { let name = compat::X509_REQ_get_subject_name(self.as_ptr()); @@ -888,12 +881,6 @@ impl X509ReqRef { X509NameRef::from_ptr(name) } } - - pub fn set_subject_name(&mut self, value: &X509NameRef) -> Result<(), ErrorStack> { - unsafe { - cvt(ffi::X509_REQ_set_subject_name(self.as_ptr(), value.as_ptr())).map(|_| ()) - } - } } /// A collection of X.509 extensions.