Fix RSA signing

This commit is contained in:
cpq
2026-10-07 11:36:37 -03:00
committed by Sergio R. Caprile
parent 567963b034
commit c30afffcee
4 changed files with 1165 additions and 1213 deletions
+582 -606
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -157,7 +157,9 @@ void mg_mdash_init(struct mg_mgr *mgr) {
void mg_mdash_poll(struct mg_mgr *mgr) {
static uint64_t timer = 0;
if (mg_mdash_conn == NULL && mg_timer_expired(&timer, 1000, mg_millis())) {
// No RPC handlers means mdash was never set up, or mg_mdash_free() ran
if (mg_mdash_conn == NULL && mgr->rpcs != NULL &&
mg_timer_expired(&timer, 1000, mg_millis())) {
MG_INFO(("Connecting to %s", MG_MDASH_URL));
mg_mdash_conn = mg_ws_connect(mgr, MG_MDASH_URL, mg_mdash_fn, NULL,
"Origin: %s\r\n"
+2 -2
View File
@@ -299,10 +299,10 @@ void mg_mgr_free(struct mg_mgr *mgr) {
while (t != NULL) tmp = t->next, mg_free(t), t = tmp;
mgr->timers = NULL; // Important. Next call to poll won't touch timers
for (c = mgr->conns; c != NULL; c = c->next) c->is_closing = 1;
mg_mgr_poll(mgr, 0);
#if MG_ENABLE_MDASH
mg_mdash_free(mgr);
mg_mdash_free(mgr); // Before the final poll, so mdash does not reconnect
#endif
mg_mgr_poll(mgr, 0);
#if MG_ENABLE_FREERTOS_TCP
FreeRTOS_DeleteSocketSet(mgr->ss);
#endif
+578 -604
View File
File diff suppressed because it is too large Load Diff