Skip to content

Commit 2617630

Browse files
committed
Add comment on where failure happens
1 parent e60cffb commit 2617630

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wp_ecc_kmgmt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,9 @@ static int wp_ecc_import_keypair(wp_Ecc* ecc, const OSSL_PARAM params[],
11681168
ecc->key.type = ECC_PRIVATEKEY;
11691169
ecc->hasPub = 1;
11701170
}
1171+
/* If derivation fails, continue.
1172+
* The key is still valid for private key operations.
1173+
* We will fail later if public key is accessed. */
11711174
}
11721175
}
11731176
#endif /* OPENSSL_VERSION_NUMBER > 0x30600000L 3.6.0+ */

0 commit comments

Comments
 (0)