| 1 | // |
| 2 | // Session.cpp |
| 3 | // |
| 4 | // Library: NetSSL_OpenSSL |
| 5 | // Package: SSLCore |
| 6 | // Module: Session |
| 7 | // |
| 8 | // Copyright (c) 2010, Applied Informatics Software Engineering GmbH. |
| 9 | // and Contributors. |
| 10 | // |
| 11 | // SPDX-License-Identifier: BSL-1.0 |
| 12 | // |
| 13 | |
| 14 | |
| 15 | #if defined(__APPLE__) |
| 16 | // Some OpenSSL functions are deprecated in OS X 10.7 |
| 17 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
| 18 | #endif |
| 19 | |
| 20 | |
| 21 | #include "Poco/Net/Session.h" |
| 22 | |
| 23 | |
| 24 | namespace Poco { |
| 25 | namespace Net { |
| 26 | |
| 27 | |
| 28 | Session::Session(SSL_SESSION* pSession): |
| 29 | _pSession(pSession) |
| 30 | { |
| 31 | } |
| 32 | |
| 33 | |
| 34 | Session::~Session() |
| 35 | { |
| 36 | SSL_SESSION_free(_pSession); |
| 37 | } |
| 38 | |
| 39 | |
| 40 | } } // namespace Poco::Net |
| 41 | |