Logo Search packages:      
Sourcecode: pathfinder version File versions  Download package


#include <map>
#include <vector>
#include <wvfileutils.h>
#include <wvlogrcv.h>
#include <wvtest.h>
#include <wvx509.h>
#include <wvx509store.h>

#include "testdefuns.t.h"
#include "pathfinder.h"
#include "wvx509policytree.h" // for ANY_POLICY_OID

class Tester


    void add_trusted_cert(WvStringParm certname);
    void add_trusted_cert(boost::shared_ptr<WvX509> &_cert);
    void add_untrusted_cert(WvStringParm certname);
    void add_untrusted_cert(boost::shared_ptr<WvX509> &_cert);
    void add_intermediate_cert(WvStringParm certname);
    void add_crl(WvStringParm certname, WvStringParm crlname);
    void add_crl(boost::shared_ptr<WvX509> &_cert, 
                 boost::shared_ptr<WvCRL> &_crl);
    bool validate();
    bool validate(WvStringParm initial_policy_oids, 
                  uint32_t flags = 0);
    bool _validate(WvStringParm initial_policy_set_tcl, uint32_t flags, 
                   WvX509Path &path);
    void path_found_cb(WvX509 *_cert, WvX509Path *_path, WvError err, void *);

    boost::shared_ptr<WvX509Store> trusted_store; 
    boost::shared_ptr<WvX509Store> intermediate_store; 
    WvX509Path path;

    // copy-pasted from wvx509path
    typedef std::multimap< std::string, boost::shared_ptr<WvCRL> > CRLMap;
    CRLMap crl_map;
    typedef std::pair< std::string, boost::shared_ptr<WvCRL> > CRLPair;

    bool validated;
    WvLog log;

// utility method to strip ski/aki info from certificate, useful for tests 
// where we want to make sure that path discovery and validation works
// without them
void strip_ski_aki(WvX509 &cert);

#endif // __TESTMETHODS_H

Generated by  Doxygen 1.6.0   Back to index