summaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-07-14 19:10:28 +0200
committerWerner Koch <wk@gnupg.org>1998-07-14 19:10:28 +0200
commit0a76a4465be37c29de4459096e89f9f8b9964cf7 (patch)
tree5fb00ca21525cb2d9ffbfd81312596a80925403b /g10/keydb.h
parentfixed types, added new translations. (diff)
downloadgnupg2-0a76a4465be37c29de4459096e89f9f8b9964cf7.tar.xz
gnupg2-0a76a4465be37c29de4459096e89f9f8b9964cf7.zip
sync
Diffstat (limited to 'g10/keydb.h')
-rw-r--r--g10/keydb.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index 58a170d27..a0398092a 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -25,6 +25,7 @@
#include "packet.h"
#include "cipher.h"
+#define MAX_FINGERPRINT_LEN 20
/****************
@@ -80,11 +81,12 @@ struct pubkey_find_info {
u32 keyid[2];
unsigned nbits;
byte pubkey_algo;
- byte fingerprint[20];
+ byte fingerprint[MAX_FINGERPRINT_LEN];
char userid[1];
};
+
/*-- pkclist.c --*/
int check_signatures_trust( PKT_signature *sig );
void release_pk_list( PK_LIST pk_list );
@@ -128,8 +130,8 @@ unsigned nbits_from_sk( PKT_secret_key *sk );
const char *datestr_from_pk( PKT_public_key *pk );
const char *datestr_from_sk( PKT_secret_key *sk );
const char *datestr_from_sig( PKT_signature *sig );
-byte *fingerprint_from_sk( PKT_secret_key *sk, size_t *ret_len );
-byte *fingerprint_from_pk( PKT_public_key *pk, size_t *ret_len );
+byte *fingerprint_from_sk( PKT_secret_key *sk, byte *buf. size_t *ret_len );
+byte *fingerprint_from_pk( PKT_public_key *pk, byte *buf, size_t *ret_len );
/*-- kbnode.c --*/
KBNODE new_kbnode( PACKET *pkt );