suppress error message when testing signature alg

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1989 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2004-12-05 16:35:54 +00:00
parent 6ff0afc336
commit 0d7c9328f0
1 changed files with 4 additions and 0 deletions

View File

@ -662,7 +662,9 @@ etoken_compute_signature(struct sc_card *card, const u8 *data, size_t datalen,
*/
if (ctx->debug >= 3)
sc_debug(ctx, "trying RSA_PURE_SIG (padded DigestInfo)\n");
ctx->suppress_errors++;
r = do_compute_signature(card, data, datalen, out, outlen);
ctx->suppress_errors--;
if (r >= SC_SUCCESS)
SC_FUNC_RETURN(ctx, 4, r);
if (ctx->debug >= 3)
@ -676,7 +678,9 @@ etoken_compute_signature(struct sc_card *card, const u8 *data, size_t datalen,
if (r != SC_SUCCESS)
SC_FUNC_RETURN(ctx, 4, r);
}
ctx->suppress_errors++;
r = do_compute_signature(card, buf, tmp_len, out, outlen);
ctx->suppress_errors--;
if (r >= SC_SUCCESS)
SC_FUNC_RETURN(ctx, 4, r);
if (ctx->debug >= 3)