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/asn1/bio_asn1.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/asn1/bio_asn1.c')
-rw-r--r-- | crypto/asn1/bio_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/bio_asn1.c b/crypto/asn1/bio_asn1.c index 33998e7264..80206aa4f6 100644 --- a/crypto/asn1/bio_asn1.c +++ b/crypto/asn1/bio_asn1.c @@ -124,7 +124,7 @@ static int asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx, asn1_bio_state_t ex_state, asn1_bio_state_t other_state); -static BIO_METHOD methods_asn1 = { +static const BIO_METHOD methods_asn1 = { BIO_TYPE_ASN1, "asn1", asn1_bio_write, @@ -137,7 +137,7 @@ static BIO_METHOD methods_asn1 = { asn1_bio_callback_ctrl, }; -BIO_METHOD *BIO_f_asn1(void) +const BIO_METHOD *BIO_f_asn1(void) { return (&methods_asn1); } |