mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fixed auto generation of the key stub.
Fixed bug 851. Allow decryption using type 20 Elgamal keys.
This commit is contained in:
parent
aa9aec7068
commit
0e927e3941
5 changed files with 65 additions and 4 deletions
|
@ -2348,7 +2348,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue