mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Implemented server main loop and started with import command.
This commit is contained in:
parent
7166bd6a5d
commit
7c708298d2
8 changed files with 537 additions and 4 deletions
16
sm/gpgsm.h
16
sm/gpgsm.h
|
@ -23,6 +23,19 @@
|
|||
|
||||
#include "util.h"
|
||||
|
||||
/* Error numbers */
|
||||
enum {
|
||||
GPGSM_EOF = -1,
|
||||
GPGSM_No_Error = 0,
|
||||
GPGSM_General_Error = 1,
|
||||
GPGSM_Out_Of_Core = 2,
|
||||
GPGSM_Invalid_Value = 3,
|
||||
GPGSM_IO_Error = 4,
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
/* A large struct name "opt" to keep global flags */
|
||||
struct {
|
||||
unsigned int debug; /* debug flags (DBG_foo_VALUE) */
|
||||
|
@ -83,4 +96,7 @@ void gpgsm_exit (int rc);
|
|||
void gpgsm_server (void);
|
||||
|
||||
|
||||
/*-- import.c --*/
|
||||
int gpgsm_import (int in_fd);
|
||||
|
||||
#endif /*GPGSM_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue