29#ifndef PT_SSL_CERTIFICATESTORE_H
30#define PT_SSL_CERTIFICATESTORE_H
32#include <Pt/Ssl/Api.h>
33#include <Pt/Ssl/Certificate.h>
86 void loadPkcs12(
const char* data, std::size_t len,
const char* passwd);
92 void loadPem(
const char* data, std::size_t len,
const char* passwd);
119 class CertificateStoreImpl* _impl;
Iterator to a certificate in the store.
Definition CertificateStore.h:125
bool operator==(const ConstIterator &other) const
Comparison operator.
const Certificate & operator*() const
Access value.
bool operator!=(const ConstIterator &other) const
Comparison operator.
const Certificate * operator->() const
Access value.
ConstIterator & operator++()
Advance iterator position.
ConstIterator & operator=(const ConstIterator &other)
Assignment operator.
ConstIterator()
Default constructor.
ConstIterator(const ConstIterator &other)
Copy constructor.
CertificateStore()
Creates an empty certificate store.
void loadPem(const char *data, std::size_t len, const char *passwd)
Loads PEM certificates and keys from memory.
const Certificate & getCertificate(const std::string &subject)
Returns a certificate whose subject contains subject.
ConstIterator end() const
Returns an iterator to one past the last certificate.
void loadPkcs12(std::istream &is, const char *passwd)
Loads PKCS12 certificates and keys from is.
ConstIterator begin() const
Returns an iterator to the first certificate.
void loadPkcs12(const char *data, std::size_t len, const char *passwd)
Loads PKCS12 certificates and keys from memory.
std::size_t size() const
Returns the number of certificates in the store.
~CertificateStore()
Destroys the store and its certificates.
const Certificate * findCertificate(const std::string &subject)
Returns a certificate whose subject contains subject.
X509 certificate.
Definition Certificate.h:56
SSL/TLS streams, certificates and contexts.
Definition Client.h:50
Core module.
Definition Allocator.h:33