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

--send-key fix and other minor things

This commit is contained in:
Werner Koch 2001-05-05 16:33:05 +00:00
parent fc5ab236a2
commit 432c230348
7 changed files with 31 additions and 3 deletions

View file

@ -1,3 +1,13 @@
2001-05-04 Werner Koch <wk@gnupg.org>
* passphrase.c (passphrase_clear_cache): Shortcut if agent usage
is not enabled.
2001-05-01 Werner Koch <wk@gnupg.org>
* passphrase.c (writen): Replaced ssize_t by int. Thanks to
to Robert Joop for reporting that SunOS 4.1.4 does not have it.
2001-04-28 Werner Koch <wk@gnupg.org>
* getkey.c (merge_public_with_secret): pkttype was not set to subkey.

View file

@ -158,7 +158,7 @@ static int
writen ( int fd, const void *buf, size_t nbytes )
{
size_t nleft = nbytes;
ssize_t nwritten;
int nwritten;
while( nleft > 0 ) {
nwritten = write( fd, buf, nleft );
@ -435,13 +435,17 @@ passphrase_clear_cache ( u32 *keyid, int algo )
int fd = -1;
int nread;
u32 reply;
PKT_public_key *pk = m_alloc_clear ( sizeof *pk );
PKT_public_key *pk;
byte fpr[MAX_FINGERPRINT_LEN];
#if MAX_FINGERPRINT_LEN < 20
#error agent needs a 20 byte fingerprint
#endif
if (!opt.use_agent)
return;
pk = m_alloc_clear ( sizeof *pk );
memset (fpr, 0, MAX_FINGERPRINT_LEN );
if( !keyid || get_pubkey( pk, keyid ) ) {
log_debug ("oops, no key in passphrase_clear_cache\n");