forked from enlightenment/efl
Print signature and certificate lenght (give you an idea of the over head).
SVN revision: 38810
This commit is contained in:
parent
71bd02f251
commit
c1679231b7
|
@ -218,7 +218,9 @@ do_eet_check(const char *file)
|
||||||
{
|
{
|
||||||
Eet_File *ef;
|
Eet_File *ef;
|
||||||
const void *der;
|
const void *der;
|
||||||
|
const void *sign;
|
||||||
int der_length;
|
int der_length;
|
||||||
|
int sign_length;
|
||||||
|
|
||||||
ef = eet_open(file, EET_FILE_MODE_READ);
|
ef = eet_open(file, EET_FILE_MODE_READ);
|
||||||
if (!ef)
|
if (!ef)
|
||||||
|
@ -229,8 +231,12 @@ do_eet_check(const char *file)
|
||||||
|
|
||||||
der = eet_identity_x509(ef, &der_length);
|
der = eet_identity_x509(ef, &der_length);
|
||||||
|
|
||||||
|
fprintf(stderr, "Certificate length %i.\n", der_length);
|
||||||
eet_identity_certificate_print(der, der_length, stdout);
|
eet_identity_certificate_print(der, der_length, stdout);
|
||||||
|
|
||||||
|
sign = eet_identity_signature(ef, &sign_length);
|
||||||
|
fprintf(stderr, "Signature length %i.\n", sign_length);
|
||||||
|
|
||||||
eet_close(ef);
|
eet_close(ef);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue