[Openvpn-devel] [PATCH 1/1] Let mbedtls_ssl_configs find reloaded CRLs

2021-04-02 Thread Max Fillinger
From: Maximilian Fillinger If the CRL file cannot be read during initialization, a NULL pointer is passed to the mbedtls_ssl_config in key_state_ssl_init(). Then, if the CRL file is successfully read later, the config won't have a pointer to it. Therefore, the CRL won't actually take effect. Thi

Re: [Openvpn-devel] [PATCH 1/1] Let mbedtls_ssl_configs find reloaded CRLs

2021-04-03 Thread Arne Schwabe
> } > > void > +make_empty_crl(struct tls_root_ctx *ctx) > +{ > +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

Re: [Openvpn-devel] [PATCH 1/1] Let mbedtls_ssl_configs find reloaded CRLs

2021-04-06 Thread Maximilian Fillinger
> > } > > > > void > > +make_empty_crl(struct tls_root_ctx *ctx) > > +{ > > +if (ctx->crl == NULL) > > +{ > > +ALLOC_OBJ_CLEAR(ctx->crl, mbedtls_x509_crl); > > +} > > +else > > +{ > > +mbedtls_x509_crl_free(ctx->crl); > > +} > > +} > > + > > This function