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 5from __future__ import absolute_import, division, print_function 6 7INCLUDES = """ 8#include <openssl/bio.h> 9""" 10 11TYPES = """ 12typedef ... BIO; 13typedef ... BIO_METHOD; 14""" 15 16FUNCTIONS = """ 17int BIO_free(BIO *); 18void BIO_free_all(BIO *); 19BIO *BIO_new_file(const char *, const char *); 20BIO *BIO_new_dgram(int, int); 21size_t BIO_ctrl_pending(BIO *); 22int BIO_read(BIO *, void *, int); 23int BIO_gets(BIO *, char *, int); 24int BIO_write(BIO *, const void *, int); 25/* Added in 1.1.0 */ 26int BIO_up_ref(BIO *); 27 28BIO *BIO_new(BIO_METHOD *); 29BIO_METHOD *BIO_s_mem(void); 30BIO_METHOD *BIO_s_datagram(void); 31BIO *BIO_new_mem_buf(const void *, int); 32long BIO_set_mem_eof_return(BIO *, int); 33long BIO_get_mem_data(BIO *, char **); 34int BIO_should_read(BIO *); 35int BIO_should_write(BIO *); 36int BIO_should_io_special(BIO *); 37int BIO_should_retry(BIO *); 38int BIO_reset(BIO *); 39void BIO_set_retry_read(BIO *); 40void BIO_clear_retry_flags(BIO *); 41""" 42 43CUSTOMIZATIONS = """ 44""" 45