summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/TLS/OpenSSL/OpenSSLCertificate.h')
-rw-r--r--Swiften/TLS/OpenSSL/OpenSSLCertificate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLCertificate.h b/Swiften/TLS/OpenSSL/OpenSSLCertificate.h
index 4708120..fe2cddf 100644
--- a/Swiften/TLS/OpenSSL/OpenSSLCertificate.h
+++ b/Swiften/TLS/OpenSSL/OpenSSLCertificate.h
@@ -16,6 +16,7 @@ namespace Swift {
class OpenSSLCertificate : public Certificate {
public:
OpenSSLCertificate(boost::shared_ptr<X509>);
+ OpenSSLCertificate(const ByteArray& der);
String getCommonName() const {
return commonName;
@@ -33,7 +34,11 @@ namespace Swift {
return xmppAddresses;
}
+ ByteArray toDER() const;
+
private:
+ void parse();
+
void addSRVName(const String& name) {
srvNames.push_back(name);
}