summaryrefslogtreecommitdiff
path: root/legacy/eet/src/bin
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-01-27 13:12:59 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-01-27 13:12:59 +0000
commitc1679231b7abec027643f5cfbebe0d0567ce670a (patch)
tree44a0980b4f3bb33e4473f28bd7fd0706a3c153b6 /legacy/eet/src/bin
parent71bd02f2511dfea91b6a8cae2ddd0ca4096ff19e (diff)
Print signature and certificate lenght (give you an idea of the over head).
SVN revision: 38810
Diffstat (limited to 'legacy/eet/src/bin')
-rw-r--r--legacy/eet/src/bin/eet_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/legacy/eet/src/bin/eet_main.c b/legacy/eet/src/bin/eet_main.c
index 79dd490bfa..10d3ca4a63 100644
--- a/legacy/eet/src/bin/eet_main.c
+++ b/legacy/eet/src/bin/eet_main.c
@@ -218,7 +218,9 @@ do_eet_check(const char *file)
218{ 218{
219 Eet_File *ef; 219 Eet_File *ef;
220 const void *der; 220 const void *der;
221 const void *sign;
221 int der_length; 222 int der_length;
223 int sign_length;
222 224
223 ef = eet_open(file, EET_FILE_MODE_READ); 225 ef = eet_open(file, EET_FILE_MODE_READ);
224 if (!ef) 226 if (!ef)
@@ -229,8 +231,12 @@ do_eet_check(const char *file)
229 231
230 der = eet_identity_x509(ef, &der_length); 232 der = eet_identity_x509(ef, &der_length);
231 233
234 fprintf(stderr, "Certificate length %i.\n", der_length);
232 eet_identity_certificate_print(der, der_length, stdout); 235 eet_identity_certificate_print(der, der_length, stdout);
233 236
237 sign = eet_identity_signature(ef, &sign_length);
238 fprintf(stderr, "Signature length %i.\n", sign_length);
239
234 eet_close(ef); 240 eet_close(ef);
235} 241}
236 242