diff options
Diffstat (limited to 'g10/gpg.h')
-rw-r--r-- | g10/gpg.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -68,11 +68,20 @@ struct tofu_dbs_s; typedef struct tofu_dbs_s *tofu_dbs_t; +#if SIZEOF_UNSIGNED_LONG == 8 +# define SERVER_CONTROL_MAGIC 0x53616c696e676572 +#else +# define SERVER_CONTROL_MAGIC 0x53616c69 +#endif + /* 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 { + /* Always has the value SERVER_CONTROL_MAGIC. */ + unsigned long magic; + /* Local data for server.c */ struct server_local_s *server_local; |