]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
GNUTLS_PCERT_NO_CERT: marked as unused/ignored
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 12 Dec 2018 08:48:01 +0000 (09:48 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 12 Dec 2018 08:48:03 +0000 (09:48 +0100)
This flag was already a no-op.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/includes/gnutls/abstract.h
lib/pcert.c

index d69e30ca5147978d0856584e798e77974c61a042..fcff0a562f8e99c56b415ee08975ee04650eaa59 100644 (file)
@@ -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,
index 34764050222bf040d100a1675b22c0ffc9d2fc54..b800e91fc4c11428633154f5531ee22784cd5d40 100644 (file)
@@ -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;