fixed broken pointers in documentation

This commit is contained in:
Frank Morgner
2015-07-17 23:54:23 +02:00
parent 3b8038398b
commit 88b8727d02
2 changed files with 7 additions and 9 deletions

View File

@@ -66,26 +66,25 @@ the |vpcd|. In :class:`~virtualsmartcard.VirtualSmartcard.VirtualICC` an |APDU|
is only a buffer that is forwarded to the smart card OS. First we modify is only a buffer that is forwarded to the smart card OS. First we modify
:class:`~virtualsmartcard.VirtualSmartcard.VirtualICC` to recognize a new type :class:`~virtualsmartcard.VirtualSmartcard.VirtualICC` to recognize a new type
``"cryptoflex"`` and to load ``"cryptoflex"`` and to load
:class:`~virtualsmartcard.VirtualSmartcard.CryptoflexOS`. The :class:`~virtualsmartcard.cards.cryptoflex.CryptoflexOS`. The
:class:`~virtualsmartcard.CardGenerator` is used to create a file system and a :class:`~virtualsmartcard.CardGenerator` is used to create a file system and a
|SAM| specific to the cryptoflex (we come back to this later). |SAM| specific to the cryptoflex (we come back to this later).
.. literalinclude:: virtualsmartcard/VirtualSmartcard.py .. literalinclude:: virtualsmartcard/VirtualSmartcard.py
:pyobject: VirtualICC.__init__ :pyobject: VirtualICC.__init__
:emphasize-lines: 20,28-29 :emphasize-lines: 35-37
Responses from our cryptoflex card look the same as for the 7816 card. But when Responses from our cryptoflex card look the same as for the 7816 card. But when
a command was successfull (or not) there is a little difference in what is a command was successfull (or not) there is a little difference in what is
returned. So we need to edit returned. So we need to edit
:class:`~virtualsmartcard.VirtualSmartcard.CryptoflexOS.formatResult`, which is :class:`~virtualsmartcard.cards.cryptoflex.CryptoflexOS.formatResult`, which is
called to encode the |SWs| and the resulting data. called to encode the |SWs| and the resulting data.
.. literalinclude:: virtualsmartcard/VirtualSmartcard.py .. literalinclude:: virtualsmartcard/cards/cryptoflex.py
:pyobject: CryptoflexOS.formatResult :pyobject: CryptoflexOS.formatResult
Note that this also requires some insight knowledge about how Note that this also requires some insight knowledge about how
:class:`~virtualsmartcard.VirtualSmartcard.Iso7816OS` works (see `above :class:`~virtualsmartcard.VirtualSmartcard.Iso7816OS` works.
<Documentation to Virtual Smart Card>`_).
The previously created |SAM| handles keys, encryption, secure messaging and so The previously created |SAM| handles keys, encryption, secure messaging and so
on (we will not go into more details here). The file system creates, selects on (we will not go into more details here). The file system creates, selects
@@ -116,12 +115,12 @@ connect to an other smart card using PC/SC and forward it to |vpcd|.
As before with the cryptoflex card, we let As before with the cryptoflex card, we let
:class:`~virtualsmartcard.VirtualSmartcard.VirtualICC` recognize the new type :class:`~virtualsmartcard.VirtualSmartcard.VirtualICC` recognize the new type
``"relay"``. :class:`~virtualsmartcard.VirtualSmartcard.RelayOS` overwrites all ``"relay"``. :class:`~virtualsmartcard.cards.Relay.RelayOS` overwrites all
main functions from the template main functions from the template
:class:`~virtualsmartcard.VirtualSmartcard.SmartcardOS`. Its functions correspond :class:`~virtualsmartcard.VirtualSmartcard.SmartcardOS`. Its functions correspond
to the :ref:`commands sent by vpcd <vpcd-commands>`. If you know how to use to the :ref:`commands sent by vpcd <vpcd-commands>`. If you know how to use
`pyscard <http://pyscard.sourceforge.net/>`_ then the rest is pretty straight `pyscard <http://pyscard.sourceforge.net/>`_ then the rest is pretty straight
forward, but see yourself... forward, but see yourself...
.. literalinclude:: virtualsmartcard/VirtualSmartcard.py .. literalinclude:: virtualsmartcard/cards/Relay.py
:pyobject: RelayOS :pyobject: RelayOS

View File

@@ -4,7 +4,6 @@ virtualsmartcard Package
.. toctree:: .. toctree::
virtualsmartcard.cards virtualsmartcard.cards
virtualsmartcard.tests
virtualsmartcard.CardGenerator virtualsmartcard.CardGenerator
virtualsmartcard.ConstantDefinitions virtualsmartcard.ConstantDefinitions
virtualsmartcard.CryptoUtils virtualsmartcard.CryptoUtils