Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tpm2-provider-pkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ tpm2_keydata_write(const TPM2_KEYDATA *keydata, BIO *bout, TPM2_PKEY_FORMAT form
if (!tpk->type)
goto error;

tpk->emptyAuth = ! !keydata->emptyAuth;
tpk->emptyAuth = keydata->emptyAuth ? 0xFF : 0;

// note the ASN1_INTEGER_set is not reliable for uin32_t on 32-bit machines
if (!(bn_parent = BN_new()))
Expand Down
Loading