1
0

libssl.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _LIBSSL_H
  2. #define _LIBSSL_H
  3. #ifdef HAVE_CONFIG_H
  4. # include "config.h"
  5. #endif
  6. #include "common.h"
  7. #include "dl.h"
  8. #include <bdlib/src/String.h>
  9. #include ".defs/libssl_pre.h"
  10. #ifdef EGG_SSL_EXT
  11. # ifndef EGG_SSL_INCS
  12. # include <openssl/ssl.h>
  13. # define EGG_SSL_INCS 1
  14. # endif
  15. #endif
  16. typedef DH* (*dh_callback_t)(SSL*, int, int);
  17. #include ".defs/libssl_post.h"
  18. typedef int (*SSL_get_error_t)(const SSL*, int);
  19. typedef void (*SSL_free_t)(SSL*);
  20. typedef int (*SSL_connect_t)(SSL*);
  21. typedef int (*SSL_read_t)(SSL*, void*, int);
  22. typedef int (*SSL_write_t)(SSL*, const void*, int);
  23. typedef SSL* (*SSL_new_t)(SSL_CTX*);
  24. typedef const SSL_METHOD* (*SSLv23_client_method_t)(void);
  25. typedef int (*SSL_shutdown_t)(SSL*);
  26. typedef int (*SSL_set_fd_t)(SSL*, int);
  27. typedef int (*SSL_pending_t)(const SSL*);
  28. typedef void (*SSL_load_error_strings_t)(void);
  29. typedef int (*SSL_library_init_t)(void);
  30. typedef void (*SSL_CTX_free_t)(SSL_CTX*);
  31. typedef SSL_CTX* (*SSL_CTX_new_t)(const SSL_METHOD*);
  32. typedef long (*SSL_CTX_ctrl_t)(SSL_CTX*, int, long, void*);
  33. typedef int (*SSL_CTX_set_cipher_list_t)(SSL_CTX*, const char*);
  34. typedef void (*SSL_CTX_set_tmp_dh_callback_t)(SSL_CTX*, dh_callback_t);
  35. int load_libssl();
  36. int unload_libssl();
  37. #endif /* !_LIBSSL_H */