Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
voms_utils.h
1 
2 #ifndef __VOMS_UTILS_H_
3 #define __VOMS_UTILS_H_
4 
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include <ctype.h>
9 #include <assert.h>
10 
11 #include <sys/stat.h>
12 #include <dirent.h>
13 
14 #include <openssl/x509.h>
15 #include <openssl/objects.h>
16 #include <openssl/asn1.h>
17 #include <openssl/pem.h>
18 
19 /*
20  * get_vomses()
21  *
22  * Returns the vomses line for specified path.
23  * Returns the pointer to vomses line if succeeded, NULL otherwise.
24  */
25 char **get_vomses(const char *path);
26 
27 /*
28  * has_voms_extension()
29  *
30  * Returns 1 if specified file has VOMS extension.
31  * Returns 0 if specified file has no VOMS extension.
32  * Returns -1 if error occurred.
33  */
34 int has_voms_extension(const char *certfilepath);
35 
36 
37 #endif
38