Remove X509Req setters

This commit is contained in:
Steven Fackler 2017-02-11 10:14:16 -08:00
parent f2c69ae7e9
commit 16d5632983
1 changed files with 0 additions and 13 deletions

View File

@ -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.