diff options
author | Werner Koch <wk@gnupg.org> | 2006-04-11 15:53:21 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2006-04-11 15:53:21 +0200 |
commit | c664309a0a9c2cd0aa0b1e10b488818ae7496f60 (patch) | |
tree | 95b635402c14e96ed1f30af30d0437f3e5f463c3 /doc | |
parent | 2006-04-09 Moritz Schulte <moritz@g10code.com> (diff) | |
download | gnupg2-c664309a0a9c2cd0aa0b1e10b488818ae7496f60.tar.xz gnupg2-c664309a0a9c2cd0aa0b1e10b488818ae7496f60.zip |
Added command APDU
Diffstat (limited to 'doc')
-rw-r--r-- | doc/scdaemon.texi | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/scdaemon.texi b/doc/scdaemon.texi index 24a22355e..847001669 100644 --- a/doc/scdaemon.texi +++ b/doc/scdaemon.texi @@ -347,6 +347,8 @@ syncronizing access to a token between sessions. * Scdaemon RANDOM:: Return random bytes generate on-card. * Scdaemon PASSWD:: Change PINs. * Scdaemon CHECKPIN:: Perform a VERIFY operation. +* Scdaemon RESTART:: Restart connection +* Scdaemon APDU:: Send a verbatim APDU to the card @end menu @node Scdaemon SERIALNO @@ -553,3 +555,47 @@ and only if the retry counter is still at 3. @end table + +@node Scdaemon RESTART +@subsection Perform a RESTART operation. + +@example + RESTART +@end example + +Restart the current connection; this is a kind of warm reset. It +deletes the context used by this connection but does not actually +reset the card. + +This is used by gpg-agent to reuse a primary pipe connection and +may be used by clients to backup from a conflict in the serial +command; i.e. to select another application. + + + + +@node Scdaemon APDU +@subsection Send a verbatim APDU to the card. + +@example + APDU [--atr] [--more] [@var{hexstring}] +@end example + + +Send an APDU to the current reader. This command bypasses the high +level functions and sends the data directly to the card. +@var{hexstring} is expected to be a proper APDU. If @var{hexstring} is +not given no commands are send to the card; However the command will +implictly check whether the card is ready for use. + +Using the option @code{--atr} returns the ATR of the card as a status +message before any data like this: +@example + S CARD-ATR 3BFA1300FF813180450031C173C00100009000B1 +@end example + +Using the option @code{--more} handles the card status word MORE_DATA +(61xx) and concatenate all reponses to one block. + + + |