mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
changed trustdb design
This commit is contained in:
parent
3c53ea75ce
commit
1a80de41a5
20 changed files with 790 additions and 469 deletions
14
g10/getkey.c
14
g10/getkey.c
|
@ -464,6 +464,20 @@ get_pubkey_byname( PKT_public_key *pk, const char *name )
|
|||
}
|
||||
|
||||
|
||||
/****************
|
||||
* Search for a key with the given fingerprint.
|
||||
*/
|
||||
int
|
||||
get_pubkey_byfprint( PKT_public_key *pk, const byte *fprint, size_t fprint_len)
|
||||
{
|
||||
int rc;
|
||||
|
||||
if( fprint_len == 20 || fprint_len == 16 )
|
||||
rc = lookup( pk, fprint_len, NULL, fprint, NULL );
|
||||
else
|
||||
rc = G10ERR_GENERAL; /* Oops */
|
||||
return rc;
|
||||
}
|
||||
|
||||
/****************
|
||||
* Search for a key with the given fingerprint and return the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue