aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorzzmp <[email protected]>2014-06-19 12:56:55 -0700
committerzzmp <[email protected]>2014-06-19 12:57:00 -0700
commitf659c37d29665a4a69d847723e7e1dfd256e3541 (patch)
treea095a1e8012d00ff0902e182d4875e594536ae94 /crypto
parentStop using stamps for multi-targets (diff)
downloadrust-openssl-f659c37d29665a4a69d847723e7e1dfd256e3541.tar.xz
rust-openssl-f659c37d29665a4a69d847723e7e1dfd256e3541.zip
Squelch warnings
This squelches warnings from dead_code for many idiomatic structs. This squelches warnings for non_camel_case_functions for idiomatically named fns.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/hash.rs2
-rw-r--r--crypto/hmac.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/crypto/hash.rs b/crypto/hash.rs
index 5cc0ec58..d03b0317 100644
--- a/crypto/hash.rs
+++ b/crypto/hash.rs
@@ -11,6 +11,7 @@ pub enum HashType {
SHA512
}
+#[allow(dead_code)]
#[allow(non_camel_case_types)]
pub struct EVP_MD_CTX {
digest: *EVP_MD,
@@ -57,6 +58,7 @@ pub fn evpmd(t: HashType) -> (*EVP_MD, uint) {
}
}
+#[allow(dead_code)]
pub struct Hasher {
evp: *EVP_MD,
ctx: *EVP_MD_CTX,
diff --git a/crypto/hmac.rs b/crypto/hmac.rs
index 93ae0158..1104f6c1 100644
--- a/crypto/hmac.rs
+++ b/crypto/hmac.rs
@@ -17,6 +17,7 @@
use libc::{c_uchar, c_int, c_uint};
use crypto::hash;
+#[allow(dead_code)]
#[allow(non_camel_case_types)]
pub struct HMAC_CTX {
md: *hash::EVP_MD,
@@ -43,6 +44,7 @@ pub struct HMAC {
len: uint,
}
+#[allow(non_snake_case_functions)]
pub fn HMAC(ht: hash::HashType, key: &[u8]) -> HMAC {
unsafe {
let (evp, mdlen) = hash::evpmd(ht);