Commit 1825fc79 authored by jan.koester's avatar jan.koester
Browse files

test

parent b99bf497
Loading
Loading
Loading
Loading
+5 −0
Changes for src/linux/socket.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -552,6 +552,11 @@ 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;
    }

    mbedtls_ssl_conf_ca_chain( &_SSLConf, &_Cacert, NULL );

    memset(_Addr,0,255);