SSLClient
v1.4.6
Add TLS 1.2 functionality to any network library.
SSLObj.h
Go to the documentation of this file.
1
/* Copyright 2019 OSU OPEnS Lab
2
*
3
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
4
* software and associated documentation files (the "Software"), to deal in the Software
5
* without restriction, including without limitation the rights to use, copy, modify,
6
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
* permit persons to whom the Software is furnished to do so, subject to the following
8
* conditions:
9
*
10
* The above copyright notice and this permission notice shall be included in all
11
* copies or substantial portions of the Software.
12
*
13
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
14
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
15
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
16
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
*/
20
27
#include <cstring>
28
#include "bearssl_pem.h"
29
30
#ifndef SSLObj_H_
31
#define SSLObj_H_
32
33
#undef min
34
#undef max
35
#include <vector>
36
47
namespace
SSLObj
{
60
const
std::vector<unsigned char>
make_vector_pem
(
const
char
* data,
const
size_t
len);
61
}
62
63
#endif
SSLObj
This namespace works with raw DER byte arrays for use later with TLS mutual auth.
Definition:
SSLObj.h:47
SSLObj::make_vector_pem
const std::vector< unsigned char > make_vector_pem(const char *data, const size_t len)
Convert a PEM buffer into a vector of raw DER bytes.
Definition:
SSLObj.cpp:22
src
SSLObj.h
Generated by
1.8.15