mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Add ssl_cipher_suites to mg_{bind,connect}_opts
Optional specification of SSL/TLS cipher suites. PUBLISHED_FROM=e8968c6c7a92f10514d3ee575c2fb9be862e6cf8
This commit is contained in:
1 parent
cd9e179fcb
commit
67626d49c9
4 files changed
+119
-42
No files matched your search
@@ -9,15 +9,30 @@ signature: |
|
||||
const char **error_string; /* Placeholder for the error string */
|
||||
struct mg_iface *iface; /* Interface instance */
|
||||
#if MG_ENABLE_SSL
|
||||
/* SSL settings. */
|
||||
const char *ssl_cert; /* Server certificate to present to clients
|
||||
* Or client certificate to present to tunnel
|
||||
* dispatcher. */
|
||||
const char *ssl_key; /* Private key corresponding to the certificate.
|
||||
If ssl_cert is set but ssl_key is not, ssl_cert
|
||||
is used. */
|
||||
const char *ssl_ca_cert; /* CA bundle used to verify client certificates or
|
||||
* tunnel dispatchers. */
|
||||
/*
|
||||
* SSL settings.
|
||||
*
|
||||
* Server certificate to present to clients or client certificate to
|
||||
* present to tunnel dispatcher (for tunneled connections).
|
||||
*/
|
||||
const char *ssl_cert;
|
||||
/* Private key corresponding to the certificate. If ssl_cert is set but
|
||||
* ssl_key is not, ssl_cert is used. */
|
||||
const char *ssl_key;
|
||||
/* CA bundle used to verify client certificates or tunnel dispatchers. */
|
||||
const char *ssl_ca_cert;
|
||||
/* Colon-delimited list of acceptable cipher suites.
|
||||
* Names depend on the library used, for example:
|
||||
*
|
||||
* ECDH-ECDSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256 (OpenSSL)
|
||||
* TLS-ECDH-ECDSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256
|
||||
* (mbedTLS)
|
||||
*
|
||||
* For OpenSSL the list can be obtained by running "openssl ciphers".
|
||||
* For mbedTLS, names can be found in library/ssl_ciphersuites.c
|
||||
* If NULL, a reasonable default is used.
|
||||
*/
|
||||
const char *ssl_cipher_suites;
|
||||
#endif
|
||||
};
|
||||
---
|
||||
|
||||
@@ -9,15 +9,33 @@ signature: |
|
||||
const char **error_string; /* Placeholder for the error string */
|
||||
struct mg_iface *iface; /* Interface instance */
|
||||
#if MG_ENABLE_SSL
|
||||
/* SSL settings. */
|
||||
const char *ssl_cert; /* Client certificate to present to the server */
|
||||
const char *ssl_key; /* Private key corresponding to the certificate.
|
||||
If ssl_cert is set but ssl_key is not, ssl_cert
|
||||
is used. */
|
||||
const char *ssl_ca_cert; /* Verify server certificate using this CA bundle.
|
||||
If set to "*", then SSL is enabled but no cert
|
||||
verification is performed. */
|
||||
|
||||
/*
|
||||
* SSL settings.
|
||||
* Client certificate to present to the server.
|
||||
*/
|
||||
const char *ssl_cert;
|
||||
/*
|
||||
* Private key corresponding to the certificate.
|
||||
* If ssl_cert is set but ssl_key is not, ssl_cert is used.
|
||||
*/
|
||||
const char *ssl_key;
|
||||
/*
|
||||
* Verify server certificate using this CA bundle. If set to "*", then SSL
|
||||
* is enabled but no cert verification is performed.
|
||||
*/
|
||||
const char *ssl_ca_cert;
|
||||
/* Colon-delimited list of acceptable cipher suites.
|
||||
* Names depend on the library used, for example:
|
||||
*
|
||||
* ECDH-ECDSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256 (OpenSSL)
|
||||
* TLS-ECDH-ECDSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256
|
||||
* (mbedTLS)
|
||||
*
|
||||
* For OpenSSL the list can be obtained by running "openssl ciphers".
|
||||
* For mbedTLS, names can be found in library/ssl_ciphersuites.c
|
||||
* If NULL, a reasonable default is used.
|
||||
*/
|
||||
const char *ssl_cipher_suites;
|
||||
/*
|
||||
* Server name verification. If ssl_ca_cert is set and the certificate has
|
||||
* passed verification, its subject will be verified against this string.
|
||||
|
||||
Reference in new issue
Block a user