mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
PUBLISHED_FROM=1b7bf2d7318568851e6c8f07451cd3982d9498b6
This commit is contained in:
1 parent
3fc61a3edc
commit
2bdbfc27f6
3 files changed
+7
-7
No files matched your search
+3
-3
@@ -4968,7 +4968,7 @@ static enum mg_ssl_if_result mg_set_cipher_list(SSL_CTX *ctx, const char *cl) {
|
|||||||
: MG_SSL_ERROR);
|
: MG_SSL_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef KR_VERSION
|
#if !defined(KR_VERSION) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||||
static unsigned int mg_ssl_if_ossl_psk_cb(SSL *ssl, const char *hint,
|
static unsigned int mg_ssl_if_ossl_psk_cb(SSL *ssl, const char *hint,
|
||||||
char *identity,
|
char *identity,
|
||||||
unsigned int max_identity_len,
|
unsigned int max_identity_len,
|
||||||
@@ -5034,10 +5034,10 @@ static enum mg_ssl_if_result mg_ssl_if_ossl_set_psk(struct mg_ssl_if_ctx *ctx,
|
|||||||
(void) ctx;
|
(void) ctx;
|
||||||
(void) identity;
|
(void) identity;
|
||||||
(void) key_str;
|
(void) key_str;
|
||||||
/* Krypton does not support PSK. */
|
/* Krypton / LibreSSL does not support PSK. */
|
||||||
return MG_SSL_ERROR;
|
return MG_SSL_ERROR;
|
||||||
}
|
}
|
||||||
#endif /* defined(KR_VERSION) */
|
#endif /* !defined(KR_VERSION) && !defined(LIBRESSL_VERSION_NUMBER) */
|
||||||
|
|
||||||
const char *mg_set_ssl(struct mg_connection *nc, const char *cert,
|
const char *mg_set_ssl(struct mg_connection *nc, const char *cert,
|
||||||
const char *ca_cert) {
|
const char *ca_cert) {
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ static enum mg_ssl_if_result mg_set_cipher_list(SSL_CTX *ctx, const char *cl) {
|
|||||||
: MG_SSL_ERROR);
|
: MG_SSL_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef KR_VERSION
|
#if !defined(KR_VERSION) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||||
static unsigned int mg_ssl_if_ossl_psk_cb(SSL *ssl, const char *hint,
|
static unsigned int mg_ssl_if_ossl_psk_cb(SSL *ssl, const char *hint,
|
||||||
char *identity,
|
char *identity,
|
||||||
unsigned int max_identity_len,
|
unsigned int max_identity_len,
|
||||||
@@ -376,10 +376,10 @@ static enum mg_ssl_if_result mg_ssl_if_ossl_set_psk(struct mg_ssl_if_ctx *ctx,
|
|||||||
(void) ctx;
|
(void) ctx;
|
||||||
(void) identity;
|
(void) identity;
|
||||||
(void) key_str;
|
(void) key_str;
|
||||||
/* Krypton does not support PSK. */
|
/* Krypton / LibreSSL does not support PSK. */
|
||||||
return MG_SSL_ERROR;
|
return MG_SSL_ERROR;
|
||||||
}
|
}
|
||||||
#endif /* defined(KR_VERSION) */
|
#endif /* !defined(KR_VERSION) && !defined(LIBRESSL_VERSION_NUMBER) */
|
||||||
|
|
||||||
const char *mg_set_ssl(struct mg_connection *nc, const char *cert,
|
const char *mg_set_ssl(struct mg_connection *nc, const char *cert,
|
||||||
const char *ca_cert) {
|
const char *ca_cert) {
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ COMMON_DIR_DEV = ../../common
|
|||||||
|
|
||||||
# Our dev repo and public mongoose repo have different layouts, so here
|
# Our dev repo and public mongoose repo have different layouts, so here
|
||||||
# we make it work on both
|
# we make it work on both
|
||||||
ifneq ("$(wildcard ../../fw)","")
|
ifneq ("$(wildcard ../../common.mk)","")
|
||||||
COMMON_PARENT = ../..
|
COMMON_PARENT = ../..
|
||||||
else
|
else
|
||||||
COMMON_PARENT = $(SRC_DIR)
|
COMMON_PARENT = $(SRC_DIR)
|
||||||
|
|||||||
Reference in new issue
Block a user