summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-03-16 23:50:43 +0100
committerGitHub <noreply@github.com>2020-03-16 23:50:43 +0100
commitc5d76139dc9c5721e09e0e782bed5ccf1789554b (patch)
tree209f116b9ecf0e7fb61b59bf98ae02660ac021c9
parent56175bb6fad3bc9b494fbac89f5874fc1fb70652 (diff)
parent2584eb9c69e26bb1477c4251cebc3bcb5899f856 (diff)
Merge pull request #37101 from simpuid/p_validate_certs
Fix PacketPeerMbedDTLS p_validate_certs default.
-rwxr-xr-xmodules/mbedtls/packet_peer_mbed_dtls.h2
1 files changed, 1 insertions, 1 deletions
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<PacketPeerUDP> p_base, Ref<CryptoKey> p_key, Ref<X509Certificate> p_cert = Ref<X509Certificate>(), Ref<X509Certificate> p_ca_chain = Ref<X509Certificate>(), Ref<CookieContextMbedTLS> p_cookies = Ref<CookieContextMbedTLS>());
- virtual Error connect_to_peer(Ref<PacketPeerUDP> p_base, bool p_validate_certs = false, const String &p_for_hostname = String(), Ref<X509Certificate> p_ca_certs = Ref<X509Certificate>());
+ virtual Error connect_to_peer(Ref<PacketPeerUDP> p_base, bool p_validate_certs = true, const String &p_for_hostname = String(), Ref<X509Certificate> p_ca_certs = Ref<X509Certificate>());
virtual Status get_status() const;
virtual void disconnect_from_peer();