SystemCertificates.h 554 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <stdint.h>
  3. namespace il2cpp
  4. {
  5. namespace os
  6. {
  7. typedef enum
  8. {
  9. DATATYPE_STRING = 0,
  10. DATATYPE_INTPTR = 1,
  11. DATATYPE_FILE = 2
  12. } CertDataFormat;
  13. typedef struct
  14. {
  15. void* certdata;
  16. int certsize;
  17. } CertObj;
  18. class SystemCertificates
  19. {
  20. public:
  21. static void* OpenSystemRootStore();
  22. static int EnumSystemCertificates(void* certStore, void** iter, int *format, int* size, void** data);
  23. static void CloseSystemRootStore(void* cStore);
  24. };
  25. }
  26. }