summaryrefslogtreecommitdiffstats
path: root/g10/gpg.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-12-21 20:40:00 +0100
committerWerner Koch <wk@gnupg.org>2006-12-21 20:40:00 +0100
commit12ca74c836ccacf79f2f193afac334377e41995e (patch)
tree3a70382f306fe0602b8c9acbd9e995336dc1f097 /g10/gpg.h
parentThe keypad is now also used for OpenPGP signing keys. (diff)
downloadgnupg2-12ca74c836ccacf79f2f193afac334377e41995e.tar.xz
gnupg2-12ca74c836ccacf79f2f193afac334377e41995e.zip
Started to code a --server mode.
It is far from being ready!
Diffstat (limited to 'g10/gpg.h')
-rw-r--r--g10/gpg.h35
1 files changed, 33 insertions, 2 deletions
diff --git a/g10/gpg.h b/g10/gpg.h
index 100a8e349..9e0c9607e 100644
--- a/g10/gpg.h
+++ b/g10/gpg.h
@@ -43,12 +43,44 @@
#define MAX_FINGERPRINT_LEN 20
-/* Forward declarations. */
+/*
+ Forward declarations.
+ */
+
+/* Object used to keep state locally to server.c . */
+struct server_local_s;
+
+/* Object used to describe a keyblok node. */
typedef struct kbnode_struct *KBNODE;
+/* Object used for looking ob keys. */
typedef struct keydb_search_desc KEYDB_SEARCH_DESC;
+/* Session control object. This object is passed to most functions to
+ convey the status of a session. Note that the defaults are set by
+ gpg_init_default_ctrl(). */
+struct server_control_s
+{
+ struct server_local_s *server_local;
+};
+typedef struct server_control_s *ctrl_t;
+
+
+
+
+/*-- server.c --*/
+int gpg_server (ctrl_t);
+
+
+
+
+
+
+/*
+ Compatibility stuff to be faded out over time.
+ */
+
/* Simple wrappers. */
#define g10_errstr(a) gpg_strerror ((a))
@@ -98,5 +130,4 @@ typedef struct keydb_search_desc KEYDB_SEARCH_DESC;
#define G10ERR_WRONG_SECKEY GPG_ERR_WRONG_SECKEY
-
#endif /*GNUPG_G10_GPG_H*/