Added windows support. Updated build system.

CMake build system builds as a library, not an executable now.

Windows is now supported and should work fine.
This commit is contained in:
Cloaked9000
2016-12-19 12:10:39 +00:00
parent 9479029c87
commit 2de9540819
27 changed files with 141 additions and 63 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
// Created by fred on 12/12/16.
//
#include "SSLSocket.h"
#include "frnetlib/SSLSocket.h"
#include <memory>
#ifdef SSL_ENABLED
@@ -20,13 +20,13 @@ namespace fr
SSLSocket::~SSLSocket() noexcept
{
//Close connection if active
close();
close_socket();
//Cleanup mbedsql stuff
mbedtls_ssl_config_free(&conf);
}
void SSLSocket::close()
void SSLSocket::close_socket()
{
if(is_connected)
{