Grid Community Toolkit  6.2.1629922860 (tag: v6.2.20210826)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
myproxy_constants.h
1 /*
2  * myproxy_constants.h
3  *
4  * constant declarations
5  */
6 #ifndef __MYPROXY_CONSTANTS_H
7 #define __MYPROXY_CONSTANTS_H
8 
9 /* Maximum pass phrase length */
10 #define MAX_PASS_LEN 1024 /* Arbitrary */
11 
12 /* Define default myproxy-server -- should probably be put in config file */
13 #define MYPROXY_SERVER_PORT 7512
14 
15 /* specify maximum delegation lifetime allowed on myproxy-server */
16 #define MYPROXY_DEFAULT_HOURS 168 /* 1 week */
17 #define MYPROXY_DEFAULT_DELEG_HOURS 12
18 
19 #define MYPROXY_DEFAULT_KEYBITS 2048 /* NIST SP 800-57 */
20 
21 #define MYPROXY_DEFAULT_TIMEOUT 120
22 
23 #define MYPROXY_DEFAULT_CLOCK_SKEW 300 /* 5 minutes */
24 
25 #define MYPROXY_CREDS_MAX_NAMELEN 80 /* longer names are
26  hashed when used in
27  filenames */
28 
29 /* myproxy client protocol information */
30 /* beware no string below may be a suffix of another */
31 #define MYPROXY_VERSION_STRING "VERSION="
32 #define MYPROXY_COMMAND_STRING "COMMAND="
33 #define MYPROXY_USERNAME_STRING "USERNAME="
34 #define MYPROXY_PASSPHRASE_STRING "PASSPHRASE="
35 #define MYPROXY_NEW_PASSPHRASE_STRING "NEW_PHRASE="
36 #define MYPROXY_LIFETIME_STRING "LIFETIME="
37 #define MYPROXY_RETRIEVER_STRING "RETRIEVER="
38 #define MYPROXY_TRUSTED_RETRIEVER_STRING "RETRIEVER_TRUSTED="
39 #define MYPROXY_KEY_RETRIEVER_STRING "KEYRETRIEVERS="
40 #define MYPROXY_RENEWER_STRING "RENEWER="
41 #define MYPROXY_CRED_NAME_STRING "NAME="
42 #define MYPROXY_CRED_DESC_STRING "DESC="
43 #define MYPROXY_AUTHORIZATION_STRING "AUTHORIZATION_DATA="
44 #define MYPROXY_ADDITIONAL_CREDS_STRING "ADDL_CREDS="
45 #define MYPROXY_LOCKMSG_STRING "LOCKMSG="
46 #define MYPROXY_CRED_PREFIX "CRED"
47 #define MYPROXY_START_TIME_STRING "START_TIME="
48 #define MYPROXY_END_TIME_STRING "END_TIME="
49 #define MYPROXY_CRED_OWNER_STRING "OWNER="
50 #define MYPROXY_TRUSTED_CERTS_STRING "TRUSTED_CERTS="
51 #define MYPROXY_FILEDATA_PREFIX "FILEDATA"
52 #define MYPROXY_VONAME_STRING "VONAME="
53 #define MYPROXY_VOMSES_STRING "VOMSES="
54 
55 /* myproxy server protocol information */
56 #define MYPROXY_RESPONSE_TYPE_STRING "RESPONSE="
57 #define MYPROXY_RESPONSE_SIZE_STRING "RESPONSE_SIZE="
58 #define MYPROXY_RESPONSE_STRING "RESPONSE_STR="
59 #define MYPROXY_ERROR_STRING "ERROR="
60 
61 #ifndef INET6_ADDRSTRLEN
62 #define INET6_ADDRSTRLEN 46
63 #endif
64 
65 #endif /* __MYPROXY_CONSTANTS_H */