0.9.6claws50
authorChristoph Hohmann <reboot@gmx.ch>
Fri, 24 Oct 2003 19:21:29 +0000 (19:21 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Fri, 24 Oct 2003 19:21:29 +0000 (19:21 +0000)
* src/sgpgme.c
        change fetching of signature key's trust

ChangeLog.claws
configure.ac
src/sgpgme.c

index 8c74278..1eaa8ce 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-24 [paul]      0.9.6claws50
+
+       * src/sgpgme.c
+               change fetching of signature key's trust
+
 2003-10-24 [paul]      0.9.6claws49
 
        * po/sk.po
 2003-10-24 [paul]      0.9.6claws49
 
        * po/sk.po
index e37627c..54c4131 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=49
+EXTRA_VERSION=50
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 391f088..179fff7 100644 (file)
@@ -100,20 +100,17 @@ static const gchar *get_validity_str(unsigned long validity)
 
 gchar *sgpgme_sigstat_info_short(GpgmeCtx ctx, GpgmeSigStat status)
 {
 
 gchar *sgpgme_sigstat_info_short(GpgmeCtx ctx, GpgmeSigStat status)
 {
-       GpgmeKey key;
-
        switch (status) {
        case GPGME_SIG_STAT_GOOD:
        {
        switch (status) {
        case GPGME_SIG_STAT_GOOD:
        {
-               unsigned long validity = 0, val, i;     
+               GpgmeKey key;
+               unsigned long validity = 0;
        
        
-               if (gpgme_get_sig_key(ctx, 0, &key) != GPGME_No_Error)
-                       return g_strdup(_("Error"));
-               
-               i = 0;
-               while ((val = gpgme_key_get_ulong_attr(key, GPGME_ATTR_VALIDITY, NULL, i++)) > 0)
-                       if (val > validity)
-                               validity = val;
+               if (gpgme_get_sig_key(ctx, 0, &key) != GPGME_No_Error)
+                       return g_strdup(_("Error"));
+
+               validity = gpgme_get_sig_ulong_attr(ctx, 0,
+                       GPGME_ATTR_VALIDITY, 0);
                
                return g_strdup_printf(_("Valid signature by %s (Trust: %s)"),
                        gpgme_key_get_string_attr(key, GPGME_ATTR_USERID, NULL, 0),
                
                return g_strdup_printf(_("Valid signature by %s (Trust: %s)"),
                        gpgme_key_get_string_attr(key, GPGME_ATTR_USERID, NULL, 0),