summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/includes/gnutls/abstract.h3
-rw-r--r--lib/pcert.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/includes/gnutls/abstract.h b/lib/includes/gnutls/abstract.h
index d69e30ca51..fcff0a562f 100644
--- a/lib/includes/gnutls/abstract.h
+++ b/lib/includes/gnutls/abstract.h
@@ -644,8 +644,7 @@ typedef struct gnutls_pcert_st {
gnutls_certificate_type_t type;
} gnutls_pcert_st;
-/* Do not initialize the "cert" element of
- * the certificate */
+/* This flag is unused/ignored */
#define GNUTLS_PCERT_NO_CERT 1
int gnutls_pcert_import_x509(gnutls_pcert_st * pcert,
diff --git a/lib/pcert.c b/lib/pcert.c
index 3476405022..b800e91fc4 100644
--- a/lib/pcert.c
+++ b/lib/pcert.c
@@ -426,7 +426,7 @@ _gnutls_get_auth_info_pcert(gnutls_pcert_st * pcert,
raw_certificate_list
[0],
GNUTLS_X509_FMT_DER,
- GNUTLS_PCERT_NO_CERT);
+ 0);
default:
gnutls_assert();
return GNUTLS_E_INTERNAL_ERROR;