]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/bio_b64.c
RT4660: BIO_METHODs should be const.
[thirdparty/openssl.git] / crypto / evp / bio_b64.c
index 097b0958f1efc7699beb5492975ed1b2915f4b27..93e4166b48e9a2dcd798de94fba92f3bdf5c9c6f 100644 (file)
@@ -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);
 }