blob: b061444bed1f4ded413b742a328792672ce0f1e0 [file] [log] [blame]
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001// Copyright (C) 2010 David Sugar, Tycho Softworks.
2//
3// This file is part of GNU uCommon C++.
4//
5// GNU uCommon C++ is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published
7// by the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// GNU uCommon C++ is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with GNU uCommon C++. If not, see <http://www.gnu.org/licenses/>.
17
18#include <ucommon-config.h>
19#include <ucommon/ucommon.h>
20#include <ucommon/export.h>
21#include <ucommon/secure.h>
22#include <openssl/ssl.h>
23#include <openssl/evp.h>
24#include <openssl/rand.h>
25
26#ifdef _MSWINDOWS_
27#include <wincrypt.h>
28#endif
29
30#define NAMESPACE_LOCAL namespace __secure__ {
31#define LOCAL_NAMESPACE __secure__
32
33NAMESPACE_LOCAL
34using namespace UCOMMON_NAMESPACE;
35
36class __LOCAL context : public secure
37{
38public:
39 ~context();
40
41 SSL_CTX *ctx;
42};
43
44END_NAMESPACE
45
46using namespace UCOMMON_NAMESPACE;
47using namespace LOCAL_NAMESPACE;
48