aboutsummaryrefslogtreecommitdiff
path: root/include/openssl/ossl_typ.h
diff options
context:
space:
mode:
authorKirill Marinushkin <k.marinushkin@gmail.com>2016-03-13 13:20:52 +0100
committerRich Salz <rsalz@openssl.org>2016-04-02 16:57:07 -0400
commit9fe9d0461ea4bcc42cd75a30f013fa61b5407b93 (patch)
tree138059a58990939eba8e1f421dd17bd0a3ba79c6 /include/openssl/ossl_typ.h
parent6b888643105e37d340d509b98023b4779653c8a7 (diff)
downloadopenssl-9fe9d0461ea4bcc42cd75a30f013fa61b5407b93.zip
openssl-9fe9d0461ea4bcc42cd75a30f013fa61b5407b93.tar.gz
openssl-9fe9d0461ea4bcc42cd75a30f013fa61b5407b93.tar.bz2
Optimized BIO mem read - without reallocation
Currently on every BIO mem read operation the remaining data is reallocated. This commit solves the issue. BIO mem structure includes additional pointer to the read position. On every read the pointer moves instead of reallocating the memory for the remaining data. Reallocation accures before write and some ioctl operations, if the read pointer doesn't point on the beginning of the buffer. Also the flag is added to rewind the read pointer without losing the data. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include/openssl/ossl_typ.h')
-rw-r--r--include/openssl/ossl_typ.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/ossl_typ.h b/include/openssl/ossl_typ.h
index 7a8d319..ee2f70a 100644
--- a/include/openssl/ossl_typ.h
+++ b/include/openssl/ossl_typ.h
@@ -128,6 +128,7 @@ typedef struct bn_recp_ctx_st BN_RECP_CTX;
typedef struct bn_gencb_st BN_GENCB;
typedef struct buf_mem_st BUF_MEM;
+typedef struct bio_buf_mem_st BIO_BUF_MEM;
typedef struct evp_cipher_st EVP_CIPHER;
typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;