Commit b99bf497 authored by jan.koester's avatar jan.koester
Browse files

test it

parent 75a63cdf
Loading
Loading
Loading
Loading
+1 −1
Changes for src/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ include_directories(

add_library(netplus SHARED ${netplussrc})

target_link_libraries(netplus PUBLIC mbed::crypto)
target_link_libraries(netplus PUBLIC mbed::crypto mbed::tls mbed::x509)

set_property(TARGET netplus PROPERTY VERSION ${Upstream_VERSION})
set_property(TARGET netplus PROPERTY SOVERSION ${LIBV})
+0 −5
Changes for src/linux/socket.cpp: 0 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -547,11 +547,6 @@ netplus::ssl::ssl(const char *addr,int port,int maxconnections,int sockopts,cons
        throw exception;
    }

    if( ( ret = mbedtls_x509_crt_parse(&_Cacert, cert,certlen) ) != 0 ){
        exception[NetException::Critical] << " failed\n  !  mbedtls_x509_crt_parse returned -0x" << -ret ;
        throw exception;
    }

    if( ( ret = mbedtls_x509_crt_parse(&_Cacert, key,keylen) ) != 0 ){
        exception[NetException::Critical] << " failed\n  !  mbedtls_x509_crt_parse returned -0x" << -ret ;
        throw exception;
+2 −0
Changes for src/socket.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -31,10 +31,12 @@

#include <string>

extern "C" {
    #include "mbedtls/net_sockets.h"
    #include "mbedtls/ssl.h"
    #include "mbedtls/ctr_drbg.h"
    #include "mbedtls/entropy.h"
}

#pragma once