KMF currently offers a kmf_is_cert_file() API which will indicate whether or not a file contains X.509 certificate data, either raw ASN.1 DER or PEM format. KMF should offer a similar API for examining a raw data buffer rather than reading it from a file.
|