unsigned int str_size, len;
gnutls_datum_t td;
-#ifdef HAVE_ASN1_DECODE_SIMPLE_BER
if (allow_ber)
ret =
asn1_decode_simple_ber(etype, der, der_size, &str, &str_size, NULL);
else
-#endif
ret =
asn1_decode_simple_der(etype, der, der_size, (const uint8_t**)&str, &str_size);
if (ret != ASN1_SUCCESS) {
memcpy(td.data, str, str_size);
td.data[str_size] = 0;
-#ifdef HAVE_ASN1_DECODE_SIMPLE_BER
if (allow_ber)
free(str);
-#endif
ret = make_printable_string(etype, &td, output);
if (ret == GNUTLS_E_INVALID_REQUEST) { /* unsupported etype */
included_libtasn1=$withval,
included_libtasn1=no)
if test "$included_libtasn1" = "no"; then
- PKG_CHECK_MODULES(LIBTASN1, [libtasn1 >= 3.9], [], [included_libtasn1=yes])
+ PKG_CHECK_MODULES(LIBTASN1, [libtasn1 >= 4.3], [], [included_libtasn1=yes])
if test "$included_libtasn1" = yes; then
AC_MSG_WARN([[
***
GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
fi
- oldlibs="$LIBS"
- LIBS="$LIBS $LIBTASN1_LIBS"
- oldcflags="$CFLAGS"
- CFLAGS="$CFLAGS $LIBTASN1_CFLAGS"
- AC_CHECK_FUNC(asn1_decode_simple_ber,
- [AC_DEFINE(HAVE_ASN1_DECODE_SIMPLE_BER, 1, [Have this function])], [])
-
AC_MSG_CHECKING([whether C99 macros are supported])
AC_TRY_COMPILE(,
[