x509-utils.h 661 B

12345678910111213141516171819202122
  1. /*
  2. * X.509 certificate related helpers
  3. *
  4. * Copyright (c) 2024 Dorjoy Chowdhury <dorjoychy111@gmail.com>
  5. *
  6. * This work is licensed under the terms of the GNU GPL, version 2 or
  7. * (at your option) any later version. See the COPYING file in the
  8. * top-level directory.
  9. */
  10. #ifndef QCRYPTO_X509_UTILS_H
  11. #define QCRYPTO_X509_UTILS_H
  12. #include "crypto/hash.h"
  13. int qcrypto_get_x509_cert_fingerprint(uint8_t *cert, size_t size,
  14. QCryptoHashAlgo hash,
  15. uint8_t *result,
  16. size_t *resultlen,
  17. Error **errp);
  18. #endif