rtl_433/src/mongoose_libressl.patch

15 lines
564 B
Diff

diff --git a/src/mongoose.c b/src/mongoose.c
index d3d2ef99..c9c40863 100644
--- a/src/mongoose.c
+++ b/src/mongoose.c
@@ -5042,8 +5042,7 @@ static enum mg_ssl_if_result mg_ssl_if_ossl_set_psk(struct mg_ssl_if_ctx *ctx,
const char *identity,
const char *key_str) {
(void) ctx;
- (void) identity;
- (void) key_str;
+ if (identity == NULL && key_str == NULL) return MG_SSL_OK;
/* Krypton / LibreSSL does not support PSK. */
return MG_SSL_ERROR;
}