only warn about missing certificate description
This commit is contained in:
@@ -2276,13 +2276,7 @@ npa_sm_pre_transmit(sc_card_t *card, const struct iso_sm_ctx *ctx,
|
|||||||
case CVC_Terminal:
|
case CVC_Terminal:
|
||||||
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE, "Processing Terminal certificate");
|
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE, "Processing Terminal certificate");
|
||||||
|
|
||||||
if (!eacsmctx->certificate_description) {
|
if (eacsmctx->certificate_description) {
|
||||||
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE,
|
|
||||||
"Certificate Description missing");
|
|
||||||
r = SC_ERROR_INVALID_DATA;
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (CVC_check_description(cvc_cert,
|
switch (CVC_check_description(cvc_cert,
|
||||||
(unsigned char *) eacsmctx->certificate_description->data,
|
(unsigned char *) eacsmctx->certificate_description->data,
|
||||||
eacsmctx->certificate_description->length)) {
|
eacsmctx->certificate_description->length)) {
|
||||||
@@ -2304,6 +2298,10 @@ npa_sm_pre_transmit(sc_card_t *card, const struct iso_sm_ctx *ctx,
|
|||||||
goto err;
|
goto err;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE,
|
||||||
|
"Warning: Certificate Description missing");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user