From 92964c58895a4f4d8db2b86a7b23fd684db5d012 Mon Sep 17 00:00:00 2001 From: simpuid Date: Tue, 17 Mar 2020 02:18:57 +0530 Subject: [PATCH] Changed default for p_validate_certs to true. Fixes #37084 (cherry picked from commit 2584eb9c69e26bb1477c4251cebc3bcb5899f856) --- modules/mbedtls/packet_peer_mbed_dtls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mbedtls/packet_peer_mbed_dtls.h b/modules/mbedtls/packet_peer_mbed_dtls.h index 26c4543785e..b958fa3b95e 100755 --- a/modules/mbedtls/packet_peer_mbed_dtls.h +++ b/modules/mbedtls/packet_peer_mbed_dtls.h @@ -67,7 +67,7 @@ protected: public: virtual void poll(); virtual Error accept_peer(Ref p_base, Ref p_key, Ref p_cert = Ref(), Ref p_ca_chain = Ref(), Ref p_cookies = Ref()); - virtual Error connect_to_peer(Ref p_base, bool p_validate_certs = false, const String &p_for_hostname = String(), Ref p_ca_certs = Ref()); + virtual Error connect_to_peer(Ref p_base, bool p_validate_certs = true, const String &p_for_hostname = String(), Ref p_ca_certs = Ref()); virtual Status get_status() const; virtual void disconnect_from_peer();