Implement get_handle for X509Req

This commit is contained in:
Onur Aslan 2016-07-29 16:30:24 +03:00
parent bdfa54cfdb
commit 7c082904fc
1 changed files with 4 additions and 0 deletions

View File

@ -611,6 +611,10 @@ impl X509Req {
X509Req { handle: handle } X509Req { handle: handle }
} }
pub fn get_handle(&self) -> *mut ffi::X509_REQ {
self.handle
}
/// Reads CSR from PEM /// Reads CSR from PEM
pub fn from_pem<R>(reader: &mut R) -> Result<X509Req, SslError> pub fn from_pem<R>(reader: &mut R) -> Result<X509Req, SslError>
where R: Read where R: Read