Rev

Rev 3349 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | Bug Tracker

Rev 3349 Rev 3350
Line 20... Line 20...
20
20
21
class OCTETSTRING; //! TITAN forward declaration
21
class OCTETSTRING; //! TITAN forward declaration
22
class INTEGER; //! TITAN forward declaration
22
class INTEGER; //! TITAN forward declaration
23
class CHARSTRING; //! TITAN forward declaration
23
class CHARSTRING; //! TITAN forward declaration
24
24
25
/*struct security_cache_comp {
25
struct security_cache_comp {
26
  bool operator()(const OCTETSTRING& p_lhs, const OCTETSTRING& p_rhs) const;
26
  bool operator()(const OCTETSTRING& p_lhs, const OCTETSTRING& p_rhs) const;
27
  };*/
27
};
28
28
29
/*!
29
/*!
30
 * \class security_cache
30
 * \class security_cache
31
 * \brief This class provides security record description for in memory security database. In memory mens there is no disk load/save mechanism
31
 * \brief This class provides security record description for in memory security database. In memory mens there is no disk load/save mechanism
32
 */
32
 */
Line 34... Line 34...
34
  static bool fill_vector(OCTETSTRING& p_vector, const OCTETSTRING& p_org);
34
  static bool fill_vector(OCTETSTRING& p_vector, const OCTETSTRING& p_org);
35
35
36
protected: /*! \protectedsection */
36
protected: /*! \protectedsection */
37
  // TODO Enforce with const security_cache_record, and const std::string
37
  // TODO Enforce with const security_cache_record, and const std::string
38
  std::map<std::string, std::unique_ptr<security_db_record> > _certificates; //! List of the certificates indexed by the certificate identifier
38
  std::map<std::string, std::unique_ptr<security_db_record> > _certificates; //! List of the certificates indexed by the certificate identifier
39
  //std::map<OCTETSTRING, std::string, security_cache_comp> _hashed_id8s; //! List of the certificates indexed by the HashedId8
39
  std::map<OCTETSTRING, std::string, security_cache_comp> _hashed_id8s; //! List of the certificates indexed by the HashedId8
40
  std::map<std::vector<unsigned char>, std::string> _hashed_id8s; //! List of the certificates indexed by the HashedId8
40
  //std::map<std::vector<unsigned char>, std::string> _hashed_id8s; //! List of the certificates indexed by the HashedId8
41
  
41
  
42
public: /*! \publicsection */
42
public: /*! \publicsection */
43
  /*!
43
  /*!
44
   * \brief Default ctor
44
   * \brief Default ctor
45
   */
45
   */