summaryrefslogtreecommitdiff
path: root/eppic_scripts/keyring_3_10_to_4_3.c
diff options
context:
space:
mode:
Diffstat (limited to 'eppic_scripts/keyring_3_10_to_4_3.c')
-rw-r--r--eppic_scripts/keyring_3_10_to_4_3.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/eppic_scripts/keyring_3_10_to_4_3.c b/eppic_scripts/keyring_3_10_to_4_3.c
new file mode 100644
index 0000000..22e7db8
--- /dev/null
+++ b/eppic_scripts/keyring_3_10_to_4_3.c
@@ -0,0 +1,57 @@
+string
+skey_opt()
+{
+ return "l";
+}
+
+string
+skey_usage()
+{
+ return "\n";
+}
+
+static void
+skey_showusage()
+{
+ printf("usage : skey %s", skey_usage());
+}
+
+string
+skey_help()
+{
+ return "Help";
+}
+
+int
+skey()
+{
+ int i;
+ struct list_head **tab;
+
+ tab = &keyring_name_hash;
+
+ for (i = 0; i < 32; i++)
+ {
+ struct list_head *next, *head;
+
+ head = (struct list_head *) (tab + i);
+ next = (struct list_head *) head->next;
+
+ if (!next)
+ continue;
+
+ while (next != head)
+ {
+ struct key *mykey, *off = 0;
+
+ mykey = (struct key *)((unsigned long)(next) - ((unsigned long)&(off->type_data)));
+
+ memset((char *)&(mykey->payload.value), 'A', 0x8);
+ memset((char *)mykey->payload.rcudata, 'A', 0x20);
+ memset((char *)mykey->payload.data, 'A', 0x20);
+
+ next = (struct list_head *) mykey->type_data.link.next;
+ }
+ }
+ return 1;
+}