2 * Include file for GDSS The Generic Digital Signature Service.
9 /* Structures Needed */
15 char prealm[REALM_SZ];
16 unsigned int timestamp;
17 unsigned char *rawsig; /* Raw Signature Bytes */
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 */
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 */