diff options
author | Werner Koch <wk@gnupg.org> | 2003-07-28 10:59:18 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2003-07-28 10:59:18 +0200 |
commit | 860f56b08989ebd51fafc3d3974b8f7856a80c12 (patch) | |
tree | ac0cb108d674419305120f0983c269f74ce27bc7 /sm | |
parent | * options.h, g10.c (main, add_keyserver_url): Add (diff) | |
download | gnupg2-860f56b08989ebd51fafc3d3974b8f7856a80c12.tar.xz gnupg2-860f56b08989ebd51fafc3d3974b8f7856a80c12.zip |
Adjusted for use with current libgcrypt (1.1.42).
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); |