mkfwimage: Add image type definition for WA images
[openwrt/.git] / tools / firmware-utils / src / fw.h
index e37859c52d7d30e11d1c02a3b1f34c090254d90f..44f8d851d2de7e0321dec222fd0c379f4b6916bc 100644 (file)
@@ -24,6 +24,7 @@
 #define MAGIC_HEADER   "OPEN"
 #define MAGIC_PART     "PART"
 #define MAGIC_END      "END."
+#define MAGIC_ENDS     "ENDS"
 
 #define MAGIC_LENGTH   4
 
@@ -57,6 +58,13 @@ typedef struct signature {
        u_int32_t pad;
 } __attribute__ ((packed)) signature_t;
 
+typedef struct signature_rsa {
+       char magic[MAGIC_LENGTH];
+//     u_int32_t crc;
+       unsigned char rsa_signature[256];
+       u_int32_t pad;
+} __attribute__ ((packed)) signature_rsa_t;
+
 #define VERSION "1.2"
 
 #define INFO(...) fprintf(stdout, __VA_ARGS__)