summaryrefslogtreecommitdiffstats
path: root/crypto/evp/bio_b64.c
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2016-03-19 17:32:14 +0100
committerRich Salz <rsalz@openssl.org>2016-03-21 21:49:10 +0100
commit04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 (patch)
tree3ce2eb3e6743161c6753a5344424a8fe72a0d97e /crypto/evp/bio_b64.c
parentDowncase VMS config names (diff)
downloadopenssl-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/evp/bio_b64.c')
-rw-r--r--crypto/evp/bio_b64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/bio_b64.c b/crypto/evp/bio_b64.c
index 097b0958f1..93e4166b48 100644
--- a/crypto/evp/bio_b64.c
+++ b/crypto/evp/bio_b64.c
@@ -93,7 +93,7 @@ typedef struct b64_struct {
char tmp[B64_BLOCK_SIZE];
} BIO_B64_CTX;
-static BIO_METHOD methods_b64 = {
+static const BIO_METHOD methods_b64 = {
BIO_TYPE_BASE64, "base64 encoding",
b64_write,
b64_read,
@@ -105,7 +105,7 @@ static BIO_METHOD methods_b64 = {
b64_callback_ctrl,
};
-BIO_METHOD *BIO_f_base64(void)
+const BIO_METHOD *BIO_f_base64(void)
{
return (&methods_b64);
}