diff --git a/webrtc/base/openssladapter.cc b/webrtc/base/openssladapter.cc index 603a55bb0b..5caad17c67 100644 --- a/webrtc/base/openssladapter.cc +++ b/webrtc/base/openssladapter.cc @@ -74,7 +74,7 @@ static long socket_ctrl(BIO* h, int cmd, long arg1, void* arg2); static int socket_new(BIO* h); static int socket_free(BIO* data); -static BIO_METHOD methods_socket = { +static const BIO_METHOD methods_socket = { BIO_TYPE_BIO, "socket", socket_write, @@ -87,7 +87,7 @@ static BIO_METHOD methods_socket = { NULL, }; -static BIO_METHOD* BIO_s_socket2() { return(&methods_socket); } +static const BIO_METHOD* BIO_s_socket2() { return(&methods_socket); } static BIO* BIO_new_socket(rtc::AsyncSocket* socket) { BIO* ret = BIO_new(BIO_s_socket2()); diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc index d790e4e881..c88ae04fc7 100644 --- a/webrtc/base/opensslstreamadapter.cc +++ b/webrtc/base/opensslstreamadapter.cc @@ -67,7 +67,7 @@ static long stream_ctrl(BIO* h, int cmd, long arg1, void* arg2); static int stream_new(BIO* h); static int stream_free(BIO* data); -static BIO_METHOD methods_stream = { +static const BIO_METHOD methods_stream = { BIO_TYPE_BIO, "stream", stream_write, @@ -80,7 +80,7 @@ static BIO_METHOD methods_stream = { NULL, }; -static BIO_METHOD* BIO_s_stream() { return(&methods_stream); } +static const BIO_METHOD* BIO_s_stream() { return(&methods_stream); } static BIO* BIO_new_stream(StreamInterface* stream) { BIO* ret = BIO_new(BIO_s_stream()); @@ -289,7 +289,7 @@ bool OpenSSLStreamAdapter::GetDtlsSrtpCipher(std::string* cipher) { if (state_ != SSL_CONNECTED) return false; - SRTP_PROTECTION_PROFILE *srtp_profile = + const SRTP_PROTECTION_PROFILE *srtp_profile = SSL_get_selected_srtp_profile(ssl_); if (!srtp_profile)