OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OpenDDS::Security::SSL::X509Store Class Reference

Public Member Functions

 X509Store ()
 
 ~X509Store ()
 
X509_STORE * store () const
 
 operator bool () const
 
bool add_cert (const Certificate &certificate)
 

Private Member Functions

 X509Store (const X509Store &)
 

Private Attributes

X509_STORE * store_
 

Detailed Description

Definition at line 127 of file SignedDocument.cpp.

Constructor & Destructor Documentation

◆ X509Store() [1/2]

OpenDDS::Security::SSL::X509Store::X509Store ( )
inline

Definition at line 129 of file SignedDocument.cpp.

References OPENDDS_SSL_LOG_ERR.

130  : store_(X509_STORE_new())
131  {
132  if (!store_) {
133  OPENDDS_SSL_LOG_ERR("X509_STORE_new failed");
134  }
135  }
#define OPENDDS_SSL_LOG_ERR(MSG)
Definition: Err.h:12

◆ ~X509Store()

OpenDDS::Security::SSL::X509Store::~X509Store ( )
inline

Definition at line 137 of file SignedDocument.cpp.

138  {
139  if (store_) {
140  X509_STORE_free(store_);
141  }
142  }

◆ X509Store() [2/2]

OpenDDS::Security::SSL::X509Store::X509Store ( const X509Store )
private

Member Function Documentation

◆ add_cert()

bool OpenDDS::Security::SSL::X509Store::add_cert ( const Certificate certificate)
inline

Definition at line 147 of file SignedDocument.cpp.

References OPENDDS_SSL_LOG_ERR, and OpenDDS::Security::SSL::Certificate::x509().

148  {
149  if (X509_STORE_add_cert(store_, certificate.x509()) != 1) {
150  OPENDDS_SSL_LOG_ERR("X509_STORE_add_cert failed");
151  return false;
152  }
153 
154  return true;
155  }
#define OPENDDS_SSL_LOG_ERR(MSG)
Definition: Err.h:12

◆ operator bool()

OpenDDS::Security::SSL::X509Store::operator bool ( ) const
inline

Definition at line 145 of file SignedDocument.cpp.

145 {return store_;}

◆ store()

X509_STORE* OpenDDS::Security::SSL::X509Store::store ( ) const
inline

Definition at line 144 of file SignedDocument.cpp.

Referenced by OpenDDS::Security::SSL::PKCS7Doc::verify().

144 { return store_; }

Member Data Documentation

◆ store_

X509_STORE* OpenDDS::Security::SSL::X509Store::store_
private

Definition at line 160 of file SignedDocument.cpp.


The documentation for this class was generated from the following file: