47 #include <openssl/x509.h>
48 #include <openssl/bio.h>
49 #include <sys/types.h>
50 #include "newformat.h"
129 struct vomsr *translate();
130 friend int TranslateVOMS(
struct vomsdatar *vd, std::vector<voms>&v,
int *error);
200 Initializer(Initializer &);
204 static Initializer init;
205 std::string ca_cert_dir;
206 std::string voms_cert_dir;
208 std::string ordering;
209 std::vector<contactdata> servers;
210 std::vector<std::string> targets;
216 std::string cert_dir =
"");
244 std::vector<contactdata>
FindByAlias(std::string alias);
252 std::vector<contactdata>
FindByVO(std::string vo);
260 void Order(std::string att);
279 bool Retrieve(X509 *cert, STACK_OF(X509) *chain,
289 bool Contact(std::string hostname,
int port,
290 std::string servsubject,
291 std::string command);
301 bool Contact(std::string hostname,
int port,
302 std::string servsubject,
315 bool ContactRaw(std::string hostname,
int port,
316 std::string servsubject,
328 bool ContactRaw(std::string hostname,
int port,
329 std::string servsubject,
351 bool Import(std::string buffer);
382 bool loadfile(std::string, uid_t uid, gid_t gid);
383 bool loadfile0(std::string, uid_t uid, gid_t gid);
384 bool verifydata(std::string &message, std::string subject, std::string ca,
385 X509 *holder,
voms &v);
386 bool check_cert(X509 *cert);
387 bool retrieve(X509 *cert, STACK_OF(X509) *chain,
recurse_type how,
388 AC_SEQ **listnew, std::string &subject, std::string &ca,
392 std::string serverrors;
393 std::string errmessage;
397 bool check_sig_ac(X509 *,
void *);
399 bool contact(
const std::string&,
int,
const std::string&,
400 const std::string&, std::string&, std::string&,
401 std::string&,
int timeout);
402 bool verifydata(AC *ac,
const std::string& subject,
const std::string& ca,
403 X509 *holder,
voms &v);
404 bool evaluate(AC_SEQ *,
const std::string&,
const std::string&, X509*);
445 bool check_cert(STACK_OF(X509) *);
446 X509 *check_from_certs(AC *ac,
const std::string& voname);
447 X509 *check_from_file(AC *, std::ifstream&,
const std::string &vo,
const std::string &filename);
462 time_t verificationtime;
463 bool verifyac(X509 *, X509 *, AC*, time_t,
voms&);
467 bool ContactRESTRaw(
const std::string&,
int,
const std::string&, std::string&,
int,
int);
470 bool InterpretOutput(
const std::string&, std::string&);