Explorar o código

Fix building with libtasn1 < 3.1

The data type ASN1_ARRAY_TYPE is deprecated, but still available
in current versions of libtasn1.

This fixes building with the version of libtasn1 from current
debian stable.
Martin Storsjö %!s(int64=11) %!d(string=hai) anos
pai
achega
bc23f17524
Modificáronse 2 ficheiros con 4 adicións e 2 borrados
  1. 3 1
      contrib/spnego/spnego.asn1
  2. 1 1
      contrib/spnego/spnego_asn1.h

+ 3 - 1
contrib/spnego/spnego.asn1

@@ -1,7 +1,9 @@
 -- This file has been taken from heimdal gssapi implementation
 -- and modified by Julien 'Lta' BALLET <contact@lta.io> to work with libtasn1
 
-SPNEGO DEFINITIONS EXPLICIT TAGS ::=
+SPNEGO { }
+
+DEFINITIONS EXPLICIT TAGS ::=
 BEGIN
 
 MechType ::= OBJECT IDENTIFIER

+ 1 - 1
contrib/spnego/spnego_asn1.h

@@ -4,6 +4,6 @@
 
 #include <libtasn1.h>
 
-extern const asn1_static_node spnego_asn1_conf[];
+extern const ASN1_ARRAY_TYPE spnego_asn1_conf[];
 
 #endif