crypto: Introduce x509 utils
authorDorjoy Chowdhury <dorjoychy111@gmail.com>
Thu, 5 Sep 2024 19:57:30 +0000 (01:57 +0600)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Sep 2024 14:13:38 +0000 (15:13 +0100)
commit10a1d34fc0d4dfe0dd6f5ec73f62dc1afa04af6c
treea068cacd8b11e0e79dfe254c607c916decd285d2
parent9893da71b274cc16f9a5fc18b94896f4887bcc2d
crypto: Introduce x509 utils

An utility function for getting fingerprint from X.509 certificate
has been introduced. Implementation only provided using gnutls.

Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
[DB: fixed missing gnutls_x509_crt_deinit in success path]
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/meson.build
crypto/x509-utils.c [new file with mode: 0644]
include/crypto/x509-utils.h [new file with mode: 0644]