Skip to content

Commit 14c80b0

Browse files
committed
pkcs11-tool: Require the input file for derive operation
1 parent 7512c4d commit 14c80b0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tools/pkcs11-tool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6138,6 +6138,8 @@ derive_ec_key(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE key, CK_MECHANISM_TYPE
61386138
memset(&mech, 0, sizeof(mech));
61396139
mech.mechanism = mech_mech;
61406140

6141+
if (opt_input == NULL)
6142+
util_fatal("Derive operation needs --input-file");
61416143
/* Use OpenSSL to read the other public key, and get the raw version */
61426144
bio_in = BIO_new(BIO_s_file());
61436145
if (BIO_read_filename(bio_in, opt_input) <= 0)

0 commit comments

Comments
 (0)