diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-02 12:53:54 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-02 15:40:18 +0200 |
commit | cf73cf2e8d8045ea480de0f667668ee3464d0546 (patch) | |
tree | 1c6f4931e2838b22835ec1a0c7715295b05412e6 /lib/includes/gnutls | |
parent | 4ca8dedc8ec0127ce3ecaa3829882e32bc5f130e (diff) | |
download | gnutls-cf73cf2e8d8045ea480de0f667668ee3464d0546.tar.gz |
exported gnutls_x509_crt_equals() and gnutls_x509_crt_equals2()
These functions provide a way to compare parsed certificates. They
were used internally and they are quite useful to be made available.
Diffstat (limited to 'lib/includes/gnutls')
-rw-r--r-- | lib/includes/gnutls/x509.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h index 521289b4af..4c3d5b25a9 100644 --- a/lib/includes/gnutls/x509.h +++ b/lib/includes/gnutls/x509.h @@ -127,6 +127,10 @@ 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); + +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); + int gnutls_x509_crt_import(gnutls_x509_crt_t cert, const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format); |