diff options
| author | Onur Aslan <[email protected]> | 2016-07-29 16:30:24 +0300 |
|---|---|---|
| committer | Onur Aslan <[email protected]> | 2016-07-29 16:30:24 +0300 |
| commit | 7c082904fcfbce919396b372f4e236a0828fd7a0 (patch) | |
| tree | db87686e90bf8714fa1aa194bb3a089648efddf6 /openssl/src | |
| parent | Merge pull request #423 from taheris/fix/moving-write-buffer (diff) | |
| download | rust-openssl-7c082904fcfbce919396b372f4e236a0828fd7a0.tar.xz rust-openssl-7c082904fcfbce919396b372f4e236a0828fd7a0.zip | |
Implement get_handle for X509Req
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/x509/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 3150cc6e..daeb9283 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -611,6 +611,10 @@ impl X509Req { X509Req { handle: handle } } + pub fn get_handle(&self) -> *mut ffi::X509_REQ { + self.handle + } + /// Reads CSR from PEM pub fn from_pem<R>(reader: &mut R) -> Result<X509Req, SslError> where R: Read |