diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-01-08 19:05:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-01-08 19:05:47 +0000 |
commit | c3ed3b6eab8b8f3a8ebe6fc6f5d14b4faf3c8cbe (patch) | |
tree | 0043f51f2c047775153d35815194e70ad73e465a /crypto/bio/bio_lib.c | |
parent | c708302516a7a7bc17e690c810c6461c9d4ac6ed (diff) |
Add -prexit command to s_client and patch some BIO
functions so it doesn't crash. Document s_client.
Diffstat (limited to 'crypto/bio/bio_lib.c')
-rw-r--r-- | crypto/bio/bio_lib.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index b72688ea90..ba374be13b 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -494,3 +494,14 @@ char *BIO_get_ex_data(BIO *bio, int idx) return(CRYPTO_get_ex_data(&(bio->ex_data),idx)); } +unsigned long BIO_number_read(BIO *bio) +{ + if(bio) return bio->num_read; + return 0; +} + +unsigned long BIO_number_written(BIO *bio) +{ + if(bio) return bio->num_write; + return 0; +} |