bio.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import absolute_import, division, print_function
  5. INCLUDES = """
  6. #include <openssl/bio.h>
  7. """
  8. TYPES = """
  9. typedef ... BIO;
  10. typedef ... BIO_METHOD;
  11. """
  12. FUNCTIONS = """
  13. int BIO_free(BIO *);
  14. void BIO_free_all(BIO *);
  15. BIO *BIO_new_file(const char *, const char *);
  16. BIO *BIO_new_dgram(int, int);
  17. size_t BIO_ctrl_pending(BIO *);
  18. int BIO_read(BIO *, void *, int);
  19. int BIO_gets(BIO *, char *, int);
  20. int BIO_write(BIO *, const void *, int);
  21. /* Added in 1.1.0 */
  22. int BIO_up_ref(BIO *);
  23. BIO *BIO_new(BIO_METHOD *);
  24. BIO_METHOD *BIO_s_mem(void);
  25. BIO_METHOD *BIO_s_datagram(void);
  26. BIO *BIO_new_mem_buf(const void *, int);
  27. long BIO_set_mem_eof_return(BIO *, int);
  28. long BIO_get_mem_data(BIO *, char **);
  29. int BIO_should_read(BIO *);
  30. int BIO_should_write(BIO *);
  31. int BIO_should_io_special(BIO *);
  32. int BIO_should_retry(BIO *);
  33. int BIO_reset(BIO *);
  34. void BIO_set_retry_read(BIO *);
  35. void BIO_clear_retry_flags(BIO *);
  36. """
  37. CUSTOMIZATIONS = """
  38. """