Debian Codegraph @

src/modules/copy/delegation/GRSTx509MakeProxyCert.h

raw
1 /*
2 Copyright (c) 2002-7, Andrew McNab, University of Manchester
3 All rights reserved.
4 Redistribution and use in source and binary forms, with or
5 without modification, are permitted provided that the following
6 conditions are met:
7 o Redistributions of source code must retain the above
8 copyright notice, this list of conditions and the following
9 disclaimer.
10 o Redistributions in binary form must reproduce the above
11 copyright notice, this list of conditions and the following
12 disclaimer in the documentation and/or other materials
13 provided with the distribution.
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
15 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
16 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
17 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
19 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 POSSIBILITY OF SUCH DAMAGE.
27 ---------------------------------------------------------------
28 For more information about GridSite: http://www.gridsite.org/
29 ---------------------------------------------------------------
30 */
31
32 #ifndef GRST_X509_MAKE_PROXY_CERT_HPP
33 #define GRST_X509_MAKE_PROXY_CERT_HPP
34
35 // Everything ok (= OpenSSL X509_V_OK)
36 #define GRST_RET_OK 0
37
38 // Failed for unspecified reason
39 #define GRST_RET_FAILED 1000
40
41 /** Extracted from Gridsite (prior to canl-c) to avoid unnecessary dependencies
42 */
43 int GRSTx509MakeProxyCert(char **proxychain, FILE *debugfp,
44 char *reqtxt, char *cert, char *key, int minutes);
45
46 #endif