updated documentation
This commit is contained in:
@@ -16,7 +16,7 @@ do_subst = $(SED) \
|
||||
-e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' \
|
||||
-e 's,[@]top_srcdir[@],$(top_srcdir),g'
|
||||
|
||||
EXTRA_DIST = README.rst.in README.rst Doxyfile.in example.c autotools.rst autotools.rst.in questions.rst questions.rst.in
|
||||
EXTRA_DIST = README.rst.in README.rst Doxyfile.in example.c autotools.rst autotools.rst.in questions.rst questions.rst.in download.rst.in download.rst
|
||||
|
||||
DOXYGEN = doxygen
|
||||
|
||||
@@ -26,6 +26,7 @@ doc: $(top_srcdir)/src/npa/*.h *.in
|
||||
touch api.rst
|
||||
$(do_subst) < autotools.rst.in > autotools.rst
|
||||
$(do_subst) < questions.rst.in > questions.rst
|
||||
$(do_subst) < download.rst.in > download.rst
|
||||
$(do_subst) < README.rst.in > README.rst
|
||||
touch doc
|
||||
|
||||
|
||||
@@ -35,6 +35,9 @@ transparent SM usage in OpenSC. This allows nPA Smart Card Library to be fully
|
||||
compatible with OpenSC.
|
||||
|
||||
|
||||
.. include:: download.rst
|
||||
|
||||
|
||||
.. _npa-install:
|
||||
|
||||
.. include:: autotools.rst
|
||||
@@ -79,7 +82,7 @@ of OpenSC_::
|
||||
cd $VSMARTCARD/npa/src/opensc
|
||||
autoreconf --verbose --install
|
||||
# adding PKG_CONFIG_PATH here lets OpenSC use OpenSSL with OpenPACE
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig --enable-sm
|
||||
make install && cd -
|
||||
|
||||
Now :file:`libopensc.so` should be located in ``$PREFIX/lib``.
|
||||
@@ -94,7 +97,7 @@ To complete this step-by-step guide, here is how to install nPA Smart Card Libra
|
||||
cd $VSMARTCARD/npa
|
||||
autoreconf --verbose --install
|
||||
# adding PKG_CONFIG_PATH here lets OpenSC use OpenSSL with OpenPACE
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig OPENSC_LIBS="-L$PREFIX/lib -lopensc"
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig OPENSC_LIBS="-L$PREFIX/lib -lopensc -lcrypto"
|
||||
make install && cd -
|
||||
|
||||
|
||||
@@ -105,9 +108,13 @@ To complete this step-by-step guide, here is how to install nPA Smart Card Libra
|
||||
Usage
|
||||
=====
|
||||
|
||||
The API to libnpa is documented in :ref:`npa-api`. It includes a simple
|
||||
programming example. Here we will focus on the command line interface to the
|
||||
library offered by the |npa-tool|.
|
||||
|
||||
To pass a secret to |npa-tool| for |PACE|, command line parameters or
|
||||
environment variables can be used. If the smart card reader supports |PACE|,
|
||||
the PIN pad is used. If none of these options is applies, npa-tool will show a
|
||||
the PIN pad is used. If none of these options applies, |npa-tool| will show a
|
||||
password prompt.
|
||||
|
||||
|npa-tool| can send arbitrary APDUs to the nPA in the secure channel. APDUs
|
||||
@@ -138,8 +145,5 @@ Alternatively you can specify libraries and flags by hand::
|
||||
-I$PREFIX/include \
|
||||
-L$PREFIX/lib -lnpa -lopensc -lcrypto"
|
||||
|
||||
The API to libnpa is documented in :ref:`npa-api`. It includes a simple
|
||||
programming example.
|
||||
|
||||
|
||||
.. include:: questions.rst
|
||||
|
||||
@@ -35,6 +35,9 @@ transparent SM usage in OpenSC. This allows @PACKAGE_NAME@ to be fully
|
||||
compatible with OpenSC.
|
||||
|
||||
|
||||
.. include:: download.rst
|
||||
|
||||
|
||||
.. _npa-install:
|
||||
|
||||
.. include:: autotools.rst
|
||||
@@ -78,8 +81,8 @@ of OpenSC_::
|
||||
git clone git://vsmartcard.git.sourceforge.net/gitroot/vsmartcard $VSMARTCARD
|
||||
cd $VSMARTCARD/npa/src/opensc
|
||||
autoreconf --verbose --install
|
||||
# adding PKG_CONFIG_PATH here lets OpenSC use OpenSSL with OpenPACE
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
|
||||
# adding PKG_CONFIG_PATH here lets OpenSC use the patched OpenSSL
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig --enable-sm
|
||||
make install && cd -
|
||||
|
||||
Now :file:`libopensc.so` should be located in ``$PREFIX/lib``.
|
||||
@@ -93,8 +96,7 @@ To complete this step-by-step guide, here is how to install @PACKAGE_NAME@::
|
||||
|
||||
cd $VSMARTCARD/npa
|
||||
autoreconf --verbose --install
|
||||
# adding PKG_CONFIG_PATH here lets OpenSC use OpenSSL with OpenPACE
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig OPENSC_LIBS="-L$PREFIX/lib -lopensc"
|
||||
./configure --prefix=$PREFIX PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig OPENSC_LIBS="-L$PREFIX/lib -lopensc -lcrypto"
|
||||
make install && cd -
|
||||
|
||||
|
||||
@@ -105,9 +107,13 @@ To complete this step-by-step guide, here is how to install @PACKAGE_NAME@::
|
||||
Usage
|
||||
=====
|
||||
|
||||
The API to libnpa is documented in :ref:`npa-api`. It includes a simple
|
||||
programming example. Here we will focus on the command line interface to the
|
||||
library offered by the |npa-tool|.
|
||||
|
||||
To pass a secret to |npa-tool| for |PACE|, command line parameters or
|
||||
environment variables can be used. If the smart card reader supports |PACE|,
|
||||
the PIN pad is used. If none of these options is applies, npa-tool will show a
|
||||
the PIN pad is used. If none of these options apply, |npa-tool| will show a
|
||||
password prompt.
|
||||
|
||||
|npa-tool| can send arbitrary APDUs to the nPA in the secure channel. APDUs
|
||||
@@ -138,8 +144,5 @@ Alternatively you can specify libraries and flags by hand::
|
||||
-I$PREFIX/include \
|
||||
-L$PREFIX/lib -lnpa -lopensc -lcrypto"
|
||||
|
||||
The API to libnpa is documented in :ref:`npa-api`. It includes a simple
|
||||
programming example.
|
||||
|
||||
|
||||
.. include:: questions.rst
|
||||
|
||||
12
npa/doc/download.rst
Normal file
12
npa/doc/download.rst
Normal file
@@ -0,0 +1,12 @@
|
||||
.. highlight:: sh
|
||||
|
||||
===============================================================================
|
||||
Download
|
||||
===============================================================================
|
||||
|
||||
You can find the latest release of nPA Smart Card Library `here
|
||||
<http://sourceforge.net/projects/vsmartcard/files>`_.
|
||||
|
||||
Alternatively, you can clone our git repository::
|
||||
|
||||
git clone git://vsmartcard.git.sourceforge.net/gitroot/vsmartcard/vsmartcard
|
||||
1
npa/doc/download.rst.in
Symbolic link
1
npa/doc/download.rst.in
Symbolic link
@@ -0,0 +1 @@
|
||||
../../doc/download.rst.in
|
||||
Reference in New Issue
Block a user