diff options
author | Werner Koch <[email protected]> | 2006-06-28 09:37:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-06-28 09:37:42 +0000 |
commit | 23380119eee1d3611fb6680edf2c58d699a667ff (patch) | |
tree | d49ccfa7d1036c7f2d6e68959e02f98e1e5962dd | |
parent | do no use reopen_std under W32. (diff) | |
download | gnupg-23380119eee1d3611fb6680edf2c58d699a667ff.tar.gz gnupg-23380119eee1d3611fb6680edf2c58d699a667ff.zip |
Fixed uploading of keays.
Diffstat (limited to '')
-rw-r--r-- | g10/ChangeLog | 6 | ||||
-rw-r--r-- | g10/app-openpgp.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 33d00104b..a15682902 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,9 @@ +2006-06-28 Werner Koch <[email protected]> + + * app-openpgp.c (do_writekey): Fixed computation of memmove + length. This led to garbled keys if E was larger than one byte. + Thanks to Achim Pietig for hinting at the garbled E. + 2006-06-27 Werner Koch <[email protected]> * gpg.c (reopen_std) [HAVE_W32_SYSTEM]: Do not use it. diff --git a/g10/app-openpgp.c b/g10/app-openpgp.c index ff0143c55..102e52329 100644 --- a/g10/app-openpgp.c +++ b/g10/app-openpgp.c @@ -1789,7 +1789,7 @@ do_writekey (app_t app, ctrl_t ctrl, if (rsa_e_len < 4) { /* Right justify E. */ - memmove (tp+4-rsa_e_len, tp, 4-rsa_e_len); + memmove (tp+4-rsa_e_len, tp, rsa_e_len); memset (tp, 0, 4-rsa_e_len); } tp += 4; |