52 #include <openssl/x509.h> 53 #include <openssl/bio.h> 54 #include <sys/types.h> 55 #include "newformat.h" 134 struct vomsr *translate();
135 friend int TranslateVOMS(
struct vomsdatar *vd, std::vector<voms>&v,
int *error);
205 Initializer(Initializer &);
209 static Initializer init;
210 std::string ca_cert_dir;
211 std::string voms_cert_dir;
213 std::string ordering;
214 std::vector<contactdata> servers;
215 std::vector<std::string> targets;
223 std::string cert_dir =
"");
251 std::vector<contactdata>
FindByAlias(std::string alias);
259 std::vector<contactdata>
FindByVO(std::string vo);
267 void Order(std::string att);
286 bool Retrieve(X509 *cert, STACK_OF(X509) *chain,
296 bool Contact(std::string hostname,
int port,
297 std::string servsubject,
298 std::string command);
308 bool Contact(std::string hostname,
int port,
309 std::string servsubject,
323 bool ContactRaw(std::string hostname,
int port,
324 std::string servsubject,
336 bool ContactRaw(std::string hostname,
int port,
337 std::string servsubject,
360 bool Import(std::string buffer);
391 bool loadfile(std::string, uid_t uid, gid_t gid);
392 bool loadfile0(std::string, uid_t uid, gid_t gid);
393 bool verifydata(std::string &message, std::string subject, std::string ca,
394 X509 *holder,
voms &v);
395 bool check_cert(X509 *cert);
396 bool retrieve(X509 *cert, STACK_OF(X509) *chain,
recurse_type how,
397 AC_SEQ **listnew, std::string &subject, std::string &ca,
401 std::string serverrors;
402 std::string errmessage;
406 bool check_sig_ac(X509 *,
void *);
408 bool contact(
const std::string&,
int,
const std::string&,
409 const std::string&, std::string&, std::string&,
410 std::string&,
int timeout);
411 bool verifydata(AC *ac,
const std::string& subject,
const std::string& ca,
412 X509 *holder,
voms &v);
413 bool evaluate(AC_SEQ *,
const std::string&,
const std::string&, X509*);
454 bool check_cert(STACK_OF(X509) *);
455 X509 *check_from_certs(AC *ac,
const std::string& voname);
456 X509 *check_from_file(AC *, std::ifstream&,
const std::string &vo,
const std::string &filename);
471 time_t verificationtime;
472 bool verifyac(X509 *, X509 *, AC*, time_t,
voms&);
476 bool ContactRESTRaw(
const std::string&,
int,
const std::string&, std::string&,
int,
int);
479 bool InterpretOutput(
const std::string&, std::string&);
void Order(std::string att)
bool Export(std::string &data)
int getVOMSMajorVersionNumber(void)
int getVOMSMinorVersionNumber(void)
bool RetrieveFromProxy(recurse_type how)
std::vector< std::string > GetTargets()
std::vector< contactdata > FindByAlias(std::string alias)
std::string ServerErrors(void)
static void SkipSslInitialization()
int getVOMSPatchVersionNumber(void)
void AddTarget(std::string target)
std::vector< std::string > ListTargets(void)
std::vector< attributelist > & GetAttributes()
std::string ErrorMessage(void)
void SetVerificationTime(time_t)
bool ContactRESTRaw(const std::string &, int, const std::string &, std::string &, int, int)
bool ContactRaw(std::string hostname, int port, std::string servsubject, std::string command, std::string &raw, int &version)
vomsdata(std::string voms_dir="", std::string cert_dir="")
friend int TranslateVOMS(struct vomsdatar *vd, std::vector< voms > &v, int *error)
std::vector< std::string > fqan
voms & operator=(const voms &)
std::vector< contactdata > FindByVO(std::string vo)
bool LoadCredentials(X509 *, EVP_PKEY *, STACK_OF(X509) *)
bool Import(std::string buffer)
bool RetrieveFromCred(gss_cred_id_t credential, recurse_type how)
bool(* check_sig)(X509 *, void *, verror_type &)
void SetLifetime(int lifetime)
bool LoadSystemContacts(std::string dir="")
void SetRetryCount(int retryCount)
bool Contact(std::string hostname, int port, std::string servsubject, std::string command)
bool Retrieve(X509 *cert, STACK_OF(X509) *chain, recurse_type how=RECURSE_CHAIN)
bool LoadUserContacts(std::string dir="")
std::vector< attribute > attributes
User's characteristics: can be repeated. Generic name-value attribute : can be repeated.
bool RetrieveFromCtx(gss_ctx_id_t context, recurse_type how)
data_type
The type of data returned.
void SetVerificationType(verify_type how)