diff options
Diffstat (limited to '')
-rw-r--r-- | common/t-sexputil.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/t-sexputil.c b/common/t-sexputil.c index 05da162bf..987b06255 100644 --- a/common/t-sexputil.c +++ b/common/t-sexputil.c @@ -35,7 +35,7 @@ test_hash_algo_from_sigval (void) { int algo; /* A real world example. */ - unsigned char example1_rsa_sha1[] = + unsigned char example1_rsa_sha1[] = ("\x28\x37\x3A\x73\x69\x67\x2D\x76\x61\x6C\x28\x33\x3A\x72\x73\x61" "\x28\x31\x3A\x73\x31\x32\x38\x3A\x17\xD2\xE9\x5F\xB4\x24\xD4\x1E" "\x8C\xEE\x94\xDA\x41\x42\x1F\x26\x5E\xF4\x6D\xEC\x5B\xBD\x5B\x89" @@ -48,7 +48,7 @@ test_hash_algo_from_sigval (void) "\x27\xAC\x43\x45\xFA\x04\xD1\x22\x29\x29\x28\x34\x3A\x68\x61\x73" "\x68\x34\x3A\x73\x68\x61\x31\x29\x29"); /* The same but without the hash algo. */ - unsigned char example1_rsa[] = + unsigned char example1_rsa[] = ("\x28\x37\x3A\x73\x69\x67\x2D\x76\x61\x6C\x28\x33\x3A\x72\x73\x61" "\x28\x31\x3A\x73\x31\x32\x38\x3A\x17\xD2\xE9\x5F\xB4\x24\xD4\x1E" "\x8C\xEE\x94\xDA\x41\x42\x1F\x26\x5E\xF4\x6D\xEC\x5B\xBD\x5B\x89" @@ -105,7 +105,7 @@ test_make_canon_sexp_from_rsa_pk (void) "\x3d\x14\xbb\xea\x63\x65\xa7\xf1\xf2\xf8\x97\x74\xa7\x29\x28\x31" "\x3a\x65\x34\x3a\x40\x00\x00\x81\x29\x29\x29", 171 - }, + }, { "\x63\xB4\x12\x48\x08\x48\xC0\x76\xAA\x8E\xF1\xF8\x7F\x5E\x9B\x89", 16, @@ -116,7 +116,7 @@ test_make_canon_sexp_from_rsa_pk (void) "\x48\xc0\x76\xaa\x8e\xf1\xf8\x7f\x5e\x9b\x89\x29\x28\x31\x3a\x65" "\x31\x3a\x03\x29\x29\x29", 54, - }, + }, { "", 0, @@ -149,7 +149,7 @@ test_make_canon_sexp_from_rsa_pk (void) fprintf (stderr, "%s:%d: out of core\n", __FILE__, __LINE__); exit (1); } - + if (length != tests[idx].resultlen) fail (idx); if (memcmp (sexp, tests[idx].result, tests[idx].resultlen)) @@ -189,4 +189,3 @@ main (int argc, char **argv) return 0; } - |