aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorBrian Chin <[email protected]>2017-01-30 10:30:25 -0800
committerBrian Chin <[email protected]>2017-01-30 15:04:44 -0800
commitef61b814ff51d516adbc33d522dd0d84f2344196 (patch)
treeba877d1b009d64632e2a91b3a542629c721d0ce8 /openssl/src
parentSimplify protocol based on the semantics defined by openssl. (diff)
downloadrust-openssl-ef61b814ff51d516adbc33d522dd0d84f2344196.tar.xz
rust-openssl-ef61b814ff51d516adbc33d522dd0d84f2344196.zip
Small amount of docs.
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/rsa.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl/src/rsa.rs b/openssl/src/rsa.rs
index 63ed874a..433efd56 100644
--- a/openssl/src/rsa.rs
+++ b/openssl/src/rsa.rs
@@ -353,6 +353,7 @@ unsafe fn pkey_ctx_get_rsa_padding(ctx: *mut ffi::EVP_PKEY_CTX, ppad: *mut c_int
ffi::EVP_PKEY_CTX_ctrl(ctx, ffi::EVP_PKEY_RSA, -1, ffi::RSA_PKEY_CTRL_GET_RSA_PADDING, 0, ppad as *mut c_void)
}
+// This is needed here, as it needs access to the privade data of Padding.
impl PKeyCtxRef {
pub fn set_rsa_padding(&mut self, pad: Padding) -> Result<(), ErrorStack> {
unsafe {