diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-17 15:26:56 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-17 17:26:38 +0100 |
commit | d4a55a39ea022a12e12c51f217a590642277af76 (patch) | |
tree | 6ba8609d35cfd1c710c38a0bec1e429988dc3de7 /lib/includes/gnutls/x509.h | |
parent | 1f6aaca690a569ab9bd0222217ea225007bc0e32 (diff) | |
download | gnutls-d4a55a39ea022a12e12c51f217a590642277af76.tar.gz |
Added gnutls_x509_crt_set_flags()
This functions allows specifying flags to the certificate object.
In particular it allows the single flag GNUTLS_X509_CRT_FLAG_IGNORE_SANITY
which allows to ignore sanity checks at the import of the certificate.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/includes/gnutls/x509.h')
-rw-r--r-- | lib/includes/gnutls/x509.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h index a4389156f2..c47fad1c8c 100644 --- a/lib/includes/gnutls/x509.h +++ b/lib/includes/gnutls/x509.h @@ -131,6 +131,19 @@ typedef enum gnutls_certificate_import_flags { int gnutls_x509_crt_init(gnutls_x509_crt_t * cert); void gnutls_x509_crt_deinit(gnutls_x509_crt_t cert); +/** + * gnutls_certificate_import_flags: + * @GNUTLS_X509_CRT_FLAG_IGNORE_SANITY: Ignore any sanity checks at the + * import of the certificate; i.e., ignore checks such as version/field + * matching and strict time field checks. Intended to be used for debugging. + * + * Enumeration of different certificate flags. + */ +typedef enum gnutls_x509_crt_flags { + GNUTLS_X509_CRT_FLAG_IGNORE_SANITY = 1 +} gnutls_x509_crt_flags; +void gnutls_x509_crt_set_flags(gnutls_x509_crt_t cert, unsigned flags); + unsigned gnutls_x509_crt_equals(gnutls_x509_crt_t cert1, gnutls_x509_crt_t cert2); unsigned gnutls_x509_crt_equals2(gnutls_x509_crt_t cert1, gnutls_datum_t * der); |