]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/bio_md.c
RT4660: BIO_METHODs should be const.
[thirdparty/openssl.git] / crypto / evp / bio_md.c
index 30a506ebbaab43976d366d08afc56ca77b0733e0..90dffa13135d054926fc19bcb3193cdaffad57d9 100644 (file)
@@ -78,7 +78,7 @@ static int md_new(BIO *h);
 static int md_free(BIO *data);
 static long md_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
 
-static BIO_METHOD methods_md = {
+static const BIO_METHOD methods_md = {
     BIO_TYPE_MD, "message digest",
     md_write,
     md_read,
@@ -90,7 +90,7 @@ static BIO_METHOD methods_md = {
     md_callback_ctrl,
 };
 
-BIO_METHOD *BIO_f_md(void)
+const BIO_METHOD *BIO_f_md(void)
 {
     return (&methods_md);
 }