Merge pull request #428 from onur/get_handle_for_X509Req

Implement get_handle for X509Req
This commit is contained in:
Steven Fackler 2016-07-29 09:04:20 -07:00 committed by GitHub
commit b7f81d4a0c
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