I need to test if a ECC certificate in PEM format is of good shape in C using the wolfssl library. I do not want to test any further information only if it is a certificate and not any random Base64 encoded bytes between the
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
lines. What is the easiest way to do so?