Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
myproxy_common.h
1 /*
2  * myproxy_common.h
3  *
4  * Internal header file that includes all headers needed for building
5  * MyProxy in one place to ease porting.
6  *
7  */
8 
9 #ifndef __MYPROXY_COMMON_H
10 #define __MYPROXY_COMMON_H
11 
12 #include <globus_common.h> /* need to start w/ this to avoid later trouble */
13 
14 #include <assert.h>
15 #include <ctype.h>
16 #include <dirent.h>
17 #include <errno.h>
18 #include <fcntl.h>
19 #include <limits.h>
20 #include <netdb.h>
21 #include <netinet/in.h> /* Might be needed before <arpa/inet.h> */
22 #include <arpa/inet.h>
23 #include <signal.h>
24 #include <stdarg.h>
25 #include <stdio.h>
26 #include <stdlib.h>
27 #include <string.h>
28 #include <syslog.h>
29 #include <sys/ioctl.h>
30 #include <sys/param.h>
31 #include <sys/socket.h>
32 #include <sys/stat.h>
33 #include <sys/time.h>
34 #include <sys/types.h>
35 #include <sys/wait.h>
36 #include <time.h>
37 #include <unistd.h>
38 #include <dlfcn.h>
39 
40 #if defined(HAVE_STDINT_H)
41 #include <stdint.h>
42 #else /* defined(HAVE_STDINT_H) */
43 #if !defined(SIZE_MAX)
44 #define SIZE_MAX ((size_t)-1)
45 #endif /* !defined(SIZE_MAX) */
46 #endif /* defined(HAVE_STDINT_H) */
47 
48 #if defined(HAVE_GETOPT_H)
49 #include <getopt.h>
50 #endif
51 
52 #if !defined(HAVE_SOCKLEN_T)
53 typedef int socklen_t;
54 #endif
55 
56 #include <globus_gss_assist.h>
58 #include <gssapi.h>
59 #include <openssl/bio.h>
60 #include <openssl/ui.h>
61 
62 #include "myproxy.h" /* public headers */
63 #include "myproxy_extensions.h"
64 #include "myproxy_popen.h"
65 #include "myproxy_ocsp.h"
66 #include "accept_credmap.h"
67 #include "certauth_extensions.h"
68 #include "certauth_resolveuser.h"
69 #include "gsi_socket.h"
70 #include "port_getopt.h"
71 #include "safe_id_range_list.h"
72 #include "safe_is_path_trusted.h"
73 #include "ssl_utils.h"
74 #include "string_funcs.h"
75 #include "vparse.h"
76 
77 #if defined(HAVE_LIBSASL2)
78 #include <sasl.h>
79 #include <saslutil.h>
80 #define SASL_BUFFER_SIZE 20480
81 #endif
82 
83 #if defined(HAVE_LIBKRB5)
84 #include <krb5.h>
85 #endif
86 
87 #if defined(HAVE_VOMS)
88 #include <voms_apic.h>
89 #include <newformat.h>
90 #include "vomsclient.h"
91 #endif
92 
93 #include "voms_utils.h"
94 
95 #if defined(HAVE_SECURITY_PAM_APPL_H)
96 # include <security/pam_appl.h>
97 #elif defined(HAVE_PAM_PAM_APPL_H)
98 # include <pam/pam_appl.h>
99 #endif
100 
101 #ifndef va_copy
102 #define va_copy(a,b) ((a) = (b))
103 #endif
104 
105 #if defined(HAVE_PIDFILE_DECL)
106 #include "libutil.h"
107 #else
108 struct pidfh;
109 struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr);
110 int pidfile_write(struct pidfh *pfh);
111 int pidfile_close(struct pidfh *pfh);
112 int pidfile_remove(struct pidfh *pfh);
113 #endif
114 
115 #endif /* __MYPROXY_COMMON_H */
GSS Assist Header.
Headers common to all of Globus.
Globus GSI System Config Library.