summaryrefslogtreecommitdiff
path: root/libdane/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-01 18:11:15 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-01 18:11:15 +0100
commita8a6d58617f1a3d05d517e38a2ba9d71f32aa082 (patch)
treeae63eb803a0d1413c3dc9ab21d77be3009328378 /libdane/includes
parent8cf976ce8bd94915509fd80665807db2d954cbc8 (diff)
downloadgnutls-a8a6d58617f1a3d05d517e38a2ba9d71f32aa082.tar.gz
Added new functions to convert types to strings.
Diffstat (limited to 'libdane/includes')
-rw-r--r--libdane/includes/gnutls/dane.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdane/includes/gnutls/dane.h b/libdane/includes/gnutls/dane.h
index 59392dac2c..9a08737a6a 100644
--- a/libdane/includes/gnutls/dane.h
+++ b/libdane/includes/gnutls/dane.h
@@ -101,7 +101,7 @@ typedef struct dane_query_st *dane_query_t;
typedef enum dane_state_flags_t
{
DANE_F_IGNORE_LOCAL_RESOLVER = 1,
-} dane_verify_flags_t;
+} dane_state_flags_t;
int dane_state_init (dane_state_t* s, unsigned int flags);
void dane_state_deinit (dane_state_t s);
@@ -115,6 +115,9 @@ int dane_query_data(dane_query_t q, unsigned int idx,
unsigned int *match, gnutls_datum_t * data);
void dane_query_deinit(dane_query_t q);
+const char* dane_cert_type_name(dane_cert_type_t type);
+const char* dane_match_type_name(dane_match_type_t type);
+const char* dane_cert_usage_name(dane_cert_usage_t usage);
/**
* dane_verify_status_t: