summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/debug.c b/lib/debug.c
index 8e048153d2..870cc0230d 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -139,11 +139,11 @@ static char str[512];
}
#endif
-#ifdef X509_DEBUG
-int gnutls_x509_extract_certificate_dn( const gnutls_datum*, gnutls_dn*);
+#ifdef DEBUG
+int gnutls_x509_extract_certificate_dn( const gnutls_datum*, gnutls_x509_dn*);
const char* GET_CN( gnutls_datum cert) {
-static gnutls_dn dn;
+static gnutls_x509_dn dn;
if (gnutls_x509_extract_certificate_dn( &cert, &dn) >= 0)
return &dn.common_name[0]; /* FIXME */