Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xhanulik committed May 16, 2024
1 parent 793e388 commit ea4b217
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/libopensc/iso7816.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ iso7816_check_sw(struct sc_card *card, unsigned int sw1, unsigned int sw2)
}
if (sw1 == 0x90 && sw2 == 0x00)
return SC_SUCCESS;
if (sw1 == 0x63U && (sw2 & ~0x0fU) == 0xc0U ) {
sc_log(card->ctx, "PIN not verified (remaining tries: %d)", (sw2 & 0x0f));
return SC_ERROR_PIN_CODE_INCORRECT;
if (sw1 == 0x63U && (sw2 & ~0x0fU) == 0xc0U) {
sc_log(card->ctx, "PIN not verified (remaining tries: %d)", (sw2 & 0x0f));
return SC_ERROR_PIN_CODE_INCORRECT;
}
for (i = 0; i < err_count; i++) {
if (iso7816_errors[i].SWs == ((sw1 << 8) | sw2)) {
Expand Down
6 changes: 4 additions & 2 deletions src/pkcs15init/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,14 +2001,16 @@ static struct block root_ops = {
};

static int
is_macro_character(char c) {
is_macro_character(char c)
{
if (isalnum(c) || c == '-' || c == '_')
return 1;
return 0;
}

static int
get_inner_word(char *str, char word[WORD_SIZE]) {
get_inner_word(char *str, char word[WORD_SIZE])
{
char *inner = NULL;
size_t len = 0;

Expand Down

0 comments on commit ea4b217

Please sign in to comment.