diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-07-31 21:11:49 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-07-31 21:16:46 +0200 |
commit | 85986c82ec5edf498196476bcf671a36cf4ed091 (patch) | |
tree | 551fad53f8ccfb299dd8a71e3cf751d0285a2291 /lib/includes | |
parent | c86c2f88be5644ec8c82d23138fd23bc20184842 (diff) | |
download | gnutls-85986c82ec5edf498196476bcf671a36cf4ed091.tar.gz |
Added GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED flag for gnutls_x509_crt_list_import.
It checks whether the list to be imported is properly sorted.
Diffstat (limited to 'lib/includes')
-rw-r--r-- | lib/includes/gnutls/x509.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h index f6bfdd8e78..09d26090f9 100644 --- a/lib/includes/gnutls/x509.h +++ b/lib/includes/gnutls/x509.h @@ -92,12 +92,16 @@ extern "C" * @GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED: Fail if the * certificates in the buffer are more than the space allocated for * certificates. The error code will be %GNUTLS_E_SHORT_MEMORY_BUFFER. + * @GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED: Fail if the certificates + * in the buffer are not ordered starting from subject to issuer. + * The error code will be %GNUTLS_E_CERTIFICATE_LIST_UNSORTED. * * Enumeration of different certificate import flags. */ typedef enum gnutls_certificate_import_flags { - GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED = 1 + GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED = 1, + GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED = 2 } gnutls_certificate_import_flags; int gnutls_x509_crt_init (gnutls_x509_crt_t * cert); |