catcert_version - get certificate version as a string
#include <cat/cat.h>
int catcert_version(const cat_cert *cert, char **version);
This function extracts the version from cert and returns a pointer to the result in *version. For version 3 certificates, the returned string will be "V3"
.
The result is allocated and must be freed by the caller.
The function returns 0 if successful, or a negative code on error.
cat, catcert