Generate certificate validation failure issue reason trace in log
Description
When asymmetric security header is decoded and the certificate validation fails validates no failure reason is indicated in the log traces (only failure indicated)
Analysis
Cryptographic wrapper API does not provide any additional information in case of failure
Implementation
Add failure reasons codes to API and output parameter to return it in case of failure. Implement the failure reason parameter assignment in case of certificate validation failure with mbedtls implementation of cryptographic API. Print the reason failure in the log trace.
Edited by Pierre-Antoine BRAMERET