summaryrefslogtreecommitdiff
path: root/app-emulation
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-03-19 16:58:21 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-03-19 16:58:21 +0300
commit67b49f9fe879bfdeef0f89ecd199f4de7078b7f7 (patch)
treea1398939a1196f385553a41b378a0ae3b6a4a2ea /app-emulation
parenta9b2552be34d667371d601584fae18625df34e7a (diff)
spice: libnressl patch (again)
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/spice/files/libressl.patch18
-rw-r--r--app-emulation/spice/spice-scm.ebuild6
2 files changed, 21 insertions, 3 deletions
diff --git a/app-emulation/spice/files/libressl.patch b/app-emulation/spice/files/libressl.patch
new file mode 100644
index 0000000..ddb22a8
--- /dev/null
+++ b/app-emulation/spice/files/libressl.patch
@@ -0,0 +1,18 @@
+diff --git a/common/ssl_verify.c b/common/ssl_verify.c
+index 27aa5d3..c4cafce 100644
+--- a/spice-common/common/ssl_verify.c
++++ b/spice-common/common/ssl_verify.c
+@@ -33,13 +33,6 @@
+ #include <string.h>
+ #include <gio/gio.h>
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
+-static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
+-{
+- return M_ASN1_STRING_data(asn1);
+-}
+-#endif
+-
+ static int verify_pubkey(X509* cert, const char *key, size_t key_size)
+ {
+ EVP_PKEY* cert_pubkey = NULL;
diff --git a/app-emulation/spice/spice-scm.ebuild b/app-emulation/spice/spice-scm.ebuild
index 960f961..d58bfd9 100644
--- a/app-emulation/spice/spice-scm.ebuild
+++ b/app-emulation/spice/spice-scm.ebuild
@@ -47,9 +47,9 @@ python_check_deps() {
has_version "dev-python/six[${PYTHON_USEDEP}]"
}
-#PATCHES=(
-# "${FILESDIR}/spice-libressl.patch"
-#)
+PATCHES=(
+ "${FILESDIR}/libressl.patch"
+)
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && python-any-r1_pkg_setup