[git] GCRYPT - branch, master, updated. libgcrypt-1.8.1-14-ge4dc458

by NIIBE Yutaka cvs at cvs.gnupg.org
Tue Aug 29 09:13:48 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  e4dc458b0b7dc9b8417a2177ef17822d9b9064ec (commit)
       via  8126a6717c80d4fc1766d7f975e872bee2f9f203 (commit)
       via  a848ef44470a524c05624afb54b92cf25595acd2 (commit)
      from  db3a8d6890fb4a6436e082b49378c0bd891563ca (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e4dc458b0b7dc9b8417a2177ef17822d9b9064ec
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Aug 29 16:11:42 2017 +0900

    Tweak GCC version check.
    
    * src/global.c (_gcry_vcontrol): It's GCC 4.2 which started to support
    diagnostic pragma.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/src/global.c b/src/global.c
index 4e2e274..ad9ab1d 100644
--- a/src/global.c
+++ b/src/global.c
@@ -705,7 +705,7 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr)
       rc = _gcry_fips_run_selftests (1);
       break;
 
-#if _GCRY_GCC_VERSION >= 40600
+#if _GCRY_GCC_VERSION >= 40200
 # pragma GCC diagnostic push
 # pragma GCC diagnostic ignored "-Wswitch"
 #endif
@@ -733,7 +733,7 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd, va_list arg_ptr)
     case PRIV_CTL_DUMP_SECMEM_STATS:
       _gcry_secmem_dump_stats (1);
       break;
-#if _GCRY_GCC_VERSION >= 40600
+#if _GCRY_GCC_VERSION >= 40200
 # pragma GCC diagnostic pop
 #endif
 

commit 8126a6717c80d4fc1766d7f975e872bee2f9f203
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Aug 29 16:10:54 2017 +0900

    random: Fix warnings on Windows.
    
    * random/random-csprng.c (lock_seed_file): Vars with no use.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/random/random-csprng.c b/random/random-csprng.c
index 8cb35e7..b06810a 100644
--- a/random/random-csprng.c
+++ b/random/random-csprng.c
@@ -704,6 +704,10 @@ lock_seed_file (int fd, const char *fname, int for_write)
       if (backoff < 10)
         backoff++ ;
     }
+#else
+  (void)fd;
+  (void)fname;
+  (void)for_write;
 #endif /*!LOCK_SEED_FILE*/
   return 0;
 }

commit a848ef44470a524c05624afb54b92cf25595acd2
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Aug 29 16:09:39 2017 +0900

    tests: Fix warnings on Windows.
    
    * tests/fipsdrv.c (print_dsa_domain_parameters, print_ecdsa_dq): Fix.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/tests/fipsdrv.c b/tests/fipsdrv.c
index f9d9c45..71554e2 100644
--- a/tests/fipsdrv.c
+++ b/tests/fipsdrv.c
@@ -1835,7 +1835,7 @@ print_dsa_domain_parameters (gcry_sexp_t key)
   /* Extract the parameters from the S-expression and print them to stdout.  */
   for (idx=0; "pqg"[idx]; idx++)
     {
-      l2 = gcry_sexp_find_token (l1, "pqg"+idx, 1);
+      l2 = gcry_sexp_find_token (l1, &"pqg"[idx], 1);
       if (!l2)
         die ("no %c parameter in returned public key\n", "pqg"[idx]);
       mpi = gcry_sexp_nth_mpi (l2, 1, GCRYMPI_FMT_USG);
@@ -1923,7 +1923,7 @@ print_ecdsa_dq (gcry_sexp_t key)
   /* Extract the parameters from the S-expression and print them to stdout.  */
   for (idx=0; "dq"[idx]; idx++)
     {
-      l2 = gcry_sexp_find_token (l1, "dq"+idx, 1);
+      l2 = gcry_sexp_find_token (l1, &"dq"[idx], 1);
       if (!l2)
         die ("no %c parameter in returned public key\n", "dq"[idx]);
       mpi = gcry_sexp_nth_mpi (l2, 1, GCRYMPI_FMT_USG);

-----------------------------------------------------------------------

Summary of changes:
 random/random-csprng.c | 4 ++++
 src/global.c           | 4 ++--
 tests/fipsdrv.c        | 4 ++--
 3 files changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list