Mbed-TLS / mbedtls

An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases.
https://www.trustedfirmware.org/projects/mbed-tls/
Other
5.02k stars 2.5k forks source link

Fix incorrect handling of T61 and other strings in `mbedtls_x509_dn_gets()` #9291

Open davidhorstmann-arm opened 1 week ago

davidhorstmann-arm commented 1 week ago

These should be returned as strings by mbedtls_x509_dn_gets() rather than being returned in hexstring form.

Specifically:

PR checklist

Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")

davidhorstmann-arm commented 1 week ago

This is ready for review, but note that it should not be allowed to clash with #9249, so it will need work (and a framework PR) once that PR is merged.

However, only the location of data files will change, so it's still worthwhile reviewing this now.