about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-09-24 00:44:48 +0100
committerJames Booth <boothj5@gmail.com>2015-09-24 00:44:48 +0100
commit8d2c7f1ac0b5e772310b1bb7f324a91bbf8b3805 (patch)
tree7fdf5152c927bcae02acf36257a60ca12def6375
parent6f8ad6b8e80da98273870ea1b241065418a26367 (diff)
downloadprofani-tty-8d2c7f1ac0b5e772310b1bb7f324a91bbf8b3805.tar.gz
Show trusted certificate fingerprint first
-rw-r--r--src/command/commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 70f41a6d..94734563 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -201,6 +201,9 @@ cmd_tls(ProfWin *window, const char * const command, gchar **args)
         }
         while (curr) {
             TLSCertificate *cert = curr->data;
+            if (cert->fingerprint) {
+                cons_show("Fingerprint  : %s", cert->fingerprint);
+            }
             if (cert->domain) {
                 cons_show("Domain       : %s", cert->domain);
             }
@@ -216,9 +219,6 @@ cmd_tls(ProfWin *window, const char * const command, gchar **args)
             if (cert->notafter) {
                 cons_show("End          : %s", cert->notafter);
             }
-            if (cert->fingerprint) {
-                cons_show("Fingerprint  : %s", cert->fingerprint);
-            }
             cons_show("");
             curr = g_list_next(curr);
         }