ess.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OPENSSL_ESS_H
  10. # define OPENSSL_ESS_H
  11. # include <openssl/opensslconf.h>
  12. # ifdef __cplusplus
  13. extern "C" {
  14. # endif
  15. # include <openssl/safestack.h>
  16. # include <openssl/x509.h>
  17. # include <openssl/esserr.h>
  18. typedef struct ESS_issuer_serial ESS_ISSUER_SERIAL;
  19. typedef struct ESS_cert_id ESS_CERT_ID;
  20. typedef struct ESS_signing_cert ESS_SIGNING_CERT;
  21. DEFINE_STACK_OF(ESS_CERT_ID)
  22. typedef struct ESS_signing_cert_v2_st ESS_SIGNING_CERT_V2;
  23. typedef struct ESS_cert_id_v2_st ESS_CERT_ID_V2;
  24. DEFINE_STACK_OF(ESS_CERT_ID_V2)
  25. DECLARE_ASN1_ALLOC_FUNCTIONS(ESS_ISSUER_SERIAL)
  26. DECLARE_ASN1_ENCODE_FUNCTIONS_only(ESS_ISSUER_SERIAL, ESS_ISSUER_SERIAL)
  27. DECLARE_ASN1_DUP_FUNCTION(ESS_ISSUER_SERIAL)
  28. DECLARE_ASN1_ALLOC_FUNCTIONS(ESS_CERT_ID)
  29. DECLARE_ASN1_ENCODE_FUNCTIONS_only(ESS_CERT_ID, ESS_CERT_ID)
  30. DECLARE_ASN1_DUP_FUNCTION(ESS_CERT_ID)
  31. DECLARE_ASN1_ALLOC_FUNCTIONS(ESS_SIGNING_CERT)
  32. DECLARE_ASN1_ENCODE_FUNCTIONS_only(ESS_SIGNING_CERT, ESS_SIGNING_CERT)
  33. DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT)
  34. DECLARE_ASN1_ALLOC_FUNCTIONS(ESS_CERT_ID_V2)
  35. DECLARE_ASN1_ENCODE_FUNCTIONS_only(ESS_CERT_ID_V2, ESS_CERT_ID_V2)
  36. DECLARE_ASN1_DUP_FUNCTION(ESS_CERT_ID_V2)
  37. DECLARE_ASN1_ALLOC_FUNCTIONS(ESS_SIGNING_CERT_V2)
  38. DECLARE_ASN1_ENCODE_FUNCTIONS_only(ESS_SIGNING_CERT_V2, ESS_SIGNING_CERT_V2)
  39. DECLARE_ASN1_DUP_FUNCTION(ESS_SIGNING_CERT_V2)
  40. # ifdef __cplusplus
  41. }
  42. # endif
  43. #endif