1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Fix for bug 851.

Fixed auto generation of the stub key for the card.
Allow to encrypt toElgamal encryption keys of type 20.
This commit is contained in:
Werner Koch 2007-12-10 15:19:34 +00:00
parent e2aefc427e
commit bc482052f8
5 changed files with 64 additions and 5 deletions

View file

@ -2355,7 +2355,8 @@ auto_create_card_key_stub ( const char *serialnostr,
size_t an;
fingerprint_from_pk (pk, afp, &an);
memset (afp, 0, MAX_FINGERPRINT_LEN);
if (an < MAX_FINGERPRINT_LEN)
memset (afp+an, 0, MAX_FINGERPRINT_LEN-an);
rc = keydb_search_fpr (hd, afp);
}
@ -2410,4 +2411,3 @@ auto_create_card_key_stub ( const char *serialnostr,
keydb_release (hd);
return rc;
}