diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-07-20 18:59:24 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-07-20 18:59:24 +0000 |
commit | ae8ed9ccddbec446829a17af085ac8d235503107 (patch) | |
tree | 8e5a649984f2ddda0d82070bb3afee4fc85bbd1d /lib/gnutls_global.c | |
parent | 1b991c03e45316d576adb180505b1479f3bb44df (diff) | |
download | gnutls-ae8ed9ccddbec446829a17af085ac8d235503107.tar.gz |
updated file structure
Diffstat (limited to 'lib/gnutls_global.c')
-rw-r--r-- | lib/gnutls_global.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c index 51b81a88c9..723bece6f9 100644 --- a/lib/gnutls_global.c +++ b/lib/gnutls_global.c @@ -25,6 +25,10 @@ # include <signal.h> #endif +/* created by asn1c */ +extern const static_asn pkcs1_asn1_tab[]; +extern const static_asn pkix_asn1_tab[]; + static void* old_sig_handler; ssize_t (*recv_func)( SOCKET, void*, size_t, int); ssize_t (*send_func)( SOCKET,const void*, size_t, int); @@ -52,7 +56,7 @@ int gnutls_is_secure_memory(const void* mem) { * You must call gnutls_global_deinit() when gnutls usage is no longer needed * Returns zero on success. **/ -int gnutls_global_init(char* PKIX, char* PKCS1) +int gnutls_global_init() { int result; @@ -74,15 +78,16 @@ int gnutls_global_init(char* PKIX, char* PKCS1) * version. */ - result = asn1_parser_asn1(PKIX, &PKIX1_ASN); - +// result=asn1_create_tree( (void*)pkix_asn1_tab, &PKIX1_ASN); + result=asn1_parser_asn1( "/home/nmav/cvs/gnutls/lib/pkix.asn", &PKIX1_ASN); if (result != ASN_OK) { return GNUTLS_E_ASN1_PARSING_ERROR; } - - result = asn1_parser_asn1(PKCS1, &PKCS1_ASN); +// result=asn1_create_tree( (void*)pkcs1_asn1_tab, &PKCS1_ASN); + result=asn1_parser_asn1( "/home/nmav/cvs/gnutls/lib/pkcs1.asn" , &PKCS1_ASN); if (result != ASN_OK) { + asn1_delete_structure( PKIX1_ASN); return GNUTLS_E_PARSING_ERROR; } |