From c3bcc8f4454ee7f2503c2b60ee240706bcd4e3ce Mon Sep 17 00:00:00 2001 From: rexy712 Date: Fri, 25 Jun 2021 10:54:49 -0700 Subject: [PATCH] Fix README's SSL example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71e9301..3b2a517 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,10 @@ Here we create a new fr::TcpListener, which is used to listen for incoming conne #include #include -std::shared_ptr ssl_context(new fr::SSLContext("certs.crt")); //Creates a new 'SSL' context. This stores certificates and is shared between SSL enabled objects. +std::shared_ptr ssl_context(new fr::SSLContext()); //Creates a new 'SSL' context. This stores certificates and is shared between SSL enabled objects. ssl_conext->load_ca_certs_from_file(filepath); //This, or 'load_ca_certs_from_memory' should be called on the context, to load your SSL certificates. -fr::SSLListener listener(ssl_context, "crt_path", "pem_path", "private_key_path"); //This is the SSL equivilent to fr::TcpListener +fr::SSLListener listener(ssl_context, "pem_path", "private_key_path"); //This is the SSL equivilent to fr::TcpListener fr::SSLSocket socket(ssl_context); //This is the SSL equivilent to fr::TcpSocket