Skip to content

Commit 745525e

Browse files
committed
kmgmt: Use get_key_name() in has function
Signed-off-by: Gowtham Suresh Kumar <[email protected]>
1 parent f09d0b7 commit 745525e

File tree

1 file changed

+1
-1
lines changed
  • parsec-openssl-provider/src/keymgmt

1 file changed

+1
-1
lines changed

parsec-openssl-provider/src/keymgmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub unsafe extern "C" fn parsec_provider_kmgmt_has(
149149
Arc::increment_strong_count(keydata as *const RwLock<ParsecProviderKeyObject>);
150150
let key_data = Arc::from_raw(keydata as *const RwLock<ParsecProviderKeyObject>);
151151
let reader_key_data = key_data.read().unwrap();
152-
if reader_key_data.key_name.is_some() {
152+
if reader_key_data.get_key_name().is_some() {
153153
Ok(OPENSSL_SUCCESS)
154154
} else {
155155
Err("key name has not been set.".into())

0 commit comments

Comments
 (0)