PKCS15-OpenPGP: Change error log

Only one DO is supported now.
This commit is contained in:
Nguyễn Hồng Quân 2013-03-27 11:39:33 +07:00 committed by Viktor Tarasov
parent 14b57ffb3e
commit 91fc129f19
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ sc_pkcs15emu_openpgp_add_data(sc_pkcs15_card_t *p15card)
*/
r = read_file(p15card->card, path, content, sizeof(content));
if (r <= 0 ) {
sc_log(ctx, "No data get from DO 010%d", i);
sc_log(ctx, "Cannot read DO 010%d or there is no data in it", i);
/* Skip */
continue;
}

View File

@ -306,7 +306,7 @@ static int openpgp_store_data(struct sc_pkcs15_card *p15card, struct sc_profile
}
if (r > 0) {
sc_log(ctx, "DO 0101 is full.");
r = SC_ERROR_TOO_MANY_OBJECTS;
r = SC_ERROR_NOT_ENOUGH_MEMORY;
break;
}
r = sc_pkcs15init_authenticate(profile, p15card, file, SC_AC_OP_UPDATE);