On 5/4/21 12:33 AM, Vitaly Chikunov wrote:
Allow user to specify `--keyid @/path/to/cert.pem' to extract keyid from SKID of the certificate file. PEM or DER format is auto-detected. `--keyid' option is reused instead of adding a new option (like possible `--cert') to signify to the user it's only keyid extraction and nothing more. Signed-off-by: Vitaly Chikunov <vt@xxxxxxxxxxxx> +/* Extract keyid from SKID of the cert. No return on error. */ +static unsigned long int extract_keyid(const char *certfile) +{
This could be a library function imaevm_cert_extract_keyid or so, which could be useful for other users of the library.