diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-10-30 19:03:48 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-10-30 19:03:48 +0000 |
commit | 51ecb3e44227b3224ebda11a0ded9b0eddb240d7 (patch) | |
tree | 497f4ad1c113cb316ca47567a7b52e1f9f6798fb /lib/gnutls_global.c | |
parent | ffca7d762e28cd66427809fb3fbc23aec9d6e376 (diff) | |
download | gnutls-51ecb3e44227b3224ebda11a0ded9b0eddb240d7.tar.gz |
added version check against libtasn1
Diffstat (limited to 'lib/gnutls_global.c')
-rw-r--r-- | lib/gnutls_global.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c index 0af34fa73d..f4d59e7c76 100644 --- a/lib/gnutls_global.c +++ b/lib/gnutls_global.c @@ -201,6 +201,11 @@ int gnutls_global_init( void) * This should not deal with files in the final * version. */ + + if (asn1_check_version(GNUTLS_LIBTASN1_VERSION)==NULL) { + gnutls_assert(); + return GNUTLS_E_INCOMPATIBLE_LIBTASN1_LIBRARY; + } res=asn1_array2tree( pkix_asn1_tab, &_gnutls_pkix1_asn, NULL); if (res != ASN1_SUCCESS) { |