diff options
Diffstat (limited to 'sm')
-rw-r--r-- | sm/ChangeLog | 4 | ||||
-rw-r--r-- | sm/certcheck.c | 2 | ||||
-rw-r--r-- | sm/encrypt.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog index 20b02a194..f4264037d 100644 --- a/sm/ChangeLog +++ b/sm/ChangeLog @@ -1,3 +1,7 @@ +2003-07-27 Werner Koch <wk@gnupg.org> + + Adjusted for gcry_mpi_print and gcry_mpi_scan API change. + 2003-06-24 Werner Koch <wk@gnupg.org> * server.c (gpgsm_status_with_err_code): New. diff --git a/sm/certcheck.c b/sm/certcheck.c index b83783813..35509c67e 100644 --- a/sm/certcheck.c +++ b/sm/certcheck.c @@ -90,7 +90,7 @@ do_encode_md (gcry_md_hd_t md, int algo, unsigned int nbits, log_printf ("\n"); } - gcry_mpi_scan (r_val, GCRYMPI_FMT_USG, frame, &nframe); + gcry_mpi_scan (r_val, GCRYMPI_FMT_USG, frame, n, &nframe); xfree (frame); return 0; } diff --git a/sm/encrypt.c b/sm/encrypt.c index dfc905454..725a81b70 100644 --- a/sm/encrypt.c +++ b/sm/encrypt.c @@ -192,7 +192,7 @@ encode_session_key (DEK dek, unsigned int nbits) memcpy (frame+n, dek->key, dek->keylen); n += dek->keylen; assert (n == nframe); - if (gcry_mpi_scan (&a, GCRYMPI_FMT_USG, frame, &nframe) ) + if (gcry_mpi_scan (&a, GCRYMPI_FMT_USG, frame, n, &nframe) ) BUG (); gcry_free(frame); |