diff options
-rw-r--r-- | usr.bin/sectok/cmds.c | 5 | ||||
-rw-r--r-- | usr.bin/sectok/cyberflex.c | 11 | ||||
-rw-r--r-- | usr.bin/sectok/sc.h | 3 |
3 files changed, 14 insertions, 5 deletions
diff --git a/usr.bin/sectok/cmds.c b/usr.bin/sectok/cmds.c index 8a019a45690..4ff39949da5 100644 --- a/usr.bin/sectok/cmds.c +++ b/usr.bin/sectok/cmds.c @@ -1,4 +1,4 @@ -/* $Id: cmds.c,v 1.5 2001/07/16 23:09:36 rees Exp $ */ +/* $Id: cmds.c,v 1.6 2001/07/17 15:16:46 rees Exp $ */ /* * Smartcard commander. @@ -74,7 +74,8 @@ struct { { "jdefault", "[ -d ]", jdefault }, { "jatr", "", jatr }, { "jdata", "", jdata }, - { "jaut", "[ -d ] [ -v ] [ -x hex-aut0 ]", jaut }, + { "login", "[ -d ] [ -v ] [ -x hex-aut0 ]", jlogin }, + { "jaut", "", jaut }, { "jload", "[ -p progID ] [ -c contID ] [ -s cont_size ] [ -i inst_size ] [ -a aid ] filename", jload }, { "junload", "[ -p progID ] [ -c contID ]", junload }, { "jselect", "[ -a aid ]", jselect }, diff --git a/usr.bin/sectok/cyberflex.c b/usr.bin/sectok/cyberflex.c index bed216fd9e0..6df6a2488b5 100644 --- a/usr.bin/sectok/cyberflex.c +++ b/usr.bin/sectok/cyberflex.c @@ -1,4 +1,4 @@ -/* $Id: cyberflex.c,v 1.5 2001/07/16 23:09:36 rees Exp $ */ +/* $Id: cyberflex.c,v 1.6 2001/07/17 15:16:46 rees Exp $ */ /* copyright 1999, 2000 @@ -125,7 +125,7 @@ get_AUT0(int ac, char *av[], char *prompt, unsigned char *digest) return 0; } -int jaut(int ac, char *av[]) +int jlogin(int ac, char *av[]) { int i, vflag = 0, sw; unsigned char AUT0[20]; @@ -166,6 +166,13 @@ int jaut(int ac, char *av[]) return 0; } +int jaut(int ac, char *av[]) +{ + static char *jlav[] = {"login", "-d", NULL}; + + return jlogin(2, jlav); +} + int jdefault(int ac, char *av[]) { unsigned char buf[8]; diff --git a/usr.bin/sectok/sc.h b/usr.bin/sectok/sc.h index 98319387f05..9a277d48e37 100644 --- a/usr.bin/sectok/sc.h +++ b/usr.bin/sectok/sc.h @@ -1,4 +1,4 @@ -/* $Id: sc.h,v 1.4 2001/07/16 23:09:37 rees Exp $ */ +/* $Id: sc.h,v 1.5 2001/07/17 15:16:46 rees Exp $ */ /* * Smartcard commander. @@ -55,6 +55,7 @@ int jdelete(int ac, char *av[]); int jdefault(int ac, char *av[]); int jatr(int ac, char *av[]); int jdata(int ac, char *av[]); +int jlogin(int ac, char *av[]); int jaut(int ac, char *av[]); int jload(int ac, char *av[]); int junload(int ac, char *av[]); |