summaryrefslogtreecommitdiffstats
path: root/base/native-tools
diff options
context:
space:
mode:
Diffstat (limited to 'base/native-tools')
-rw-r--r--base/native-tools/src/tkstool/key.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/base/native-tools/src/tkstool/key.c b/base/native-tools/src/tkstool/key.c
index e63da93aa..f208cbdaf 100644
--- a/base/native-tools/src/tkstool/key.c
+++ b/base/native-tools/src/tkstool/key.c
@@ -1219,13 +1219,14 @@ TKS_StoreSymmetricKeyAndNameIt( char *symmetricKeyName,
rvExtractSymmetricKey = PK11_ExtractKeyValue( /* symmetric key */ symKey );
if( rvExtractSymmetricKey != SECSuccess ) {
PR_fprintf( PR_STDERR,
- "ERROR: Failed to extract the %s key!\n\n",
+ "ERROR: Failed to extract the %s key for final display, OK if in FIPs mode!\n\n",
symmetricKeyName );
- goto destroyHexSymmetricKey;
- }
+ symmetricKey = NULL;
+ } else {
- /* If present, retrieve the raw key data */
- symmetricKey = PK11_GetKeyData( /* symmetric key */ symKey );
+ /* If present, retrieve the raw key data */
+ symmetricKey = PK11_GetKeyData( /* symmetric key */ symKey );
+ }
#if defined(DEBUG)
/* For convenience, display the final symmetric key and */