Skip to content

Commit 56ad9f1

Browse files
committed
pkey/get_{bn,utf8}-string: temporarily disable dead_code lint
1 parent 6fd3991 commit 56ad9f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openssl/src/pkey.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ impl<T> PKeyRef<T> {
217217
/// Returns the BigNum value associated with the given key name.
218218
#[corresponds(EVP_PKEY_get_bn_param)]
219219
#[cfg(ossl300)]
220+
#[allow(dead_code)]
220221
pub(crate) fn get_bn_param(&self, key: &str) -> Result<&BigNumRef, ErrorStack> {
221222
let key = CString::new(key).unwrap();
222223
let mut value = ptr::null_mut();
@@ -233,6 +234,7 @@ impl<T> PKeyRef<T> {
233234
/// Returns the String value associated with the given key name.
234235
#[corresponds(EVP_PKEY_get_utf8_string_param)]
235236
#[cfg(ossl300)]
237+
#[allow(dead_code)]
236238
pub(crate) fn get_utf8_string_param(&self, key: &str) -> Result<String, ErrorStack> {
237239
const VALUE_LEN: usize = 4096;
238240
let key = CString::new(key).unwrap();

0 commit comments

Comments
 (0)