mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Fix mongoose docs generation
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
This commit is contained in:
1 parent
ab000c684a
commit
3eb4eb8074
166 files changed
+3125
No files matched your search
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: "mg_set_ssl()"
|
||||
decl_name: "mg_set_ssl"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
const char *mg_set_ssl(struct mg_connection *nc, const char *cert,
|
||||
const char *ca_cert);
|
||||
---
|
||||
|
||||
Note: This function is deprecated. Please, use SSL options in
|
||||
mg_connect_opt.
|
||||
|
||||
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.
|
||||
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
|
||||
required.
|
||||
Return: NULL on success or error message on error.
|
||||
|
||||
Reference in new issue
Block a user