summaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-09-06 18:35:52 +0200
committerWerner Koch <wk@gnupg.org>2006-09-06 18:35:52 +0200
commiteef036df235b7fb16b57bb78daf6f7e590d8e6d6 (patch)
tree9350e6fa2ffde2219b3b13dabb450c96064ca1ad /agent/agent.h
parentMinor changes and typo fixes. (diff)
downloadgnupg2-eef036df235b7fb16b57bb78daf6f7e590d8e6d6.tar.xz
gnupg2-eef036df235b7fb16b57bb78daf6f7e590d8e6d6.zip
The big Assuan error code removal.
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/agent/agent.h b/agent/agent.h
index fdfe510fb..ffb6cded8 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -36,18 +36,12 @@
#include "../common/errors.h"
#include "membuf.h"
-/* Convenience function to be used instead of returning the old
- GNUPG_Out_Of_Core. */
-static inline gpg_error_t
-out_of_core (void)
-{
- return gpg_error (gpg_err_code_from_errno (errno));
-}
#define MAX_DIGEST_LEN 24
/* A large struct name "opt" to keep global flags */
-struct {
+struct
+{
unsigned int debug; /* Debug flags (DBG_foo_VALUE) */
int verbose; /* Verbosity level */
int quiet; /* Be as quiet as possible */
@@ -136,11 +130,12 @@ struct server_control_s
int use_auth_call; /* Hack to send the PKAUTH command instead of the
PKSIGN command to the scdaemon. */
};
-typedef struct server_control_s *CTRL;
+
typedef struct server_control_s *ctrl_t;
-struct pin_entry_info_s {
+struct pin_entry_info_s
+{
int min_digits; /* min. number of digits required or 0 for freeform entry */
int max_digits; /* max. number of allowed digits allowed*/
int max_tries;