From 04f6b0fd9110c85c3c0d6d1172005d1c6755ac86 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sat, 19 Mar 2016 12:32:14 -0400 Subject: 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 --- ssl/bio_ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssl/bio_ssl.c') diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c index c433cf5073..c3afc57f5f 100644 --- a/ssl/bio_ssl.c +++ b/ssl/bio_ssl.c @@ -81,7 +81,7 @@ typedef struct bio_ssl_st { unsigned long last_time; } BIO_SSL; -static BIO_METHOD methods_sslp = { +static const BIO_METHOD methods_sslp = { BIO_TYPE_SSL, "ssl", ssl_write, ssl_read, @@ -93,7 +93,7 @@ static BIO_METHOD methods_sslp = { ssl_callback_ctrl, }; -BIO_METHOD *BIO_f_ssl(void) +const BIO_METHOD *BIO_f_ssl(void) { return (&methods_sslp); } -- cgit v1.2.3