add option for a custom cert in connectivity-netsocket-tests-tests-netsocket-tls

pull/13518/head
Gregor Mayramhof 2020-09-01 09:18:13 +02:00
parent 642d1ecc99
commit 864308e020
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,9 @@
#include "tls_tests.h"
#if defined(MBED_CONF_APP_ECHO_SERVER_USE_CUSTOM_CERT) && MBED_CONF_APP_ECHO_SERVER_USE_CUSTOM_CERT
#include "custom_cert.h"
#else
const char *tls_global::cert = \
"-----BEGIN CERTIFICATE-----\n"
"MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/\n"
@ -45,3 +48,4 @@ const char *tls_global::cert = \
"PfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6\n"
"KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==\n"
"-----END CERTIFICATE-----\n";
#endif //#if defined(MBED_CONF_APP_ECHO_SERVER_USE_CUSTOM_CERT) && MBED_CONF_APP_ECHO_SERVER_USE_CUSTOM_CERT