From f30c7b75d0e223ea47fc04ac4d591cbae2071320 Mon Sep 17 00:00:00 2001 From: Evelyn Date: Fri, 22 Jul 2016 14:52:31 +0100 Subject: [PATCH] Update mg_set_ssl.md --- docs/c-api/net.h/mg_set_ssl.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/c-api/net.h/mg_set_ssl.md b/docs/c-api/net.h/mg_set_ssl.md index d2b3b654..cc0a8575 100644 --- a/docs/c-api/net.h/mg_set_ssl.md +++ b/docs/c-api/net.h/mg_set_ssl.md @@ -7,15 +7,15 @@ signature: | const char *ca_cert); --- -Note: This function is deprecated, please use SSL options in mg_connect_opt. +Note: This function is deprecated. Please, use SSL options in mg_connect_opt. -Enable SSL for a given connection. -`cert` is a server certificate file name for a listening connection, +Enables SSL for a given connection. +`cert` is a server certificate file name for a listening connection or a client certificate file name for an outgoing connection. -Certificate files must be in PEM format. Server certificate file +The certificate files must be in PEM format. The server certificate file must contain a certificate, concatenated with a private key, optionally concatenated with DH parameters. -`ca_cert` is a CA certificate, or NULL if peer verification is not +`ca_cert` is a CA certificate or NULL if peer verification is not required. -Return: NULL on success, or error message on error. +Return: NULL on success or error message on error.