25#ifndef __TLS_KEY_HPP__
26#define __TLS_KEY_HPP__
99 explicit operator bool ()
const;
manage private and public keys.
Definition tlskey.hpp:38
TlsKey()=default
default constructor.
TlsKey & operator=(const TlsKey &other)=delete
copy assignment operator.
~TlsKey()=default
destroy the signature stream buffer instance.
Handle handle() const
get a pointer to the native key handle.
Definition tlskey.cpp:84
Type
key type.
Definition tlskey.hpp:46
@ Private
Definition tlskey.hpp:48
@ Public
Definition tlskey.hpp:47
EVP_PKEY * Handle
Definition tlskey.hpp:40
int length()
return the length in bits of the key.
Definition tlskey.cpp:93
void clear()
clear the key.
Definition tlskey.cpp:122
Type type() const
return the key type.
Definition tlskey.cpp:113
void swap(TlsKey &other)
swap this key with other.
Definition tlskey.cpp:102
TlsKey(const TlsKey &other)=delete
copy constructor.
Definition acceptor.hpp:32
std::unique_ptr< EVP_PKEY, EvpPkeyDelete > EvpPkeyPtr
Definition openssl.hpp:88
std::string path
Definition unixstreamacceptor_test.cpp:34