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.

91 lines
1.3 KiB

  1. #ifndef _DML_WASM_STUB_X509_H_
  2. #define _DML_WASM_STUB_X509_H_
  3. #include <openssl/ossl_typ.h>
  4. static inline void X509_free(void *a)
  5. {
  6. }
  7. X509_STORE *X509_STORE_new(void)
  8. {
  9. return NULL;
  10. }
  11. static inline void X509_STORE_free(X509_STORE *a)
  12. {
  13. }
  14. static inline int X509_STORE_load_locations(X509_STORE *ctx, const char *file, const char *dir)
  15. {
  16. return 0;
  17. }
  18. X509_STORE_CTX *X509_STORE_CTX_new(void)
  19. {
  20. return NULL;
  21. }
  22. static inline void X509_STORE_CTX_free(X509_STORE_CTX *ctx)
  23. {
  24. }
  25. static inline int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, STACK_OF(X509) *chain)
  26. {
  27. return 0;
  28. }
  29. static inline EVP_PKEY *X509_get_pubkey(X509 *x)
  30. {
  31. return NULL;
  32. }
  33. static inline void *sk_X509_new_null(void)
  34. {
  35. return NULL;
  36. }
  37. static inline void sk_X509_free(void *x)
  38. {
  39. }
  40. static inline void sk_X509_push(void *x, void *y)
  41. {
  42. }
  43. static inline void *sk_X509_pop(void *x)
  44. {
  45. return NULL;
  46. }
  47. static inline X509 *d2i_X509(X509 **a, const unsigned char **pp, long length)
  48. {
  49. return NULL;
  50. }
  51. static inline int i2d_X509(X509 *a, unsigned char **pp)
  52. {
  53. return 0;
  54. }
  55. static inline int sk_X509_num(void *a)
  56. {
  57. return 0;
  58. }
  59. static inline int X509_verify_cert(X509_STORE_CTX *ctx)
  60. {
  61. return 0;
  62. }
  63. static inline void * sk_X509_value(void *ctx, int i)
  64. {
  65. return NULL;
  66. }
  67. static inline int X509_check_host(X509 *cert, char *name, int a, int b, void *c)
  68. {
  69. return 0;
  70. }
  71. #endif