mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* free-packet.c (copy_secret_key): Copy secret key into secure memory
since we may unprotect it. * main.h, g10.c (main), revoke.c (gen_desig_revoke): Add local user support so users can use -u with --desig-revoke. This bypasses the interactive walk over the revocation keys.
This commit is contained in:
parent
092bae80a9
commit
f7c138d9e7
5 changed files with 56 additions and 8 deletions
|
@ -285,7 +285,7 @@ copy_secret_key( PKT_secret_key *d, PKT_secret_key *s )
|
|||
int n, i;
|
||||
|
||||
if( !d )
|
||||
d = xmalloc(sizeof *d);
|
||||
d = xmalloc_secure(sizeof *d);
|
||||
else
|
||||
release_secret_key_parts (d);
|
||||
memcpy( d, s, sizeof *d );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue