enable APDU logging again
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3062 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
6b40cf4caa
commit
7164006b44
|
@ -332,10 +332,8 @@ static int ctapi_transmit(sc_reader_t *reader, sc_slot_info_t *slot,
|
|||
r = sc_apdu_get_octets(reader->ctx, apdu, &sbuf, &ssize, SC_PROTO_RAW);
|
||||
if (r != SC_SUCCESS)
|
||||
goto out;
|
||||
/* log data if DEBUG is defined */
|
||||
#ifdef DEBUG
|
||||
sc_apdu_log(reader->ctx, sbuf, ssize, 1);
|
||||
#endif
|
||||
if (reader->ctx->debug >= 6)
|
||||
sc_apdu_log(reader->ctx, sbuf, ssize, 1);
|
||||
r = ctapi_internal_transmit(reader, slot, sbuf, ssize,
|
||||
rbuf, &rsize, apdu->control);
|
||||
if (r < 0) {
|
||||
|
@ -343,10 +341,8 @@ static int ctapi_transmit(sc_reader_t *reader, sc_slot_info_t *slot,
|
|||
sc_error(reader->ctx, "unable to transmit");
|
||||
goto out;
|
||||
}
|
||||
/* log data if DEBUG is defined */
|
||||
#ifdef DEBUG
|
||||
sc_apdu_log(reader->ctx, rbuf, rsize, 0);
|
||||
#endif
|
||||
if (reader->ctx->debug >= 6)
|
||||
sc_apdu_log(reader->ctx, rbuf, rsize, 0);
|
||||
/* set response */
|
||||
r = sc_apdu_set_resp(reader->ctx, apdu, rbuf, rsize);
|
||||
out:
|
||||
|
|
|
@ -330,10 +330,8 @@ static int openct_reader_transmit(sc_reader_t *reader, sc_slot_info_t *slot,
|
|||
r = sc_apdu_get_octets(reader->ctx, apdu, &sbuf, &ssize, SC_PROTO_RAW);
|
||||
if (r != SC_SUCCESS)
|
||||
goto out;
|
||||
/* log data if DEBUG is defined */
|
||||
#ifdef DEBUG
|
||||
sc_apdu_log(reader->ctx, sbuf, ssize, 1);
|
||||
#endif
|
||||
if (reader->ctx->debug >= 6)
|
||||
sc_apdu_log(reader->ctx, sbuf, ssize, 1);
|
||||
r = openct_reader_internal_transmit(reader, slot, sbuf, ssize,
|
||||
rbuf, &rsize, apdu->control);
|
||||
if (r < 0) {
|
||||
|
@ -341,10 +339,8 @@ static int openct_reader_transmit(sc_reader_t *reader, sc_slot_info_t *slot,
|
|||
sc_error(reader->ctx, "unable to transmit");
|
||||
goto out;
|
||||
}
|
||||
/* log data if DEBUG is defined */
|
||||
#ifdef DEBUG
|
||||
sc_apdu_log(reader->ctx, rbuf, rsize, 0);
|
||||
#endif
|
||||
if (reader->ctx->debug >= 6)
|
||||
sc_apdu_log(reader->ctx, rbuf, rsize, 0);
|
||||
/* set response */
|
||||
r = sc_apdu_set_resp(reader->ctx, apdu, rbuf, rsize);
|
||||
out:
|
||||
|
|
|
@ -237,10 +237,8 @@ static int pcsc_transmit(sc_reader_t *reader, sc_slot_info_t *slot,
|
|||
r = sc_apdu_get_octets(reader->ctx, apdu, &sbuf, &ssize, slot->active_protocol);
|
||||
if (r != SC_SUCCESS)
|
||||
goto out;
|
||||
/* log data if DEBUG is defined */
|
||||
#ifdef DEBUG
|
||||
sc_apdu_log(reader->ctx, sbuf, ssize, 1);
|
||||
#endif
|
||||
if (reader->ctx->debug >= 6)
|
||||
sc_apdu_log(reader->ctx, sbuf, ssize, 1);
|
||||
|
||||
r = pcsc_internal_transmit(reader, slot, sbuf, ssize,
|
||||
rbuf, &rsize, apdu->control);
|
||||
|
@ -249,10 +247,8 @@ static int pcsc_transmit(sc_reader_t *reader, sc_slot_info_t *slot,
|
|||
sc_error(reader->ctx, "unable to transmit");
|
||||
goto out;
|
||||
}
|
||||
/* log data if DEBUG is defined */
|
||||
#ifdef DEBUG
|
||||
sc_apdu_log(reader->ctx, rbuf, rsize, 0);
|
||||
#endif
|
||||
if (reader->ctx->debug >= 6)
|
||||
sc_apdu_log(reader->ctx, rbuf, rsize, 0);
|
||||
/* set response */
|
||||
r = sc_apdu_set_resp(reader->ctx, apdu, rbuf, rsize);
|
||||
out:
|
||||
|
|
Loading…
Reference in New Issue