CCF
Loading...
Searching...
No Matches
client.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include "context.h"
6
7namespace tls
8{
9 class Client : public ccf::tls::Context
10 {
11 private:
12 std::shared_ptr<Cert> cert;
13
14 public:
15 Client(std::shared_ptr<Cert> cert_) : Context(true), cert(cert_)
16 {
17 cert->use(ssl, cfg);
18 }
19 };
20}
Definition context.h:17
ccf::crypto::OpenSSL::Unique_SSL ssl
Definition context.h:20
Context(bool client)
Definition context.h:23
ccf::crypto::OpenSSL::Unique_SSL_CTX cfg
Definition context.h:19
Definition client.h:10
Client(std::shared_ptr< Cert > cert_)
Definition client.h:15
Definition key_exchange.h:18