diff options
| author | Steven Fackler <[email protected]> | 2016-11-12 11:14:05 +0000 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-11-12 11:14:05 +0000 |
| commit | b14d68f715b3ba02e671d9c3e158abcf89237ef9 (patch) | |
| tree | a98c1b666ee062ed665c40b1b6af3a0932f5e818 /openssl/src | |
| parent | Add PKey::bits (diff) | |
| download | rust-openssl-b14d68f715b3ba02e671d9c3e158abcf89237ef9.tar.xz rust-openssl-b14d68f715b3ba02e671d9c3e158abcf89237ef9.zip | |
Drop bits to u32
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/pkey.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/pkey.rs b/openssl/src/pkey.rs index c9772d52..43eadd43 100644 --- a/openssl/src/pkey.rs +++ b/openssl/src/pkey.rs @@ -96,8 +96,8 @@ impl PKeyRef { /// /// This corresponds to the bit length of the modulus of an RSA key, and the bit length of the /// group order for an elliptic curve key, for example. - pub fn bits(&self) -> usize { - unsafe { ffi::EVP_PKEY_bits(self.as_ptr()) as usize } + pub fn bits(&self) -> u32 { + unsafe { ffi::EVP_PKEY_bits(self.as_ptr()) as u32 } } /// Compares the public component of this key with another. |