summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bio_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-01-08 19:05:47 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-01-08 19:05:47 +0000
commitc3ed3b6eab8b8f3a8ebe6fc6f5d14b4faf3c8cbe (patch)
tree0043f51f2c047775153d35815194e70ad73e465a /crypto/bio/bio_lib.c
parentc708302516a7a7bc17e690c810c6461c9d4ac6ed (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.c11
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;
+}