Skip to content

Commit

Permalink
Merge pull request #519 from openziti/fix-enrollment-crash
Browse files Browse the repository at this point in the history
check if key supports certificate store
  • Loading branch information
ekoby authored May 23, 2023
2 parents 3d8836b + f72b6f5 commit 2fc3556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else ()

FetchContent_Declare(tlsuv
GIT_REPOSITORY https://github.com/openziti/tlsuv.git
GIT_TAG v0.23.4
GIT_TAG v0.23.5
)
FetchContent_MakeAvailable(tlsuv)

Expand Down
1 change: 1 addition & 0 deletions library/ziti_enroll.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ static void enroll_cb(ziti_enrollment_resp *er, const ziti_error *err, void *enr

tls_cert c = NULL;
if (enroll_req->ecfg->tls->api->load_cert(&c, er->cert, strlen(er->cert)) == 0 &&
enroll_req->ecfg->pk->store_certificate != NULL &&
enroll_req->ecfg->pk->store_certificate(enroll_req->ecfg->pk, c) == 0) {
ZITI_LOG(INFO, "stored certificate to PKCS#11 token");
}
Expand Down

0 comments on commit 2fc3556

Please sign in to comment.