Skip to content

Commit

Permalink
fix crash with mbedtls on CSR generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Sep 12, 2023
1 parent 29d594f commit b10e4b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/ziti.c
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,9 @@ static void session_post_auth_query_cb(ziti_context ztx, int status, void *ctx)
ztx->id, uv_now(ztx->loop));

ztx->tlsCtx->generate_key(&ztx->sessionKey);
ztx->tlsCtx->generate_csr_to_pem(ztx->sessionKey, &ztx->sessionCsr, NULL,

size_t csr_len;
ztx->tlsCtx->generate_csr_to_pem(ztx->sessionKey, &ztx->sessionCsr, &csr_len,
"O", "OpenZiti",
"OU", "ziti-sdk",
"CN", common_name,
Expand Down

0 comments on commit b10e4b0

Please sign in to comment.