Skip to content

Commit

Permalink
Fix call to ykpiv_hex_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
qpernil committed Jan 8, 2023
1 parent c233447 commit 574dae5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ykcs11/token.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ CK_RV token_change_pin(ykpiv_state *state, CK_USER_TYPE user_type, CK_UTF8CHAR_P
switch(user_type){
case CKU_SO:{
ykpiv_mgm new_key = {0};
new_key.len = sizeof(new_key.data);
if(ykpiv_hex_decode((const char*)pNewPin, ulNewLen, new_key.data, &new_key.len) != YKPIV_OK) {
DBG("Failed to decode new pin");
return CKR_PIN_INVALID;
Expand Down

0 comments on commit 574dae5

Please sign in to comment.