summaryrefslogtreecommitdiff
path: root/lib/x509/common.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-11-27 15:06:11 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-11-27 15:51:04 +0100
commit0349b3c4c2d33b13fc0757d363714214135c9eff (patch)
treeeb1cb14d7171fd5474c6ad0f246783900db233f8 /lib/x509/common.h
parented3913fdbc8ffe3b552c0d0f593f17c4e1a273d5 (diff)
downloadgnutls-0349b3c4c2d33b13fc0757d363714214135c9eff.tar.gz
Added flag GNUTLS_X509_CRT_LIST_SORT for gnutls_x509_crt_list_import*
That also allows automatically sorting input chains to the gnutls_certificate_credentials_t structure.
Diffstat (limited to 'lib/x509/common.h')
-rw-r--r--lib/x509/common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/x509/common.h b/lib/x509/common.h
index d39a87c24f..f319b5be1e 100644
--- a/lib/x509/common.h
+++ b/lib/x509/common.h
@@ -231,4 +231,13 @@ int x509_raw_crt_to_raw_pubkey(const gnutls_datum_t * cert,
int x509_crt_to_raw_pubkey(gnutls_x509_crt_t crt,
gnutls_datum_t * rpubkey);
+
+typedef void (*gnutls_cert_vfunc)(gnutls_x509_crt_t);
+
+gnutls_x509_crt_t *_gnutls_sort_clist(gnutls_x509_crt_t
+ sorted[DEFAULT_MAX_VERIFY_DEPTH],
+ gnutls_x509_crt_t * clist,
+ unsigned int *clist_size,
+ gnutls_cert_vfunc func);
+
#endif