]> andersk Git - moira.git/blob - util/gdss/include/gdss.h
initial import of gdss from the Athena source tree
[moira.git] / util / gdss / include / gdss.h
1 /*
2  * Include file for GDSS The Generic Digital Signature Service.
3  *
4  */
5 #ifdef SOLARIS
6 #include <string.h>
7 #endif
8
9 /* Structures Needed */
10
11 typedef struct {
12         int     SigInfoVersion;
13         char    pname[ANAME_SZ];
14         char    pinst[INST_SZ];
15         char    prealm[REALM_SZ];
16         unsigned int    timestamp;
17         unsigned char *rawsig;  /* Raw Signature Bytes */
18 } SigInfo;
19
20 /* GDSS Errors */
21
22 #define GDSS_SUCCESS    0       /* No error */
23 #define GDSS_E_BADSIG   -1      /* Signature failed to verify */
24 #define GDSS_E_NOPUBKEY -2      /* Couldn't find public key file */
25 #define GDSS_E_KRBFAIL  -3      /* Generic Kerberos error during sign */
26 #define GDSS_E_NOSOCKET -4      /* socket() call failed during sign */
27 #define GDSS_E_NOCONNECT -5     /* connect() call failed during sign */
28 #define GDSS_E_TIMEDOUT -6      /* timed out contacting gdss sign server */
29 #define GDSS_E_PADTOOMANY -7    /* Padding required to much space */
30 #define GDSS_E_ALLOC    -8      /* malloc() failed to allocate memory */
31 #define GDSS_E_BVERSION -9      /* Bad version ID in signature */
32 #define GDSS_E_BADINPUT -10     /* Bad input value to Recompose */
33
34 /* GDSS Constants */
35
36 #define GDSS_PAD        10      /* Maximum number of nulls to pad */
37 #define GDSS_ESCAPE     0x20    /* Escape character for padding */
38 #define GDSS_NULL       0x21    /* Psuedo Null character */
This page took 0.072946 seconds and 5 git commands to generate.