summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-08-30 16:14:29 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-08-30 16:14:29 +0000
commit7df1c720f60ad3813cc88607c4520da031e41e88 (patch)
treec45d2b02b837f2b503807989a4889a4ce7c5a0ad /crypto/bio
parentb3756cf0e9622a4bbda5e4c417248255ba9daaf2 (diff)
Fix typo in i2d_ASN1_ENUMERATED
Fix bug in read only memory BIOs so BIO_reset() works. Add sign and verify options to dgst utility, need to update docs.
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bss_mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c
index c4e557822e..4fa2cf15a4 100644
--- a/crypto/bio/bss_mem.c
+++ b/crypto/bio/bss_mem.c
@@ -214,6 +214,7 @@ static long mem_ctrl(BIO *b, int cmd, long num, void *ptr)
/* For read only case reset to the start again */
if(b->flags & BIO_FLAGS_MEM_RDONLY)
bm->data -= bm->max - bm->length;
+ bm->length = bm->max;
else {
memset(bm->data,0,bm->max);
bm->length=0;