summaryrefslogtreecommitdiffstats
blob: af45a3394149998b5fa5dc1b45896171ff253dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2010-2018 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <Swiften/TLS/CertificateFactory.h>
#include <Swiften/TLS/OpenSSL/OpenSSLCertificate.h>

namespace Swift {
    class OpenSSLCertificateFactory : public CertificateFactory {
        public:
            OpenSSLCertificateFactory();
            virtual ~OpenSSLCertificateFactory() override final;

            virtual Certificate* createCertificateFromDER(const ByteArray& der) override final;
            virtual std::vector<Certificate::ref> createCertificateChain(const ByteArray& data) override final;
    };
}