1 #ifndef __ARC_PROXYUTIL_H__
2 #define __ARC_PROXYUTIL_H__
13 #if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
26 bool Contact_VOMS_Server(
bool use_nssdb,
const std::list<std::string>& vomslist,
27 const std::list<std::string>& orderlist,
bool use_gsi_comm,
bool use_http_comm,
28 const std::string& voms_period, std::string vomsacseq);
30 bool Contact_MyProxy_Server();
32 bool Create_Proxy(
bool use_nssdb,
const std::string& proxy_policy,
34 const std::string& vomsacseq);
36 void Set_ProxyPath(
const std::string& proxypath) { proxy_path = proxypath; };
37 std::string Get_ProxyPath() {
return proxy_path; };
39 void Set_CertPath(
const std::string& certpath) { cert_path = certpath; };
40 std::string Get_CertPath() {
return cert_path; };
42 void Set_KeyPath(
const std::string& keypath) { key_path = keypath; };
43 std::string Get_KeyPath() {
return key_path; };
45 void Set_CACertDir(
const std::string& cadir) { ca_dir = cadir; };
46 std::string Get_CACertDir() {
return ca_dir; };
48 void Set_Keybits(
int bits) { keybits = bits; };
49 int Get_Keybits() {
return keybits; };
51 void Set_Digest(SHA_OPTION sha_opt) { sha = sha_opt; };
52 SHA_OPTION Get_Digest() {
return sha; };
54 void Set_VOMSDir(
const std::string& vomsdir) { voms_dir = vomsdir; };
55 std::string Get_VOMSDir() {
return voms_dir; };
57 void Set_VOMSESPath(
const std::string& vomsespath) { vomses_path = vomsespath; };
58 std::string Get_VOMSESPath() {
return vomses_path; };
60 void Set_NSSDBPath(
const std::string& nssdbpath) { nssdb_path = nssdbpath; };
61 std::string Get_NSSDBPath() {
return nssdb_path; };
64 std::string proxy_path;
65 std::string cert_path;
69 std::string vomses_path;
70 std::string nssdb_path;
75 std::string debug_level;