1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-14 00:19:50 +02:00

agent: Improve some comments.

--

Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2015-05-06 15:27:23 +02:00
parent 56b5c9f94f
commit ac77e6254b

View File

@ -47,8 +47,8 @@
/* Because access to the pinentry must be serialized (it is and shall /* Because access to the pinentry must be serialized (it is and shall
be a global mutual dialog) we should better timeout further be a global mutually exclusive dialog) we better timeout pending
requests after some time. 2 minutes seem to be a reasonable requests after some time. 1 minute seem to be a reasonable
time. */ time. */
#define LOCK_TIMEOUT (1*60) #define LOCK_TIMEOUT (1*60)
@ -279,8 +279,8 @@ start_pinentry (ctrl_t ctrl)
log_error ("error flushing pending output: %s\n", strerror (errno)); log_error ("error flushing pending output: %s\n", strerror (errno));
/* At least Windows XP fails here with EBADF. According to docs /* At least Windows XP fails here with EBADF. According to docs
and Wine an fflush(NULL) is the same as _flushall. However and Wine an fflush(NULL) is the same as _flushall. However
the Wime implementaion does not flush stdin,stdout and stderr the Wine implementaion does not flush stdin,stdout and stderr
- see above. Lets try to ignore the error. */ - see above. Let's try to ignore the error. */
#ifndef HAVE_W32_SYSTEM #ifndef HAVE_W32_SYSTEM
return unlock_pinentry (tmperr); return unlock_pinentry (tmperr);
#endif #endif
@ -490,7 +490,7 @@ start_pinentry (ctrl_t ctrl)
} }
/* Returns True is the pinentry is currently active. If WAITSECONDS is /* Returns True if the pinentry is currently active. If WAITSECONDS is
greater than zero the function will wait for this many seconds greater than zero the function will wait for this many seconds
before returning. */ before returning. */
int int
@ -564,7 +564,7 @@ all_digitsp( const char *s)
/* Return a new malloced string by unescaping the string S. Escaping /* Return a new malloced string by unescaping the string S. Escaping
is percent escaping and '+'/space mapping. A binary Nul will is percent escaping and '+'/space mapping. A binary Nul will
silently be replaced by a 0xFF. Function returns NULL to indicate silently be replaced by a 0xFF. Function returns NULL to indicate
an out of memory status. PArsing stops at the end of the string or an out of memory status. Parsing stops at the end of the string or
a white space character. */ a white space character. */
static char * static char *
unescape_passphrase_string (const unsigned char *s) unescape_passphrase_string (const unsigned char *s)
@ -747,7 +747,7 @@ pinentry_status_cb (void *opaque, const char *line)
/* Call the Entry and ask for the PIN. We do check for a valid PIN /* Call the Entry and ask for the PIN. We do check for a valid PIN
number here and repeat it as long as we have invalid formed number here and repeat it as long as we have invalid formed
numbers. KEYINFO and CACHEMODE are used to tell pinentry something numbers. KEYINFO and CACHE_MODE are used to tell pinentry something
about the key. */ about the key. */
int int
agent_askpin (ctrl_t ctrl, agent_askpin (ctrl_t ctrl,