blob: 8a8e00990c9d4dc3d457c8b80d8d5a1eafa8e654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* Copyright (c) 2012 Tobias Markmann
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#pragma once
#include <Swiften/TLS/CertificateFactory.h>
#include <Swiften/TLS/SecureTransport/SecureTransportCertificate.h>
namespace Swift {
class SecureTransportCertificateFactory : public CertificateFactory {
public:
virtual Certificate::ref createCertificateFromDER(const ByteArray& der) {
return Certificate::ref(new SecureTransportCertificate(der));
}
};
}
|