mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-08 08:22:13 +00:00
ssl_verify: Fix build for newer LibreSSL
LibreSSL 2.7 does not define ASN1_STRING_get0_data, like OpenSSL 1.1. This fixes https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229044. Original patch from Piotr Kubaj. Reported-by: Jack L. <xxjack12xx@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
345557f044
commit
638c77f3e6
@ -33,7 +33,8 @@
|
||||
#include <string.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER)
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000 || \
|
||||
(defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000)
|
||||
static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1)
|
||||
{
|
||||
return M_ASN1_STRING_data(asn1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user