diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-06-16 19:48:44 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-06-16 19:48:44 +0000 |
commit | ee1cbef7c00139f75095eec2fa0861a55c42869e (patch) | |
tree | 497dd1e37f3170577e297df2495cc8d67a700cbe /lib | |
parent | cafcbccd4c7328688af3d445c55424b49373c703 (diff) | |
download | gnutls-ee1cbef7c00139f75095eec2fa0861a55c42869e.tar.gz |
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_int_compat.c | 20 | ||||
-rw-r--r-- | lib/gnutls_x509.c | 2 | ||||
-rw-r--r-- | lib/x509_xml.c | 4 |
3 files changed, 23 insertions, 3 deletions
diff --git a/lib/gnutls_int_compat.c b/lib/gnutls_int_compat.c index cf97cb7113..1f23a5bf9b 100644 --- a/lib/gnutls_int_compat.c +++ b/lib/gnutls_int_compat.c @@ -3,7 +3,7 @@ /* This file contains functions needed only for binary compatibility * with previous versions. */ -/* #define GNUTLS_BACKWARDS_COMPATIBLE */ +#define GNUTLS_BACKWARDS_COMPATIBLE #ifdef GNUTLS_BACKWARDS_COMPATIBLE @@ -22,6 +22,24 @@ int gnutls_db_clean( GNUTLS_STATE state) { return GNUTLS_E_UNIMPLEMENTED_FEATURE; } +/* These were badly named in previous versions + */ +void gnutls_db_set_retrieve_function( GNUTLS_STATE state, GNUTLS_DB_RETR_FUNC func) +{ + return gnutls_db_set_retrieve_func(state, func); +} + +void gnutls_db_set_remove_function( GNUTLS_STATE state, GNUTLS_DB_REMOVE_FUNC func) +{ + return gnutls_db_set_remove_func(state, func); +} + +void gnutls_db_set_store_function( GNUTLS_STATE state, GNUTLS_DB_STORE_FUNC func) +{ + return gnutls_db_set_store_func(state, func); +} + + /* nothing here */ #endif /* GNUTLS_BACKWARDS_COMPATIBLE */ diff --git a/lib/gnutls_x509.c b/lib/gnutls_x509.c index c154c7df45..9dc73b0e49 100644 --- a/lib/gnutls_x509.c +++ b/lib/gnutls_x509.c @@ -2599,5 +2599,3 @@ time_t _gnutls_x509_generalTime2gtime(char *ttime) return _gnutls_x509_time2gtime( ttime, year); } - -
\ No newline at end of file diff --git a/lib/x509_xml.c b/lib/x509_xml.c index 2a47e20b4c..5ad0f0fbbd 100644 --- a/lib/x509_xml.c +++ b/lib/x509_xml.c @@ -113,6 +113,8 @@ static int is_leaf(ASN1_TYPE p) return GNUTLS_E_MEMORY_ERROR; \ } +#define XML_HEADER "<?xml version='1.0' encoding='UTF-8'?>\n" + static int _gnutls_asn1_get_structure_xml(ASN1_TYPE structure, char *name, gnutls_datum * res) @@ -129,6 +131,8 @@ _gnutls_asn1_get_structure_xml(ASN1_TYPE structure, char *name, res->data = NULL; res->size = 0; + STR_APPEND(XML_HEADER); + root = _asn1_find_node(structure, name); if (root == NULL) |