]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/bio/bss_conn.c
RT4660: BIO_METHODs should be const.
[thirdparty/openssl.git] / crypto / bio / bss_conn.c
index 492fe01c03f01bffd35d73610a7f7e05ca9b4b49..a4949b3d60700b46039073f865660f4e087a0417 100644 (file)
@@ -103,7 +103,7 @@ void BIO_CONNECT_free(BIO_CONNECT *a);
 #define BIO_CONN_S_OK                    5
 #define BIO_CONN_S_BLOCKED_CONNECT       6
 
-static BIO_METHOD methods_connectp = {
+static const BIO_METHOD methods_connectp = {
     BIO_TYPE_CONNECT,
     "socket connect",
     conn_write,
@@ -285,7 +285,7 @@ void BIO_CONNECT_free(BIO_CONNECT *a)
     OPENSSL_free(a);
 }
 
-BIO_METHOD *BIO_s_connect(void)
+const BIO_METHOD *BIO_s_connect(void)
 {
     return (&methods_connectp);
 }