diff options
author | David Benjamin <davidben@google.com> | 2016-03-19 17:32:14 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-21 21:49:10 +0100 |
commit | 04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 (patch) | |
tree | 3ce2eb3e6743161c6753a5344424a8fe72a0d97e /crypto/bio/bss_mem.c | |
parent | Downcase VMS config names (diff) | |
download | openssl-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.tar.xz openssl-04f6b0fd9110c85c3c0d6d1172005d1c6755ac86.zip |
RT4660: BIO_METHODs should be const.
BIO_new, etc., don't need a non-const BIO_METHOD. This allows all the
built-in method tables to live in .rodata.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio/bss_mem.c')
-rw-r--r-- | crypto/bio/bss_mem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index 4d4554719c..68ac90d0af 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -68,7 +68,7 @@ static long mem_ctrl(BIO *h, int cmd, long arg1, void *arg2); static int mem_new(BIO *h); static int secmem_new(BIO *h); static int mem_free(BIO *data); -static BIO_METHOD mem_method = { +static const BIO_METHOD mem_method = { BIO_TYPE_MEM, "memory buffer", mem_write, @@ -80,7 +80,7 @@ static BIO_METHOD mem_method = { mem_free, NULL, }; -static BIO_METHOD secmem_method = { +static const BIO_METHOD secmem_method = { BIO_TYPE_MEM, "secure memory buffer", mem_write, @@ -98,12 +98,12 @@ static BIO_METHOD secmem_method = { * should_retry is not set */ -BIO_METHOD *BIO_s_mem(void) +const BIO_METHOD *BIO_s_mem(void) { return (&mem_method); } -BIO_METHOD *BIO_s_secmem(void) +const BIO_METHOD *BIO_s_secmem(void) { return(&secmem_method); } |