From f3f89d8f482526460e15a1139f5e6d5ac1615668 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 5 Feb 2014 15:41:29 +0100 Subject: [PATCH] remove debug prints. --- yubico-piv-tool.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yubico-piv-tool.c b/yubico-piv-tool.c index aa8973e..578798b 100644 --- a/yubico-piv-tool.c +++ b/yubico-piv-tool.c @@ -326,13 +326,12 @@ static bool generate_key(SCARDHANDLE *card, const char *slot, enum enum_algorith rsa = RSA_new(); if(*data_ptr != 0x81) { - fprintf(stderr, "Failed to parse public key structure. (ptr was %02x)\n", *data_ptr); + fprintf(stderr, "Failed to parse public key structure.\n"); ret = false; goto generate_out; } data_ptr++; data_ptr += get_length(data_ptr, &len); - printf("modulus is %d.\n", len); bignum_n = BN_bin2bn(data_ptr, len, NULL); if(bignum_n == NULL) { fprintf(stderr, "Failed to parse public key modulus.\n"); @@ -342,7 +341,7 @@ static bool generate_key(SCARDHANDLE *card, const char *slot, enum enum_algorith data_ptr += len; if(*data_ptr != 0x82) { - fprintf(stderr, "Failed to parse public key structure (2). (ptr was %02x)\n", *data_ptr); + fprintf(stderr, "Failed to parse public key structure (2).\n"); ret = false; goto generate_out; }