QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
661 B
22 lines
661 B
/*
|
|
* X.509 certificate related helpers
|
|
*
|
|
* Copyright (c) 2024 Dorjoy Chowdhury <dorjoychy111@gmail.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or
|
|
* (at your option) any later version. See the COPYING file in the
|
|
* top-level directory.
|
|
*/
|
|
|
|
#ifndef QCRYPTO_X509_UTILS_H
|
|
#define QCRYPTO_X509_UTILS_H
|
|
|
|
#include "crypto/hash.h"
|
|
|
|
int qcrypto_get_x509_cert_fingerprint(uint8_t *cert, size_t size,
|
|
QCryptoHashAlgo hash,
|
|
uint8_t *result,
|
|
size_t *resultlen,
|
|
Error **errp);
|
|
|
|
#endif
|
|
|