Browse Source

Fix generation of certs_test.h

Fix formatting of certs_test.h:
- remove trailing spaces
- change leading tab stops to spaces
Sean Parkinson 5 years ago
parent
commit
feea036ec9
2 changed files with 618 additions and 612 deletions
  1. 10 4
      gencertbuf.pl
  2. 608 608
      wolfssl/certs_test.h

+ 10 - 4
gencertbuf.pl

@@ -37,8 +37,11 @@ my @fileList_ecc = (
 # ed25519 keys and certs
 # Used with HAVE_ED25519 define.
 my @fileList_ed = (
-        [ "./certs/ed25519/server-ed25519.der",    "server_ed25519_cert" ],
-        [ "./certs/ed25519/ca-ed25519.der",        "ca_ed25519_cert" ]
+        [ "./certs/ed25519/server-ed25519.der",     "server_ed25519_cert" ],
+        [ "./certs/ed25519/server-ed25519-key.der", "server_ed25519_key" ],
+        [ "./certs/ed25519/ca-ed25519.der",         "ca_ed25519_cert" ],
+        [ "./certs/ed25519/client-ed25519.der",     "client_ed25519_cert" ],
+        [ "./certs/ed25519/client-ed25519-key.der", "client_ed25519_key" ]
         );
 
 # 1024-bit certs/keys to be converted
@@ -223,14 +226,17 @@ sub file_to_hex {
     for (my $i = 0, my $j = 1; $i < $fileLen; $i++, $j++)
     {
         if ($j == 1) {
-            print OUT_FILE "\t";
+            print OUT_FILE "        ";
+        }
+        if ($j != 1) {
+            print OUT_FILE " ";
         }
         read($fp, $byte, 1) or die "Error reading $fileName";
         my $output = sprintf("0x%02X", ord($byte));
         print OUT_FILE $output;
 
         if ($i != ($fileLen - 1)) {
-            print OUT_FILE ", ";
+            print OUT_FILE ",";
         }
 
         if ($j == 10) {

File diff suppressed because it is too large
+ 608 - 608
wolfssl/certs_test.h


Some files were not shown because too many files changed in this diff