mirror of
https://github.com/cesanta/mongoose.git
synced 2025-06-10 19:33:06 +08:00
Update mg_set_ssl.md
This commit is contained in:
parent
c5b8e55e12
commit
f30c7b75d0
@ -7,15 +7,15 @@ signature: |
|
|||||||
const char *ca_cert);
|
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.
|
Enables SSL for a given connection.
|
||||||
`cert` is a server certificate file name for a listening connection,
|
`cert` is a server certificate file name for a listening connection
|
||||||
or a client certificate file name for an outgoing 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
|
must contain a certificate, concatenated with a private key, optionally
|
||||||
concatenated with DH parameters.
|
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.
|
required.
|
||||||
Return: NULL on success, or error message on error.
|
Return: NULL on success or error message on error.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user