29 #ifndef PT_SSL_CERTIFICATESTORE_H
30 #define PT_SSL_CERTIFICATESTORE_H
32 #include <Pt/Ssl/Api.h>
33 #include <Pt/Ssl/Certificate.h>
64 void loadPkcs12(
const char* data, std::size_t len,
const char* passwd);
68 void loadPem(
const char* data, std::size_t len,
const char* passwd);
98 class CertificateStoreImpl* _impl;
140 #endif // PT_SSL_CERTIFICATESTOREIMPL_H
Core module.
Definition: Allocator.h:33
A store for X509 certificates.
Definition: CertificateStore.h:45
ConstIterator(const ConstIterator &other)
Copy constructor.
ConstIterator & operator=(const ConstIterator &other)
Assignment operator.
ConstIterator end() const
Returns an iterator to the end of the certificates.
ConstIterator begin() const
Returns an iterator to the begin of the certificates.
void loadPem(const char *data, std::size_t len, const char *passwd)
Loads PEM data from memory.
bool operator!=(const ConstIterator &other) const
Comparison operator.
const Certificate * operator->() const
Access value.
const Certificate * findCertificate(const std::string &subject)
Finds a certificate by subject.
ConstIterator & operator++()
Advance iterator position.
void loadPkcs12(std::istream &is, const char *passwd)
Loads PKCS12 data from a stream.
~CertificateStore()
Destructor.
Iterator to a certificate in the store.
Definition: CertificateStore.h:104
X509 certificate.
Definition: Certificate.h:45
const Certificate & operator*() const
Access value.
void loadPkcs12(const char *data, std::size_t len, const char *passwd)
Loads PKCS12 data from memory.
bool operator==(const ConstIterator &other) const
Comparison operator.
std::size_t size() const
Returns the number of certificates in the store.
ConstIterator()
Default constructor.
const Certificate & getCertificate(const std::string &subject)
Gets a certificate by subject.
CertificateStore()
Constructor.