summaryrefslogtreecommitdiff
path: root/src/crypto/bio/bio_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/bio/bio_mem.c')
-rw-r--r--src/crypto/bio/bio_mem.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/crypto/bio/bio_mem.c b/src/crypto/bio/bio_mem.c
index 1cba8a89..08dd6e9d 100644
--- a/src/crypto/bio/bio_mem.c
+++ b/src/crypto/bio/bio_mem.c
@@ -82,16 +82,16 @@ BIO *BIO_new_mem_buf(const void *buf, int len) {
}
b = (BUF_MEM *)ret->ptr;
- /* BIO_FLAGS_MEM_RDONLY ensures |b->data| is not written to. */
+ // BIO_FLAGS_MEM_RDONLY ensures |b->data| is not written to.
b->data = (void *)buf;
b->length = size;
b->max = size;
ret->flags |= BIO_FLAGS_MEM_RDONLY;
- /* |num| is used to store the value that this BIO will return when it runs
- * out of data. If it's negative then the retry flags will also be set. Since
- * this is static data, retrying wont help */
+ // |num| is used to store the value that this BIO will return when it runs
+ // out of data. If it's negative then the retry flags will also be set. Since
+ // this is static data, retrying wont help
ret->num = 0;
return ret;
@@ -105,8 +105,8 @@ static int mem_new(BIO *bio) {
return 0;
}
- /* |shutdown| is used to store the close flag: whether the BIO has ownership
- * of the BUF_MEM. */
+ // |shutdown| is used to store the close flag: whether the BIO has ownership
+ // of the BUF_MEM.
bio->shutdown = 1;
bio->init = 1;
bio->num = -1;
@@ -214,8 +214,8 @@ static int mem_gets(BIO *bio, char *buf, int size) {
}
}
- /* i is now the max num of bytes to copy, either j or up to and including the
- * first newline */
+ // i is now the max num of bytes to copy, either j or up to and including the
+ // first newline
i = mem_read(bio, buf, i);
if (i > 0) {
@@ -233,7 +233,7 @@ static long mem_ctrl(BIO *bio, int cmd, long num, void *ptr) {
switch (cmd) {
case BIO_CTRL_RESET:
if (b->data != NULL) {
- /* For read only case reset to the start again */
+ // For read only case reset to the start again
if (bio->flags & BIO_FLAGS_MEM_RDONLY) {
b->data -= b->max - b->length;
b->length = b->max;