Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
LibVNCServer.17331
libvncserver-ossl.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libvncserver-ossl.patch of Package LibVNCServer.17331
--- libvncclient/tls_openssl.c.orig +++ libvncclient/tls_openssl.c @@ -18,9 +18,11 @@ * USA. */ +#include "rfbconfig.h" #include <rfb/rfbclient.h> #include <errno.h> - +#define OPENSSL_LOAD_CONF +#define OPENSSL_NO_SSL_INTERN #include <openssl/err.h> #include <openssl/ssl.h> #include <openssl/x509.h> @@ -157,7 +159,7 @@ ssl_verify (int ok, X509_STORE_CTX *ctx) ssl = X509_STORE_CTX_get_ex_data (ctx, SSL_get_ex_data_X509_STORE_CTX_idx ()); - client = SSL_CTX_get_app_data (ssl->ctx); + client = SSL_CTX_get_app_data (SSL_get_SSL_CTX(ssl)); cert = X509_STORE_CTX_get_current_cert (ctx); err = X509_STORE_CTX_get_error (ctx); @@ -240,6 +242,10 @@ open_ssl_connection (rfbClient *client, BIO *sbio; ssl_ctx = SSL_CTX_new (SSLv23_client_method ()); +#ifdef SSL_MODE_RELEASE_BUFFERS + SSL_CTX_set_mode(ssl_ctx, SSL_MODE_RELEASE_BUFFERS); +#endif + SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL | SSL_OP_NO_SSLv2); SSL_CTX_set_default_verify_paths (ssl_ctx); SSL_CTX_set_verify (ssl_ctx, SSL_VERIFY_NONE, &ssl_verify); ssl = SSL_new (ssl_ctx); @@ -259,8 +265,8 @@ open_ssl_connection (rfbClient *client, if (wait_for_data(ssl, n, 1) != 1) { finished = 1; - if (ssl->ctx) - SSL_CTX_free (ssl->ctx); + if (SSL_get_SSL_CTX(ssl)) + SSL_CTX_free (SSL_get_SSL_CTX(ssl)); SSL_free(ssl); SSL_shutdown (ssl); --- libvncserver/rfbssl_openssl.c.orig +++ libvncserver/rfbssl_openssl.c @@ -21,7 +21,10 @@ * USA. */ +#include "rfbconfig.h" #include "rfbssl.h" +#define OPENSSL_LOAD_CONF +#define OPENSSL_NO_SSL_INTERN #include <openssl/ssl.h> #include <openssl/err.h>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor