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

Public Member Functions

 StackOfX509 ()
 
 ~StackOfX509 ()
 
 STACK_OF (X509) *certs() const
 
 operator bool () const
 
bool push (const Certificate &certificate)
 

Private Member Functions

 StackOfX509 (const StackOfX509 &)
 
 STACK_OF (X509) *certs_
 

Detailed Description

Definition at line 95 of file SignedDocument.cpp.

Constructor & Destructor Documentation

◆ StackOfX509() [1/2]

OpenDDS::Security::SSL::StackOfX509::StackOfX509 ( )
inline

Definition at line 97 of file SignedDocument.cpp.

98  : certs_(sk_X509_new_null())
99  {}

◆ ~StackOfX509()

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

Definition at line 101 of file SignedDocument.cpp.

102  {
103  if (certs_) {
104  sk_X509_free(certs_);
105  }
106  }

◆ StackOfX509() [2/2]

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

Member Function Documentation

◆ operator bool()

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

Definition at line 109 of file SignedDocument.cpp.

109 {return certs_;}

◆ push()

bool OpenDDS::Security::SSL::StackOfX509::push ( const Certificate certificate)
inline

Definition at line 111 of file SignedDocument.cpp.

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

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

112  {
113  if (sk_X509_push(certs_, certificate.x509()) != 1) {
114  OPENDDS_SSL_LOG_ERR("sk_X509_push failed");
115  return false;
116  }
117 
118  return true;
119  }
#define OPENDDS_SSL_LOG_ERR(MSG)
Definition: Err.h:12

◆ STACK_OF() [1/2]

OpenDDS::Security::SSL::StackOfX509::STACK_OF ( X509  ) const
inline

Definition at line 108 of file SignedDocument.cpp.

108 { return certs_; }

◆ STACK_OF() [2/2]

OpenDDS::Security::SSL::StackOfX509::STACK_OF ( X509  )
private

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