summaryrefslogtreecommitdiff
path: root/lib/libsectok/sectok.3
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2001-08-03 19:52:28 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2001-08-03 19:52:28 +0000
commit320e0009ac61bb201705d92e7e2e196301be4a2b (patch)
treede822e8b7fbada3ea35ac2a05621300445ac61c1 /lib/libsectok/sectok.3
parentb79d989bbdef2062e588c51384f0c413ecae66a9 (diff)
document sectok_friendly_open. fix sectoc_open arg. ok rees@
Diffstat (limited to 'lib/libsectok/sectok.3')
-rw-r--r--lib/libsectok/sectok.312
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libsectok/sectok.3 b/lib/libsectok/sectok.3
index a6e22c2c592..9bc4fe7bd1a 100644
--- a/lib/libsectok/sectok.3
+++ b/lib/libsectok/sectok.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sectok.3,v 1.2 2001/08/03 19:23:38 millert Exp $
+.\" $OpenBSD: sectok.3,v 1.3 2001/08/03 19:52:27 jakob Exp $
.\"
.\" Jim Rees <rees@umich.edu>
.\" CITI Smartcard development <smartcards@umich.edu>
@@ -70,7 +70,7 @@ or a SW1/SW2 pair as specified in ISO 7816.
.Pp
.Fn sectok_open
opens a connection to a smart card via serial port number
-.Fa ttyn .
+.Fa rn .
Ports are
numbered from 0, which corresponds to /dev/tty00 on UNIX.
If there is no card in the reader,
@@ -82,6 +82,14 @@ is given, it will return immediately with error
.Fa swp
points to a status word that will be set on return.
.Pp
+.Fn sectok_friendly_open
+opens a connection to a smart card via a reader device name
+.Fa rn .
+Mapping from reader name to serial port number is the same as used in
+.Fn sectok_open .
+For other arguments and return values, see
+.Fn sectok_open .
+.Pp
.Fn sectok_reset
resets the card and returns the ATR in the buffer pointed to by
.Fa atr