Skip to contentSkip to conversation

Let mbedtls_ssl_configs find reloaded CRLs

PATCH Arne Schwabe 1 participant 1 message Apr 3, 2021 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]...

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#2 lore raw
Quoted 6 lines

}

void

(quoted diff) +2 -0
+make_empty_crl(struct tls_root_ctx *ctx)
+{

Review

Quoted 10 lines
(quoted diff) +10 -0
+    if (ctx->crl == NULL)
+    {
+        ALLOC_OBJ_CLEAR(ctx->crl, mbedtls_x509_crl);
+    }
+    else
+    {
+        mbedtls_x509_crl_free(ctx->crl);
+    }
+}
+

This function is confsung me. This needs at least more documentation what it is doing as docstring etc. I would also expect to have mbedtls_x509_crl_init to init the struct and not just a malloc that set the whole structure to zero. And mbedtls_x509_crl_free does from its description doesn't guarantee that the object is left in a proper state.

Arne