summaryrefslogtreecommitdiff
path: root/usr.bin/sectok/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sectok/cmds.c')
-rw-r--r--usr.bin/sectok/cmds.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/sectok/cmds.c b/usr.bin/sectok/cmds.c
index 5928a3f9755..73baa1fe30c 100644
--- a/usr.bin/sectok/cmds.c
+++ b/usr.bin/sectok/cmds.c
@@ -1,4 +1,4 @@
-/* $Id: cmds.c,v 1.12 2001/07/26 16:10:01 rees Exp $ */
+/* $Id: cmds.c,v 1.13 2001/07/26 20:00:16 rees Exp $ */
/*
* Smartcard commander.
@@ -266,6 +266,10 @@ int selfid(int ac, char *av[])
/* aid */
sel = 4;
fidlen = sectok_parse_input(fname, fid, sizeof fid);
+ if (fname[0] == '#') {
+ /* Prepend 0xfc to the aid to make it a "proprietary aid". */
+ fid[0] = 0xfc;
+ }
}
}