Lines Matching defs:bio
75 #include <openssl/bio.h>
128 static int file_new(BIO *bio) { return 1; }
130 static int file_free(BIO *bio) {
131 if (bio == NULL) {
135 if (!bio->shutdown) {
139 if (bio->init && bio->ptr != NULL) {
140 fclose(bio->ptr);
141 bio->ptr = NULL;
143 bio->init = 0;
287 int BIO_get_fp(BIO *bio, FILE **out_file) {
288 return BIO_ctrl(bio, BIO_C_GET_FILE_PTR, 0, (char*) out_file);
291 int BIO_set_fp(BIO *bio, FILE *file, int close_flag) {
292 return BIO_ctrl(bio, BIO_C_SET_FILE_PTR, close_flag, (char *) file);
295 int BIO_read_filename(BIO *bio, const char *filename) {
296 return BIO_ctrl(bio, BIO_C_SET_FILENAME, BIO_CLOSE | BIO_FP_READ,
300 int BIO_write_filename(BIO *bio, const char *filename) {
301 return BIO_ctrl(bio, BIO_C_SET_FILENAME, BIO_CLOSE | BIO_FP_WRITE,
305 int BIO_append_filename(BIO *bio, const char *filename) {
306 return BIO_ctrl(bio, BIO_C_SET_FILENAME, BIO_CLOSE | BIO_FP_APPEND,
310 int BIO_rw_filename(BIO *bio, const char *filename) {
311 return BIO_ctrl(bio, BIO_C_SET_FILENAME,