CCF
Loading...
Searching...
No Matches
src
tls
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
7
namespace
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
}
ccf::tls::Context
Definition
context.h:17
ccf::tls::Context::ssl
ccf::crypto::OpenSSL::Unique_SSL ssl
Definition
context.h:20
ccf::tls::Context::Context
Context(bool client)
Definition
context.h:23
ccf::tls::Context::cfg
ccf::crypto::OpenSSL::Unique_SSL_CTX cfg
Definition
context.h:19
tls::Client
Definition
client.h:10
tls::Client::Client
Client(std::shared_ptr< Cert > cert_)
Definition
client.h:15
tls
Definition
key_exchange.h:18
context.h
Generated by
1.9.8