diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2001-08-16 15:28:00 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2001-08-16 15:28:00 +0000 |
commit | 54fbc77dc8718f1c6804a198fede84c193caf987 (patch) | |
tree | 8289d3ba66d7b60d0d64682bd8d595f73d1b5907 /crypto/bio | |
parent | 9e09eebf94c933686077a1b1b2d60248acb9ba67 (diff) |
Bugfixes provided by "Stephen Hinton" <shinton@netopia.com>.
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bio.h | 2 | ||||
-rw-r--r-- | crypto/bio/bss_bio.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h index 5945e26aaf..24b5db2c46 100644 --- a/crypto/bio/bio.h +++ b/crypto/bio/bio.h @@ -434,7 +434,7 @@ int BIO_read_filename(BIO *b,const char *name); #define BIO_set_ssl_renegotiate_bytes(b,num) \ BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL); #define BIO_get_num_renegotiates(b) \ - BIO_ctrl(b,BIO_C_SET_SSL_NUM_RENEGOTIATES,0,NULL); + BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL); #define BIO_set_ssl_renegotiate_timeout(b,seconds) \ BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL); diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c index 4e46c6c119..f666c47f4e 100644 --- a/crypto/bio/bss_bio.c +++ b/crypto/bio/bss_bio.c @@ -474,7 +474,8 @@ static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr) break; case BIO_C_GET_WRITE_BUF_SIZE: - num = (long) b->size; + ret = (long) b->size; + break; case BIO_C_MAKE_BIO_PAIR: { |