Skip to content

Commit

Permalink
Fix failed CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed May 27, 2024
1 parent 0169781 commit c8a87dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic/backend-mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,13 +905,13 @@ Tcl_Obj *mtls_backend_ctx_get_status(mtls_backend_ctx *ctx,
switch (type) {
case MTLS_BACKEND_CTX_SERIAL:
break;
case MTLS_BACKEND_CTX_FINGERPRINT_SHA1:
case MTLS_BACKEND_CTX_FINGERPRINT_SHA1: ; // empty statement
char hash_sha1[20];
mbedtls_sha1(cert->raw.p, cert->raw.len, (unsigned char *)hash_sha1);
obj = Tcl_NewObj();
mtls_string_to_hex(hash_sha1, 20, obj);
break;
case MTLS_BACKEND_CTX_FINGERPRINT_SHA256:
case MTLS_BACKEND_CTX_FINGERPRINT_SHA256: ; // empty statement
char hash_sha256[32];
mbedtls_sha256(cert->raw.p, cert->raw.len, (unsigned char *)hash_sha256, 0);
obj = Tcl_NewObj();
Expand Down

0 comments on commit c8a87dd

Please sign in to comment.