summaryrefslogtreecommitdiff
path: root/lib/x509/common.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-02-19 16:40:54 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-02-19 16:40:54 +0100
commitd98a15fae80cf1d7669e46c7e485d20231503413 (patch)
tree098355ee6412db690735b140bdfb78d0f1214e1e /lib/x509/common.h
parent690479ff508c74296a07d2476e8f6c98b9abfa9c (diff)
downloadgnutls-d98a15fae80cf1d7669e46c7e485d20231503413.tar.gz
use bool types when needed.
Diffstat (limited to 'lib/x509/common.h')
-rw-r--r--lib/x509/common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/x509/common.h b/lib/x509/common.h
index 358dc072c0..30ff3a5d63 100644
--- a/lib/x509/common.h
+++ b/lib/x509/common.h
@@ -26,6 +26,7 @@
#include <algorithms.h>
#include <abstract_int.h>
#include <x509/x509_int.h>
+#include <stdbool.h>
#include <fips.h>
#define MAX_STRING_LEN 512
@@ -171,11 +172,11 @@ int
_gnutls_x509_get_raw_dn2(ASN1_TYPE c2, gnutls_datum_t * raw,
const char *whom, gnutls_datum_t * dn);
-int
+bool
_gnutls_check_if_same_cert(gnutls_x509_crt_t cert1,
gnutls_x509_crt_t cert2);
-int
+bool
_gnutls_check_if_same_cert2(gnutls_x509_crt_t cert1,
gnutls_datum_t * cert2bin);
@@ -192,4 +193,6 @@ int set_extension(ASN1_TYPE asn, const char *root,
int _gnutls_strdatum_to_buf(gnutls_datum_t * d, void *buf,
size_t * sizeof_buf);
+bool _gnutls_is_same_dn(gnutls_x509_crt_t cert1, gnutls_x509_crt_t cert2);
+
#endif