Skip to content

Commit ba5d10e

Browse files
committed
Increase RSA_KEY_LENGTH if IDF>5.0.2
ESP-IDF versions> 5.0.2 rejects RSA_KEY_LENGTH < 1024.
1 parent 2a9b115 commit ba5d10e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/config.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
#ifndef CONFIG_H_
22
#define CONFIG_H_
33

4+
#include "esp_idf_version.h"
5+
46
#define SCTP_MTU (1200)
57
#define CONFIG_MTU (1300)
68

9+
710
#ifdef ESP32
8-
#define RSA_KEY_LENGTH 512
11+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 2)
12+
#define RSA_KEY_LENGTH 1024
13+
#else
14+
#define RSA_KEY_LENGTH 512
15+
#endif
916
#define VIDEO_RB_DATA_LENGTH (CONFIG_MTU * 64)
1017
#define AUDIO_RB_DATA_LENGTH (CONFIG_MTU * 64)
1118
#define DATA_RB_DATA_LENGTH (SCTP_MTU * 128)

0 commit comments

Comments
 (0)