51 base16_encode ( fingerprint,
sizeof ( fingerprint ),
52 buf,
sizeof ( buf ) );
int printf(const char *fmt,...)
Write a formatted string to the console.
int x509_is_valid(struct x509_certificate *cert, struct x509_root *root)
Check if X.509 certificate is valid.
void certstat(struct x509_certificate *cert)
Display status of a certificate.
static size_t base16_encoded_len(size_t raw_len)
Calculate length of base16-encoded data.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void x509_fingerprint(struct x509_certificate *cert, struct digest_algorithm *digest, void *fingerprint)
Calculate X.509 certificate fingerprint.
Certificate was added at build time.
const char * x509_name(struct x509_certificate *cert)
Get X.509 certificate display name.
size_t digestsize
Digest size.
A message digest algorithm.
#define NULL
NULL pointer (VOID *)
Certificate was added explicitly at run time.
struct digest_algorithm sha1_algorithm
SHA-1 algorithm.