Skip to content

Commit

Permalink
Add info trace
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Jun 10, 2024
1 parent 36e2ad4 commit 78de92e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/broker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function verify_signature(twin, msg)
hash = MbedTLS.digest(MD_SHA256, plain)
MbedTLS.verify(ctx, MD_SHA256, hash, msg.signature)
catch e
@info "verify signature: $e ($(typeof(e)))"
if isa(e, MbedTLS.MbedException) &&
e.ret == MbedTLS.MBEDTLS_ERR_RSA_VERIFY_FAILED
rethrow()
Expand Down

0 comments on commit 78de92e

Please sign in to comment.