View | Details | Raw Unified | Return to bug 225407
Collapse All | Expand All

(-)files/patch-libressl (+36 lines)
Line 0 Link Here
1
--- src/bio-gio.c.orig	2017-01-13 14:00:07 UTC
2
+++ src/bio-gio.c
3
@@ -23,7 +23,7 @@
4
 #include "spice-util.h"
5
 #include "bio-gio.h"
6
 
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
9
 static BIO_METHOD one_static_bio;
10
 
11
 static int BIO_meth_set_read(BIO_METHOD *biom,
12
--- src/spice-channel.c.orig	2018-01-21 15:48:25 UTC
13
+++ src/spice-channel.c
14
@@ -55,7 +55,7 @@ static void spice_channel_reset_capabilities(SpiceChan
15
 static void spice_channel_send_migration_handshake(SpiceChannel *channel);
16
 static gboolean channel_connect(SpiceChannel *channel, gboolean tls);
17
 
18
-#if OPENSSL_VERSION_NUMBER < 0x10100000
19
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
20
 static RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey)
21
 {
22
     if (pkey->type != EVP_PKEY_RSA) {
23
--- spice-common/common/ssl_verify.c.orig	2018-01-21 15:52:12 UTC
24
+++ spice-common/common/ssl_verify.c
25
@@ -33,7 +33,7 @@
26
 #include <string.h>
27
 #include <gio/gio.h>
28
 
29
-#if OPENSSL_VERSION_NUMBER < 0x10100000
30
+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
31
 static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
32
 {
33
     return M_ASN1_STRING_data(asn1);
34
yes
35
native
36
text/plain

Return to bug 225407