NAME

catcert_serialnumber - get certificate serial number as a string

SYNOPSIS

#include <cat/cat.h>

int catcert_serialnumber(const cat_cert *cert, char **serial);

DESCRIPTION

This function extracts the certificate serial number from cert, and returns a pointer to the result as a hex-coded string in *serial.

The function allocates memory that must be freed by the caller.

RETURN VALUES

The function returns 0 if successful, or a negative code on error.

SEE ALSO

cat, catcert