diff options
author | Ben Laurie <ben@openssl.org> | 2000-05-16 23:01:19 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2000-05-16 23:01:19 +0000 |
commit | 371acb22e68ff23128485ce134a9931de889e719 (patch) | |
tree | d69e9633373dc07fe39e8e07a0dceef7ec3aa4d8 /crypto/bio | |
parent | 5de603abc8fe6fedca529ce58d3741b50ff99592 (diff) |
Typesafe Thought Police part 4.
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bio.h | 3 | ||||
-rw-r--r-- | crypto/bio/bio_lib.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h index 0af44e6070..2e25516cf3 100644 --- a/crypto/bio/bio.h +++ b/crypto/bio/bio.h @@ -261,6 +261,8 @@ struct bio_st CRYPTO_EX_DATA ex_data; }; +DECLARE_STACK_OF(BIO) + typedef struct bio_f_buffer_ctx_struct { /* BIO *bio; */ /* this is now in the BIO struct */ @@ -507,6 +509,7 @@ BIO *BIO_new_fp(FILE *stream, int close_flag); BIO * BIO_new(BIO_METHOD *type); int BIO_set(BIO *a,BIO_METHOD *type); int BIO_free(BIO *a); +void BIO_vfree(BIO *a); int BIO_read(BIO *b, void *data, int len); int BIO_gets(BIO *bp,char *buf, int size); int BIO_write(BIO *b, const void *data, int len); diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index 00163f21bd..77e43763cb 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -137,6 +137,9 @@ int BIO_free(BIO *a) return(1); } +void BIO_vfree(BIO *a) + { BIO_free(a); } + int BIO_read(BIO *b, void *out, int outl) { int i; @@ -532,3 +535,5 @@ unsigned long BIO_number_written(BIO *bio) if(bio) return bio->num_write; return 0; } + +IMPLEMENT_STACK_OF(BIO) |