diff options
author | Gordon GECOS <u@adam> | 2023-11-26 14:29:29 -0500 |
---|---|---|
committer | Gordon GECOS <u@adam> | 2023-11-26 14:29:29 -0500 |
commit | 0dbdce295db3cfa35dfe913dfcfbe45eeff0031c (patch) | |
tree | 07cdcd558d968712070405dcd6e958a6360a2581 | |
parent | 53927610e50170cc0d7ead7b17e6c933f88f9568 (diff) |
improve output format
-rwxr-xr-x | src/ssh-keysign.pk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ssh-keysign.pk b/src/ssh-keysign.pk index 40ccd97..db299d4 100755 --- a/src/ssh-keysign.pk +++ b/src/ssh-keysign.pk | |||
@@ -67,16 +67,16 @@ try | |||
67 | { | 67 | { |
68 | var fd = open (file_name, IOS_M_RDONLY); | 68 | var fd = open (file_name, IOS_M_RDONLY); |
69 | var sig = SSH_Signature @ fd : 0#B; | 69 | var sig = SSH_Signature @ fd : 0#B; |
70 | printf ("%s: %s %s (raw: %s)\n", "publickey", | 70 | printf ("%s: %s (%s %s)\n", "publickey", |
71 | catos (sig.publickey.blob.key_type.bytes), | ||
72 | encode (sig.publickey.blob), | 71 | encode (sig.publickey.blob), |
72 | catos (sig.publickey.blob.key_type.bytes), | ||
73 | encode (sig.publickey.blob.key_data.bytes)); | 73 | encode (sig.publickey.blob.key_data.bytes)); |
74 | printf ("%s: %v\n", "namespace", catos (sig.namespace.bytes)); | 74 | printf ("%s: %v\n", "namespace", catos (sig.namespace.bytes)); |
75 | printf ("%s: <%i32d bytes>\n", "reserved", sig.reserved.size); | 75 | printf ("%s: <%i32d bytes>\n", "reserved", sig.reserved.size); |
76 | printf ("%s: %s\n", "hash_algorithm", catos (sig.hash_algorithm.bytes)); | 76 | printf ("%s: %s\n", "hash_algorithm", catos (sig.hash_algorithm.bytes)); |
77 | printf ("%s: %s %s (raw: %s)\n", "signature", | 77 | printf ("%s: %s (%s %s)\n", "signature", |
78 | catos (sig.signature.blob.sig_type.bytes), | ||
79 | encode (sig.signature.blob), | 78 | encode (sig.signature.blob), |
79 | catos (sig.signature.blob.sig_type.bytes), | ||
80 | encode (sig.signature.blob.sig_data.bytes)); | 80 | encode (sig.signature.blob.sig_data.bytes)); |
81 | close (fd); | 81 | close (fd); |
82 | } | 82 | } |