2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

stream-ssl: Avoid warning with recent OpenSSL.

Reported-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ben Pfaff
2010-10-14 15:13:33 -07:00
parent a4e2e1f289
commit 444b381ed1

View File

@@ -988,7 +988,9 @@ do_ssl_init(void)
SSL_library_init();
SSL_load_error_strings();
method = TLSv1_method();
/* New OpenSSL changed TLSv1_method() to return a "const" pointer, so the
* cast is needed to avoid a warning with those newer versions. */
method = (SSL_METHOD *) TLSv1_method();
if (method == NULL) {
VLOG_ERR("TLSv1_method: %s", ERR_error_string(ERR_get_error(), NULL));
return ENOPROTOOPT;