summaryrefslogtreecommitdiff
path: root/openssl/src/pkey.rs
diff options
context:
space:
mode:
authorBrian Chin <brianchin@google.com>2017-01-31 11:59:59 -0800
committerBrian Chin <brianchin@google.com>2017-01-31 11:59:59 -0800
commit4900d3fe5d8fe9f581940bd60e2d919155839fa8 (patch)
treea6614602603c645617e15286f9fc92385e651735 /openssl/src/pkey.rs
parent302ee77d32acb0b92fe563f29c36882e3b9b7d62 (diff)
downloadrust-openssl-4900d3fe5d8fe9f581940bd60e2d919155839fa8.zip
Fixed constant names from openssl/rsa.h
Fixed PKeyCtxRef method that didn't need to be mutable. Added non-mutable accessors for PKeyCtxRef for Signer and Verifier.
Diffstat (limited to 'openssl/src/pkey.rs')
-rw-r--r--openssl/src/pkey.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/pkey.rs b/openssl/src/pkey.rs
index 0d8de1dd..c9f5ec1b 100644
--- a/openssl/src/pkey.rs
+++ b/openssl/src/pkey.rs
@@ -161,7 +161,7 @@ impl PKeyCtxRef {
Ok(())
}
- pub fn rsa_padding(&mut self) -> Result<Padding, ErrorStack> {
+ pub fn rsa_padding(&self) -> Result<Padding, ErrorStack> {
let mut pad: c_int = 0;
unsafe {
try!(cvt(ffi::EVP_PKEY_CTX_get_rsa_padding(self.as_ptr(), &mut pad)));