From 2584eb9c69e26bb1477c4251cebc3bcb5899f856 Mon Sep 17 00:00:00 2001 From: simpuid Date: Tue, 17 Mar 2020 02:18:57 +0530 Subject: Changed default for p_validate_certs to true. Fixes #37084 --- 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 26c4543785..b958fa3b95 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(); -- cgit v1.2.3