[seahorse/gnome-3-8] pkcs11: Don't list intermediate CA certificates as 'Personal Certificate'



commit 022fe230d705afdba8eb23050b03b8541feafbbe
Author: Stef Walter <stefw gnome org>
Date:   Sun Apr 21 15:44:28 2013 +0200

    pkcs11: Don't list intermediate CA certificates as 'Personal Certificate'
    
     * There will be further fine tuning of the description later

 pkcs11/seahorse-certificate.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/pkcs11/seahorse-certificate.c b/pkcs11/seahorse-certificate.c
index f7b8645..8ad71e9 100644
--- a/pkcs11/seahorse-certificate.c
+++ b/pkcs11/seahorse-certificate.c
@@ -173,10 +173,11 @@ calc_is_personal_and_trusted (SeahorseCertificate *self)
                        return SEAHORSE_FLAG_PERSONAL;
        }
 
-       if (gcr_certificate_get_basic_constraints (GCR_CERTIFICATE (self), &is_ca, NULL))
-               return is_ca ? 0 : SEAHORSE_FLAG_PERSONAL;
+       if (gcr_certificate_get_basic_constraints (GCR_CERTIFICATE (self), &is_ca, NULL) && is_ca)
+               return 0;
 
-       return SEAHORSE_FLAG_PERSONAL;
+       /* The default for now */
+       return 0;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]