mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Started to code a --server mode.
It is far from being ready!
This commit is contained in:
parent
0ed45ac1b3
commit
12ca74c836
11 changed files with 827 additions and 33 deletions
35
g10/gpg.h
35
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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue