]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
gcrypt: Fix gcrypt error log message in read_bignum().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 28 Aug 2018 09:08:00 +0000 (11:08 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 29 Aug 2018 13:47:31 +0000 (15:47 +0200)
The message says the error occured while scanning for the public
modulus n, which is not true because the function is called for each
of the five bignums stored in an RSA private key file.

gcrypt.c

index ff4dab37ea4f5323e7545f5a755c38c105fdc6c0..694c0adb8454b73dc0e5b67876fc7a03617b61d0 100644 (file)
--- a/gcrypt.c
+++ b/gcrypt.c
@@ -237,7 +237,7 @@ static int read_bignum(unsigned char *start, unsigned char *end, gcry_mpi_t *bn,
        PARA_DEBUG_LOG("bn_size %d (0x%x)\n", bn_size, (unsigned)bn_size);
        gret = gcry_mpi_scan(bn, GCRYMPI_FMT_STD, cp, bn_size, NULL);
        if (gret) {
-               PARA_ERROR_LOG("%s while scanning n\n",
+               PARA_ERROR_LOG("gcry_mpi_scan: %s\n",
                        gcry_strerror(gcry_err_code(gret)));
                return-E_MPI_SCAN;
        }