corrected indent and title of CHAT and certificate description

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@283 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-09-27 10:58:33 +00:00
parent 3d5e8af4f3
commit 6f46d10136

View File

@@ -975,9 +975,10 @@ int EstablishPACEChannel(struct sm_ctx *oldpacectx, sc_card_t *card,
goto err; goto err;
} }
printf("Certificate Description\n");
switch(certificate_description_print(bio_stdout, switch(certificate_description_print(bio_stdout,
pace_input.certificate_description, pace_input.certificate_description,
pace_input.certificate_description_length, "")) { pace_input.certificate_description_length, "\t")) {
case -1: case -1:
sc_error(card->ctx, "Could not print certificate description."); sc_error(card->ctx, "Could not print certificate description.");
ssl_error(card->ctx); ssl_error(card->ctx);
@@ -1035,15 +1036,15 @@ int EstablishPACEChannel(struct sm_ctx *oldpacectx, sc_card_t *card,
goto err; goto err;
} }
chat = d2i_CVC_CHAT(NULL, (const unsigned char **) &pace_input.chat, if (!d2i_CVC_CHAT(&chat, (const unsigned char **) &pace_input.chat,
pace_input.chat_length); pace_input.chat_length)) {
if (!chat) {
sc_error(card->ctx, "Could not parse card holder authorization template (CHAT)."); sc_error(card->ctx, "Could not parse card holder authorization template (CHAT).");
r = SC_ERROR_INTERNAL; r = SC_ERROR_INTERNAL;
goto err; goto err;
} }
if (!cv_chat_print(bio_stdout, chat, "")) { printf("Card holder authorization template (CHAT)\n");
if (!cv_chat_print(bio_stdout, chat, "\t")) {
sc_error(card->ctx, "Could not print card holder authorization template (CHAT)."); sc_error(card->ctx, "Could not print card holder authorization template (CHAT).");
ssl_error(card->ctx); ssl_error(card->ctx);
r = SC_ERROR_INTERNAL; r = SC_ERROR_INTERNAL;