Changeset 3405
- Timestamp:
- 03/06/08 16:06:59 (2 years ago)
- Location:
- trunk
- Files:
-
- 20 removed
- 111 modified
- 31 copied
-
. (modified) (1 prop)
-
Makefile.am (modified) (1 diff)
-
aclocal (modified) (1 prop)
-
aclocal/Makefile.am (modified) (1 diff)
-
configure.ac (copied) (copied from branches/alonbl/mingw/configure.ac) (1 diff)
-
configure.in (deleted)
-
doc (modified) (1 prop)
-
doc/Makefile.am (modified) (1 diff)
-
doc/api (modified) (1 prop)
-
doc/api/apps (modified) (1 prop)
-
doc/api/asn1 (modified) (1 prop)
-
doc/api/card (modified) (1 prop)
-
doc/api/file (modified) (1 prop)
-
doc/api/html.xsl (modified) (1 diff)
-
doc/api/init (modified) (1 prop)
-
doc/api/man.xsl (modified) (1 diff)
-
doc/api/misc (modified) (1 prop)
-
doc/api/types (modified) (1 prop)
-
doc/api/util (modified) (1 prop)
-
doc/changelog.sh (deleted)
-
doc/export-wiki.sh (deleted)
-
doc/export-wiki.xsl (deleted)
-
doc/generate-man.sh (deleted)
-
doc/nonpersistent (copied) (copied from branches/alonbl/mingw/doc/nonpersistent)
-
doc/nonpersistent/Makefile.am (copied) (copied from branches/alonbl/mingw/doc/nonpersistent/Makefile.am)
-
doc/nonpersistent/export-wiki.sh (copied) (copied from branches/alonbl/mingw/doc/nonpersistent/export-wiki.sh)
-
doc/nonpersistent/export-wiki.xsl (copied) (copied from branches/alonbl/mingw/doc/nonpersistent/export-wiki.xsl)
-
doc/nonpersistent/svn2cl.xsl (copied) (copied from branches/alonbl/mingw/doc/nonpersistent/svn2cl.xsl)
-
doc/svn2cl.xsl (deleted)
-
doc/tools (modified) (1 prop)
-
doc/tools/pkcs15-profile.xml (modified) (1 diff)
-
etc (modified) (1 prop)
-
etc/Makefile.am (modified) (1 diff)
-
etc/opensc.conf.in (modified) (2 diffs)
-
man (deleted)
-
solaris (modified) (1 prop)
-
solaris/Makefile (modified) (1 diff)
-
src (modified) (1 prop)
-
src/Makefile.am (modified) (1 diff)
-
src/common (modified) (1 prop)
-
src/common/ChangeLog (deleted)
-
src/common/ChangeLog.compat_getopt (copied) (copied from branches/alonbl/mingw/src/common/ChangeLog.compat_getopt)
-
src/common/LICENSE (deleted)
-
src/common/LICENSE.compat_getopt (copied) (copied from branches/alonbl/mingw/src/common/LICENSE.compat_getopt)
-
src/common/Makefile.am (modified) (1 diff)
-
src/common/README.compat_getopt (copied) (copied from branches/alonbl/mingw/src/common/README.compat_getopt)
-
src/common/README.compat_strlcpy (copied) (copied from branches/alonbl/mingw/src/common/README.compat_strlcpy)
-
src/common/README.my_getopt (deleted)
-
src/common/README.strlcpy (deleted)
-
src/common/compat_dummy.c (copied) (copied from branches/alonbl/mingw/src/common/compat_dummy.c)
-
src/common/compat_getopt.3 (copied) (copied from branches/alonbl/mingw/src/common/compat_getopt.3)
-
src/common/compat_getopt.c (copied) (copied from branches/alonbl/mingw/src/common/compat_getopt.c)
-
src/common/compat_getopt.h (copied) (copied from branches/alonbl/mingw/src/common/compat_getopt.h)
-
src/common/compat_getopt.txt (copied) (copied from branches/alonbl/mingw/src/common/compat_getopt.txt)
-
src/common/compat_getpass.c (copied) (copied from branches/alonbl/mingw/src/common/compat_getpass.c)
-
src/common/compat_getpass.h (copied) (copied from branches/alonbl/mingw/src/common/compat_getpass.h)
-
src/common/compat_strlcpy.3 (copied) (copied from branches/alonbl/mingw/src/common/compat_strlcpy.3)
-
src/common/compat_strlcpy.c (copied) (copied from branches/alonbl/mingw/src/common/compat_strlcpy.c)
-
src/common/compat_strlcpy.h (copied) (copied from branches/alonbl/mingw/src/common/compat_strlcpy.h)
-
src/common/getopt.3 (deleted)
-
src/common/getopt.txt (deleted)
-
src/common/getpass.c (deleted)
-
src/common/my_getopt.c (deleted)
-
src/common/my_getopt.h (deleted)
-
src/common/strlcpy.3 (deleted)
-
src/common/strlcpy.c (deleted)
-
src/common/strlcpy.h (deleted)
-
src/include (modified) (1 prop)
-
src/include/Makefile.am (modified) (1 diff)
-
src/include/opensc (modified) (1 prop)
-
src/include/opensc/Makefile.am (modified) (1 diff)
-
src/include/opensc/svnignore (copied) (copied from branches/alonbl/mingw/src/include/opensc/svnignore)
-
src/libopensc (modified) (1 prop)
-
src/libopensc/Makefile.am (modified) (2 diffs)
-
src/libopensc/card-gpk.c (modified) (2 diffs)
-
src/libopensc/card-oberthur.c (modified) (2 diffs)
-
src/libopensc/card-piv.c (modified) (4 diffs)
-
src/libopensc/card-rutoken.c (modified) (5 diffs)
-
src/libopensc/compression.c (modified) (2 diffs)
-
src/libopensc/ctx.c (modified) (7 diffs)
-
src/libopensc/internal-winscard.h (copied) (copied from branches/alonbl/mingw/src/libopensc/internal-winscard.h) (1 diff)
-
src/libopensc/internal.h (modified) (1 diff)
-
src/libopensc/libopensc.exports (copied) (copied from branches/alonbl/mingw/src/libopensc/libopensc.exports)
-
src/libopensc/log.c (modified) (3 diffs)
-
src/libopensc/log.h (modified) (1 diff)
-
src/libopensc/opensc-config.in (modified) (3 diffs)
-
src/libopensc/p15card-helper.c (modified) (2 diffs)
-
src/libopensc/part10.h (deleted)
-
src/libopensc/pkcs15-actalis.c (modified) (3 diffs)
-
src/libopensc/pkcs15-atrust-acos.c (modified) (1 diff)
-
src/libopensc/pkcs15-esteid.c (modified) (1 diff)
-
src/libopensc/pkcs15-gemsafeGPK.c (modified) (1 diff)
-
src/libopensc/pkcs15-infocamere.c (modified) (3 diffs)
-
src/libopensc/pkcs15-openpgp.c (modified) (1 diff)
-
src/libopensc/pkcs15-piv.c (modified) (2 diffs)
-
src/libopensc/pkcs15-postecert.c (modified) (1 diff)
-
src/libopensc/pkcs15-prkey-rutoken.c (modified) (8 diffs)
-
src/libopensc/pkcs15-starcert.c (modified) (1 diff)
-
src/libopensc/pkcs15-tcos.c (modified) (1 diff)
-
src/libopensc/pkcs15-wrap.c (modified) (4 diffs)
-
src/libopensc/reader-openct.c (modified) (2 diffs)
-
src/libopensc/reader-pcsc.c (modified) (32 diffs)
-
src/libopensc/sc.c (modified) (2 diffs)
-
src/libopensc/ui.c (modified) (3 diffs)
-
src/openssh (modified) (1 prop)
-
src/openssh/Makefile.am (modified) (1 diff)
-
src/pkcs11 (modified) (1 prop)
-
src/pkcs11/Makefile.am (modified) (2 diffs)
-
src/pkcs11/framework-pkcs15.c (modified) (3 diffs)
-
src/pkcs11/mechanism.c (modified) (3 diffs)
-
src/pkcs11/opensc-pkcs11.exports (copied) (copied from branches/alonbl/mingw/src/pkcs11/opensc-pkcs11.exports)
-
src/pkcs11/openssl.c (modified) (1 diff)
-
src/pkcs11/pkcs11-display.c (modified) (5 diffs)
-
src/pkcs11/pkcs11-global.c (modified) (14 diffs)
-
src/pkcs11/pkcs11-object.c (modified) (4 diffs)
-
src/pkcs11/pkcs11-spy.c (modified) (2 diffs)
-
src/pkcs11/pkcs11-spy.exports (copied) (copied from branches/alonbl/mingw/src/pkcs11/pkcs11-spy.exports)
-
src/pkcs11/sc-pkcs11.h (modified) (6 diffs)
-
src/pkcs15init (modified) (1 prop)
-
src/pkcs15init/Makefile.am (modified) (3 diffs)
-
src/pkcs15init/pkcs15-gpk.c (modified) (2 diffs)
-
src/pkcs15init/pkcs15-lib.c (modified) (3 diffs)
-
src/pkcs15init/pkcs15-oberthur.c (modified) (3 diffs)
-
src/pkcs15init/pkcs15-rutoken.c (modified) (2 diffs)
-
src/pkcs15init/pkcs15init.exports (copied) (copied from branches/alonbl/mingw/src/pkcs15init/pkcs15init.exports)
-
src/pkcs15init/profile.c (modified) (1 diff)
-
src/scconf (modified) (1 prop)
-
src/scconf/Makefile.am (modified) (1 diff)
-
src/scconf/parse.c (modified) (1 diff)
-
src/scconf/scconf.exports (copied) (copied from branches/alonbl/mingw/src/scconf/scconf.exports)
-
src/signer (modified) (1 prop)
-
src/signer/Makefile.am (modified) (1 diff)
-
src/signer/npinclude (modified) (1 prop)
-
src/signer/npinclude/Makefile.am (modified) (1 diff)
-
src/signer/signer.exports (copied) (copied from branches/alonbl/mingw/src/signer/signer.exports)
-
src/tests (modified) (1 prop)
-
src/tests/Makefile.am (modified) (1 diff)
-
src/tests/pintest.c (modified) (1 diff)
-
src/tests/regression (modified) (1 prop)
-
src/tests/regression/Makefile.am (modified) (1 diff)
-
src/tests/sc-test.c (modified) (1 diff)
-
src/tools (modified) (1 prop)
-
src/tools/Makefile.am (modified) (1 diff)
-
src/tools/cardos-info.c (modified) (16 diffs)
-
src/tools/cryptoflex-tool.c (modified) (4 diffs)
-
src/tools/eidenv.c (modified) (2 diffs)
-
src/tools/netkey-tool.c (modified) (1 diff)
-
src/tools/opensc-explorer.c (modified) (19 diffs)
-
src/tools/opensc-tool.c (modified) (16 diffs)
-
src/tools/piv-tool.c (modified) (5 diffs)
-
src/tools/pkcs11-tool.c (modified) (52 diffs)
-
src/tools/pkcs15-crypt.c (modified) (10 diffs)
-
src/tools/pkcs15-init.c (modified) (48 diffs)
-
src/tools/pkcs15-tool.c (modified) (12 diffs)
-
src/tools/rutoken-tool.c (modified) (5 diffs)
-
src/tools/util.c (modified) (9 diffs)
-
src/tools/util.h (modified) (2 diffs)
-
svnignore (copied) (copied from branches/alonbl/mingw/svnignore)
-
win32 (modified) (1 prop)
-
win32/Makefile.am (modified) (1 diff)
-
win32/ltrc.inc (copied) (copied from branches/alonbl/mingw/win32/ltrc.inc)
-
win32/versioninfo.rc.in (copied) (copied from branches/alonbl/mingw/win32/versioninfo.rc.in)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 26 archive 27 acinclude.m4 28 aclocal.m4 29 autom4te.cache 30 compile 31 confdefs.h 32 config.cache 33 config.guess 34 config.h 35 config.h.in 36 config.log 37 config.status 38 config.sub 39 configure 40 conftest 41 conftest.c 42 depcomp 43 install-sh 44 libtool 45 libtool.m4 46 ltmain.sh 47 missing 48 mkinstalldirs 49 so_locations 50 stamp-h* 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/Makefile.am
r3268 r3405 1 1 # Process this file with automake to create Makefile.in 2 3 SUBDIRS = . aclocal etc man src win324 DIST_SUBDIRS = . aclocal doc etc man src win325 6 EXTRA_DIST = README \7 bootstrap Makefile.mak depcomp \8 solaris/Makefile solaris/README solaris/checkinstall.in \9 solaris/opensc.conf-dist solaris/pkginfo.in solaris/proto10 11 MAINTAINERCLEANFILES = \12 Makefile.in config.h.in configure \13 install-sh ltmain.sh missing mkinstalldirs \14 compile depcomp config.log config.status \15 config.guess config.sub acinclude.m4 aclocal.m416 17 DEPCLEANFILES = config.log configure18 2 19 3 AUTOMAKE_OPTIONS = foreign 1.5 20 4 ACLOCAL_AMFLAGS = -I aclocal 5 6 MAINTAINERCLEANFILES = \ 7 Makefile.in config.h.in config.h.in~ configure \ 8 install-sh ltmain.sh missing mkinstalldirs \ 9 compile depcomp config.log config.status \ 10 config.guess config.sub acinclude.m4 aclocal.m4 \ 11 packaged 12 EXTRA_DIST = Makefile.mak svnignore 13 14 SUBDIRS = aclocal etc src win32 doc 15 16 dist_noinst_SCRIPTS = bootstrap 17 dist_noinst_DATA = README \ 18 solaris/Makefile solaris/README solaris/checkinstall.in \ 19 solaris/opensc.conf-dist solaris/pkginfo.in solaris/proto 20 dist_doc_DATA = NEWS 21 22 # Allow detection of packaged tarball 23 dist-hook: 24 echo > "$(distdir)/packaged" 21 25 22 26 distcheck-hook: -
trunk/aclocal
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/aclocal/Makefile.am
r3246 r3405 2 2 3 3 MAINTAINERCLEANFILES = Makefile.in 4 5 4 EXTRA_DIST = acx_pthread.m4 libassuan.m4 -
trunk/configure.ac
r3399 r3405 158 158 AC_ARG_ENABLE( 159 159 [man], 160 [AC_HELP_STRING([-- enable-man], [enable installation of manuals. [[default=enabled for none Windows]]])],160 [AC_HELP_STRING([--disable-man], [disable installation of manuals. [[default=enabled for none Windows]]])], 161 161 , 162 162 [ -
trunk/doc
- Property svn:ignore
-
old new 1 html 2 man 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 24 .deps 25 .libs 26 .#*# 27 .*.bak 28 .*.orig 29 .*.rej 30 .*~ 31 #*# 32 *.bak 33 *.d 34 *.def 35 *.dll 36 *.exe 37 *.la 38 *.lib 39 *.lo 40 *.orig 41 *.pdb 42 *.rej 43 *.u 44 *.rc 45 *.pc 46 *~ 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/doc/Makefile.am
r3269 r3405 1 1 # Process this file with automake to create Makefile.in 2 2 3 SUBDIRS = . 3 MAINTAINERCLEANFILES = Makefile.in 4 4 5 MAINTAINERCLEANFILES = Makefile.in $(HTML) $(TMP) ChangeLog 5 wikidir=$(htmldir)/wiki 6 6 7 EXTRA_DIST = README ChangeLog $(HTML) $(XML) index.html \ 8 export-wiki.sh export-wiki.xsl \ 9 generate-man.sh changelog.sh svn2cl.xsl 7 if ENABLE_DOC 8 SUBDIRS = nonpersistent 9 endif 10 DIST_SUBDIRS = nonpersistent 10 11 11 TMP= $(shell ls $(srcdir)/*.tmp) 12 HTML= $(shell ls $(srcdir)/*.html $(srcdir)/*.css $(srcdir)/*.gif $(srcdir)/html/*) 13 XML = $(shell ls $(srcdir)/tools/*.xml $(srcdir)/api/*.xml $(srcdir)/api/*/*.xml $(srcdir)/api/api.css $(srcdir)/api/*.xsl) 12 dist_noinst_DATA = tools/*.xml api/*.xml api/*/*.xml api/api.css api/*.xsl 13 if ENABLE_DOC 14 dist_html_DATA = html.out/* 15 else 16 dist_noinst_DATA += html.out/* 17 endif 18 dist_doc_DATA = README 19 if WIN32 20 dist_noinst_DATA += man.out/*.1 man.out/*.3 man.out/*.5 21 else 22 dist_man1_MANS = man.out/*.1 23 dist_man3_MANS = man.out/*.3 24 dist_man5_MANS = man.out/*.5 25 endif 14 26 15 index.html: 16 sh $(srcdir)/export-wiki.sh $(srcdir) 17 sh $(srcdir)/generate-man.sh $(srcdir) 27 if SVN_CHECKOUT 28 if ENABLE_MAN 18 29 19 ChangeLog: 20 sh $(srcdir)/changelog.sh $(srcdir) 30 html.out/*: api/xsl-stylesheets 31 test -n "$(XSLTPROC)" 32 -rm -fr html.tmp 33 $(MKDIR_P) html.tmp 34 $(XSLTPROC) --nonet --xinclude -o "html.out/api.html" "$(srcdir)/api/html.xsl" "$(srcdir)/api/api.xml" 35 $(XSLTPROC) --nonet --xinclude -o "html.out/tools.html" "$(srcdir)/api/html.xsl" "$(srcdir)/tools/tools.xml" 36 mv html.tmp html.out 37 38 man.out/*.1: api/xsl-stylesheets 39 test -n "$(XSLTPROC)" 40 -rm -fr man.tmp 41 $(MKDIR_P) man.tmp 42 $(XSLTPROC) --nonet --xinclude -o "man.out/" "$(srcdir)/api/man.xsl" "$(srcdir)/api/api.xml" 43 $(XSLTPROC) --nonet --xinclude -o "man.out/" "$(srcdir)/api/man.xsl" "$(srcdir)/tools/tools.xml" 44 mv man.tmp man.out 45 46 man.out/*.3 man.out/*.5: man.out/*.1 47 48 api/xsl-stylesheets: 49 $(LN_S) "$(xslstylesheetsdir)" api/xsl-stylesheets 50 51 else 52 53 html.out/*: 54 man.out/*.1: 55 man.out/*.3 man.out/*.5: man.out/*.1 56 57 endif 58 endif 21 59 22 60 maintainer-clean-local: 23 rm -rf $(srcdir)/html 61 rm -rf html.out html.tmp man.out man.tmp 62 rm -fr api/xsl-stylesheets -
trunk/doc/api
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/apps
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/asn1
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/card
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/file
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/html.xsl
r2208 r3405 4 4 ]> 5 5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 6 <xsl:import href=" /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl"/>6 <xsl:import href="xsl-stylesheets/html/docbook.xsl"/> 7 7 <xsl:param name="toc.section.depth" select="0"/> 8 8 <xsl:template name="user.head.content"> -
trunk/doc/api/init
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/man.xsl
r2208 r3405 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 <xsl:import href=" /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl"/>3 <xsl:import href="xsl-stylesheets/manpages/docbook.xsl"/> 4 4 </xsl:stylesheet> -
trunk/doc/api/misc
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/types
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/api/util
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/tools
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/doc/tools/pkcs15-profile.xml
r2581 r3405 38 38 The card specific profile contains additional information required during 39 39 card intialization, such as location of PIN files, key references etc. 40 Profiles currently reside in <command>@pkgdata @</command>40 Profiles currently reside in <command>@pkgdatadir@</command> 41 41 </para> 42 42 </refsect1> -
trunk/etc
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/etc/Makefile.am
r2422 r3405 3 3 MAINTAINERCLEANFILES = Makefile.in 4 4 DISTCLEANFILES = opensc.conf 5 EXTRA_DIST = opensc.conf.in6 5 7 noinst_DATA = opensc.conf.in opensc.conf 6 SUFFIXES = .in 7 dist_noinst_DATA = opensc.conf.in opensc.conf 8 8 9 %: %.in 10 sed -e "s#PKGDATADIR#$(shell eval echo $(pkgdatadir))#" < $^ > $@ 9 .in: 10 sed -e "s|@pkgdatadir[@]|$(pkgdatadir)|g" < $^ > $@ 11 12 sysconf_DATA=#required in order to create dir 13 install-exec-hook: install-sysconfDATA 14 if [ -f $(DESTDIR)$(sysconfdir)/opensc.conf ]; then \ 15 $(INSTALL_DATA) $(srcdir)/opensc.conf $(DESTDIR)$(sysconfdir)/opensc.conf.new; \ 16 else \ 17 $(INSTALL_DATA) $(srcdir)/opensc.conf $(DESTDIR)$(sysconfdir)/opensc.conf; \ 18 fi -
trunk/etc/opensc.conf.in
r3404 r3405 34 34 # profiles directory for pkcs15-init. 35 35 36 profile_dir = PKGDATADIR;36 profile_dir = @pkgdatadir@; 37 37 38 38 # What reader drivers to load at start-up … … 88 88 # Default: false 89 89 # enable_pinpad = true; 90 # 91 # Use specific pcsc library. 92 # Default: system 93 # library_name = /usr/lib/libpcsclite.so 90 94 } 91 95 -
trunk/solaris
-
Property
svn:ignore set
to
Makefile
Makefile.in
core
archive
acinclude.m4
aclocal.m4
autom4te.cache
compile
confdefs.h
config.*
configure
conftest
conftest.c
depcomp
install-sh
libtool
libtool.m4
ltmain.sh
missing
mkinstalldirs
so_locations
stamp-h*
.deps
.libs
.#*#
.*.bak
.*.orig
.*.rej
.*~
#*#
*.bak
*.d
*.def
*.dll
*.exe
*.la
*.lib
*.lo
*.orig
*.pdb
*.rej
*.u
*.rc
*.pc
*~
*.gz
*.bz2
*.[0-9]
*.html
*.gif
*.css
*.out
ChangeLog
opensc.conf
xsl-stylesheets
opensc-config
test-conf
pkcs15-tool
pkcs15-crypt
pkcs15-init
piv-tool
eidenv
opensc-explorer
opensc-tool
rutoken-tool
cardos-info
cryptoflex-tool
netkey-tool
pkcs11-tool
pintest
p15dump
prngtest
base64
lottery
-
Property
svn:ignore set
to
-
trunk/solaris/Makefile
r2286 r3405 5 5 CONFIGURE_PREFIX=$(PWD:sh)/.. 6 6 CONFIGURE=${CONFIGURE_PREFIX}/configure 7 CONFIGURE_ARGS=--prefix=/usr --sysconfdir=/etc/opensc --mandir=/usr/share/man 7 CONFIGURE_ARGS=--prefix=/usr --sysconfdir=/etc/opensc --mandir=/usr/share/man --enable-pcsc --enable-openct 8 8 CONFIG_GUESS=${CONFIGURE_PREFIX}/config.guess 9 9 UNAME_ARCH=/sbin/uname -p -
trunk/src
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/src/Makefile.am
r2528 r3405 2 2 3 3 MAINTAINERCLEANFILES = Makefile.in 4 5 4 EXTRA_DIST = Makefile.mak 6 5 -
trunk/src/common
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/src/common/Makefile.am
r2990 r3405 2 2 3 3 MAINTAINERCLEANFILES = Makefile.in 4 EXTRA_DIST = Makefile.mak 4 5 5 EXTRA_DIST = Makefile.mak getpass.c \ 6 ChangeLog LICENSE README.my_getopt getopt.3 getopt.txt \ 7 main.c my_getopt.c my_getopt.h README.strlcpy strlcpy.3 \ 8 strlcpy.c strlcpy.h 6 noinst_LTLIBRARIES = libcompat.la 7 dist_noinst_DATA = \ 8 README.compat_getopt ChangeLog.compat_getopt LICENSE.compat_getopt compat_getopt.txt \ 9 README.compat_strlcpy compat_strlcpy.3 10 11 libcompat_la_SOURCES = \ 12 compat_dummy.c \ 13 compat_strlcpy.h compat_strlcpy.c \ 14 compat_getpass.h compat_getpass.c \ 15 compat_getopt.h compat_getopt.c -
trunk/src/include
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/src/include/Makefile.am
r1058 r3405 2 2 3 3 MAINTAINERCLEANFILES = Makefile.in 4 5 4 EXTRA_DIST = Makefile.mak winconfig.h 6 5 7 SUBDIRS = .opensc6 SUBDIRS = opensc -
trunk/src/include/opensc
- Property svn:ignore
-
old new 1 .deps 2 .libs 3 .#*# 4 .*.bak 5 .*.orig 6 .*.rej 7 .*~ 8 #*# 9 *.bak 10 *.d 11 *.def 12 *.dll 13 *.exe 14 *.la 15 *.lib 16 *.lo 17 *.orig 18 *.pdb 19 *.rej 20 *.u 21 *~ 1 *.h 2 *.in 22 3 Makefile 23 Makefile.in24 core25 gmon.out26 *.h
-
- Property svn:ignore
-
trunk/src/include/opensc/Makefile.am
r3066 r3405 1 1 # Process this file with automake to create Makefile.in 2 2 3 RM = rm -f4 5 3 MAINTAINERCLEANFILES = Makefile.in 6 DISTCLEANFILES = \ 7 asn1.h \ 8 cardctl.h \ 9 cards.h \ 10 emv.h \ 11 errors.h \ 12 log.h \ 13 opensc.h \ 14 pkcs15.h \ 15 types.h \ 16 ui.h \ 17 pkcs11.h \ 18 keycache.h \ 19 pkcs15-init.h \ 20 scconf.h 4 EXTRA_DIST = svnignore 21 5 22 6 all-local: 23 @$(RM) *.h 24 @$(LN_S) ${top_srcdir}/src/libopensc/asn1.h asn1.h 25 @$(LN_S) ${top_srcdir}/src/libopensc/cardctl.h cardctl.h 26 @$(LN_S) ${top_srcdir}/src/libopensc/cards.h cards.h 27 @$(LN_S) ${top_srcdir}/src/libopensc/emv.h emv.h 28 @$(LN_S) ${top_srcdir}/src/libopensc/errors.h errors.h 29 @$(LN_S) ${top_srcdir}/src/libopensc/log.h log.h 30 @$(LN_S) ${top_srcdir}/src/libopensc/opensc.h opensc.h 31 @$(LN_S) ${top_srcdir}/src/libopensc/pkcs15.h pkcs15.h 32 @$(LN_S) ${top_srcdir}/src/libopensc/types.h types.h 33 @$(LN_S) ${top_srcdir}/src/libopensc/ui.h ui.h 34 @$(LN_S) ${top_srcdir}/src/pkcs11/pkcs11.h pkcs11.h 35 @$(LN_S) ${top_srcdir}/src/pkcs15init/keycache.h keycache.h 36 @$(LN_S) ${top_srcdir}/src/pkcs15init/pkcs15-init.h pkcs15-init.h 37 @$(LN_S) ${top_srcdir}/src/scconf/scconf.h scconf.h 7 @-rm -f *.h 8 @$(LN_S) $(top_srcdir)/src/libopensc/asn1.h asn1.h 9 @$(LN_S) $(top_srcdir)/src/libopensc/cardctl.h cardctl.h 10 @$(LN_S) $(top_srcdir)/src/libopensc/cards.h cards.h 11 @$(LN_S) $(top_srcdir)/src/libopensc/emv.h emv.h 12 @$(LN_S) $(top_srcdir)/src/libopensc/errors.h errors.h 13 @$(LN_S) $(top_srcdir)/src/libopensc/log.h log.h 14 @$(LN_S) $(top_srcdir)/src/libopensc/opensc.h opensc.h 15 @$(LN_S) $(top_srcdir)/src/libopensc/pkcs15.h pkcs15.h 16 @$(LN_S) $(top_srcdir)/src/libopensc/types.h types.h 17 @$(LN_S) $(top_srcdir)/src/libopensc/ui.h ui.h 18 @$(LN_S) $(top_srcdir)/src/pkcs11/pkcs11.h pkcs11.h 19 @$(LN_S) $(top_srcdir)/src/pkcs15init/keycache.h keycache.h 20 @$(LN_S) $(top_srcdir)/src/pkcs15init/pkcs15-init.h pkcs15-init.h 21 @$(LN_S) $(top_srcdir)/src/scconf/scconf.h scconf.h 22 23 distclean-local: 24 -rm -f *.h -
trunk/src/libopensc
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 26 *.pc 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 27 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/src/libopensc/Makefile.am
r3310 r3405 1 1 # Process this file with automake to create Makefile.in 2 2 3 include dir = @includedir@/opensc3 include $(top_srcdir)/win32/ltrc.inc 4 4 5 5 MAINTAINERCLEANFILES = Makefile.in 6 7 EXTRA_DIST = Makefile.mak libopensc.pc.in libpkcs15init.pc.in libscconf.pc.in 8 9 INCLUDES = $(CPPFLAGS) $(OPENSSL_CFLAGS) $(OPENCT_CFLAGS) $(PCSC_CFLAGS) \ 10 $(LTLIB_CFLAGS) -I$(top_srcdir)/src/common 11 AM_LDFLAGS = 6 CLEANFILES = versioninfo.rc 7 EXTRA_DIST = Makefile.mak 12 8 13 9 bin_SCRIPTS = opensc-config 10 lib_LTLIBRARIES = libopensc.la 11 openscinclude_HEADERS = \ 12 opensc.h pkcs15.h emv.h \ 13 cardctl.h asn1.h log.h ui.h \ 14 errors.h types.h compression.h 15 noinst_HEADERS = cards.h ctbcs.h internal.h esteid.h muscle.h muscle-filesystem.h \ 16 internal-winscard.h p15card-helper.h 17 pkgconfig_DATA = libopensc.pc libpkcs15init.pc libscconf.pc 14 18 15 lib_LTLIBRARIES = libopensc.la 19 AM_CFLAGS = $(OPTIONAL_OPENSSL_CFLAGS) $(OPTIONAL_OPENCT_CFLAGS) \ 20 $(OPTIONAL_ZLIB_CFLAGS) $(LTLIB_CFLAGS) 21 INCLUDES = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/common 22 16 23 libopensc_la_SOURCES = \ 17 24 sc.c ctx.c ui.c log.c errors.c \ … … 38 45 pkcs15-actalis.c pkcs15-atrust-acos.c pkcs15-tccardos.c pkcs15-piv.c \ 39 46 pkcs15-rutoken.c pkcs15-prkey-rutoken.c \ 40 compression.c p15card-helper.c 41 libopensc_la_LDFLAGS = -version-info @OPENSC_LT_CURRENT@:@OPENSC_LT_REVISION@:@OPENSC_LT_AGE@ 42 libopensc_la_LIBADD = @LIBSCCONF@ $(OPENSSL_LIBS) $(OPENCT_LIBS) $(PCSC_LIBS) $(LTLIB_LIBS) 47 compression.c p15card-helper.c \ 48 \ 49 libopensc.exports 50 if WIN32 51 nodist_libopensc_la_SOURCES = versioninfo.rc 52 endif 53 libopensc_la_LIBADD = $(OPTIONAL_OPENSSL_LIBS) $(OPTIONAL_OPENCT_LIBS) \ 54 $(OPTIONAL_ZLIB_LIBS) $(LTLIB_LIBS) \ 55 $(top_builddir)/src/scconf/libscconf.la \ 56 $(top_builddir)/src/common/libcompat.la 57 if WIN32 58 libopensc_la_LIBADD += -lws2_32 59 endif 60 libopensc_la_LDFLAGS = $(AM_LDFLAGS) \ 61 -version-info @OPENSC_LT_CURRENT@:@OPENSC_LT_REVISION@:@OPENSC_LT_AGE@ \ 62 -export-symbols libopensc.exports \ 63 -no-undefined 43 64 44 include_HEADERS = \ 45 opensc.h pkcs15.h emv.h \ 46 cardctl.h asn1.h log.h ui.h \ 47 errors.h types.h compression.h 65 versioninfo.rc: 66 sed 's/@@FILE_DESCRIPTION@@/OpenSC Core Library/g' \ 67 "$(top_srcdir)/win32/versioninfo.rc" > versioninfo.rc 48 68 49 noinst_HEADERS = cards.h ctbcs.h internal.h esteid.h muscle.h muscle-filesystem.h part10.h p15card-helper.h 50 51 pkgconfigdir = $(libdir)/pkgconfig 52 pkgconfig_DATA = libopensc.pc libpkcs15init.pc libscconf.pc 69 if WIN32 70 # def file required for MS users to build library 71 mylibdir=$(libdir) 72 if CYGWIN 73 mylib_DATA=.libs/cygopensc-@OPENSC_LT_CURRENT@.dll.def 74 .libs/cygopensc-@OPENSC_LT_CURRENT@.dll.def: libopensc.la 75 else 76 mylib_DATA=.libs/libopensc-@OPENSC_LT_CURRENT@.dll.def 77 .libs/libopensc-@OPENSC_LT_CURRENT@.dll.def: libopensc.la 78 endif 79 endif -
trunk/src/libopensc/card-gpk.c
r3177 r3405 22 22 #include "cardctl.h" 23 23 #include "pkcs15.h" 24 #ifdef HAVE_OPENSSL24 #ifdef ENABLE_OPENSSL 25 25 #include <stdlib.h> 26 26 #include <string.h> … … 1903 1903 return sc_get_driver(); 1904 1904 } 1905 #endif /* HAVE_OPENSSL */1905 #endif /* ENABLE_OPENSSL */ -
trunk/src/libopensc/card-oberthur.c
r3206 r3405 27 27 #include "pkcs15.h" 28 28 29 #ifdef HAVE_OPENSSL29 #ifdef ENABLE_OPENSSL 30 30 #include <stdlib.h> 31 31 #include <string.h> … … 2505 2505 } 2506 2506 2507 #endif /* HAVE_OPENSSL */2507 #endif /* ENABLE_OPENSSL */ -
trunk/src/libopensc/card-piv.c
r3292 r3405 24 24 25 25 #include "internal.h" 26 27 #ifdef ENABLE_OPENSSL 28 26 29 #include <ctype.h> 27 30 #include <string.h> … … 33 36 #include "asn1.h" 34 37 #include "cardctl.h" 35 #ifdef HAVE_ZLIB_H38 #ifdef ENABLE_ZLIB 36 39 #include "compression.h" 37 40 #endif … … 743 746 /* Potential truncation */ 744 747 if(compressed) { 745 #ifdef HAVE_ZLIB_H748 #ifdef ENABLE_ZLIB 746 749 size_t len = count; 747 750 u8* newBuf = NULL; … … 1803 1806 } 1804 1807 #endif 1808 1809 #endif -
trunk/src/libopensc/card-rutoken.c
r3310 r3405 26 26 #include <stdlib.h> 27 27 #include "pkcs15.h" 28 #if defined(HAVE_INTTYPES_H) 29 #include <inttypes.h> 30 #elif defined(HAVE_STDINT_H) 31 #include <stdint.h> 32 #elif defined(_MSC_VER) 33 typedef unsigned __int32 uint32_t; 34 typedef unsigned __int16 uint16_t; 35 #else 36 #warning no uint32_t type available, please contact opensc-devel@opensc-project.org 37 #endif 28 38 29 39 #define BIG_ENDIAN_RUTOKEN 30 40 31 #ifdef HAVE_OPENSSL41 #ifdef ENABLE_OPENSSL 32 42 #include <openssl/evp.h> 33 43 #include <openssl/rsa.h> … … 43 53 #define ID_RESERVED_CURDF 0x3FFF /*Reserved ID for current DF*/ 44 54 45 #ifdef HAVE_OPENSSL55 #ifdef ENABLE_OPENSSL 46 56 int get_prkey_from_bin(const u8 *data, size_t len, struct sc_pkcs15_prkey **key); 47 57 #endif … … 343 353 { 344 354 #ifdef BIG_ENDIAN_RUTOKEN 345 file->size = pIn[3] + ((u _int16_t)pIn[2])*256;346 file->id = pIn[7] + ((u _int16_t)pIn[6])*256;355 file->size = pIn[3] + ((uint16_t)pIn[2])*256; 356 file->id = pIn[7] + ((uint16_t)pIn[6])*256; 347 357 #else 348 file->size = pIn[2] + ((u _int16_t)pIn[3])*256;349 file->id = pIn[6] + ((u _int16_t)pIn[7])*256;358 file->size = pIn[2] + ((uint16_t)pIn[3])*256; 359 file->id = pIn[6] + ((uint16_t)pIn[7])*256; 350 360 #endif 351 361 … … 1070 1080 /* RSA emulation */ 1071 1081 1072 #ifdef HAVE_OPENSSL1082 #ifdef ENABLE_OPENSSL 1073 1083 1074 1084 static int rutoken_get_current_fileid(sc_card_t *card, u8 id[2]) … … 1416 1426 rutoken_ops.get_challenge = rutoken_get_challenge; 1417 1427 1418 #ifdef HAVE_OPENSSL1428 #ifdef ENABLE_OPENSSL 1419 1429 rutoken_ops.decipher = rutoken_decipher; 1420 1430 rutoken_ops.compute_signature = rutoken_compute_signature; -
trunk/src/libopensc/compression.c
r3178 r3405 19 19 */ 20 20 #include "internal.h" 21 #ifdef HAVE_ZLIB_H21 #ifdef ENABLE_ZLIB 22 22 #include "compression.h" 23 23 … … 180 180 } 181 181 } 182 #endif /* HAVE_ZLIB_H*/182 #endif /* ENABLE_ZLIB */ -
trunk/src/libopensc/ctx.c
r3304 r3405 57 57 { "flex", (void *(*)(void)) sc_get_cryptoflex_driver }, 58 58 { "cyberflex", (void *(*)(void)) sc_get_cyberflex_driver }, 59 #ifdef HAVE_OPENSSL59 #ifdef ENABLE_OPENSSL 60 60 { "gpk", (void *(*)(void)) sc_get_gpk_driver }, 61 61 #endif … … 69 69 { "opengpg", (void *(*)(void)) sc_get_openpgp_driver }, 70 70 { "jcop", (void *(*)(void)) sc_get_jcop_driver }, 71 #ifdef HAVE_OPENSSL71 #ifdef ENABLE_OPENSSL 72 72 { "oberthur", (void *(*)(void)) sc_get_oberthur_driver }, 73 73 #endif … … 77 77 { "emv", (void *(*)(void)) sc_get_emv_driver }, 78 78 { "incrypto34", (void *(*)(void)) sc_get_incrypto34_driver }, 79 #ifdef HAVE_OPENSSL79 #ifdef ENABLE_OPENSSL 80 80 { "PIV-II", (void *(*)(void)) sc_get_piv_driver }, 81 81 #endif … … 89 89 90 90 static const struct _sc_driver_entry internal_reader_drivers[] = { 91 #if defined( HAVE_PCSC)91 #if defined(ENABLE_PCSC) 92 92 { "pcsc", (void *(*)(void)) sc_get_pcsc_driver }, 93 93 #endif 94 94 { "ctapi", (void *(*)(void)) sc_get_ctapi_driver }, 95 95 #ifndef _WIN32 96 #ifdef HAVE_OPENCT96 #ifdef ENABLE_OPENCT 97 97 { "openct", (void *(*)(void)) sc_get_openct_driver }, 98 98 #endif … … 557 557 #ifdef _WIN32 558 558 char temp_path[PATH_MAX]; 559 inttemp_len;559 DWORD temp_len; 560 560 long rc; 561 561 HKEY hKey; … … 848 848 849 849 while (1) { 850 #ifdef _WIN32 851 if (mkdir(dirname) >= 0) 852 #else 850 853 if (mkdir(dirname, 0700) >= 0) 854 #endif 851 855 break; 852 856 if (errno != ENOENT … … 864 868 break; 865 869 dirname[j] = '/'; 870 #ifdef _WIN32 871 if (mkdir(dirname) < 0) 872 #else 866 873 if (mkdir(dirname, 0700) < 0) 874 #endif 867 875 goto failed; 868 876 } -
trunk/src/libopensc/internal-winscard.h
r3330 r3405 56 56 #define SCARD_E_NO_READERS_AVAILABLE 0x8010002E /**< Cannot find a smart card reader. */ 57 57 #define SCARD_W_UNRESPONSIVE_CARD 0x80100066 /**< The smart card is not responding to a reset. */ 58 #define SCARD_W_UNPOWERED_CARD 0x80100067 /**< Power has been removed from the smart card, so that further communication is not possible. */ 58 59 #define SCARD_W_RESET_CARD 0x80100068 /**< The smart card has been reset, so any shared state information is invalid. */ 59 60 #define SCARD_W_REMOVED_CARD 0x80100069 /**< The smart card has been removed, so further communication is not possible. */ -
trunk/src/libopensc/internal.h
r3115 r3405 36 36 #include "cards.h" 37 37 #include <assert.h> 38 #ifdef _WIN32 39 #include <windows.h> 40 #endif 38 41 39 42 #define SC_FILE_MAGIC 0x14426950 -
trunk/src/libopensc/log.c
r3173 r3405 36 36 #endif 37 37 38 #ifndef __GNUC__ 39 void sc_error(sc_context_t *ctx, const char *format, ...)38 /* Although not used, we need this for consistent exports */ 39 void _sc_error(sc_context_t *ctx, const char *format, ...) 40 40 { 41 41 va_list ap; … … 46 46 } 47 47 48 void sc_debug(sc_context_t *ctx, const char *format, ...) 48 /* Although not used, we need this for consistent exports */ 49 void _sc_debug(sc_context_t *ctx, const char *format, ...) 49 50 { 50 51 va_list ap; … … 54 55 va_end(ap); 55 56 } 56 57 #endif58 57 59 58 void sc_do_log(sc_context_t *ctx, int type, const char *file, int line, const char *func, const char *format, ...) -
trunk/src/libopensc/log.h
r3084 r3405 45 45 46 46 #else 47 48 void sc_error(struct sc_context *ctx, const char *format, ...); 49 void sc_debug(struct sc_context *ctx, const char *format, ...); 50 47 #define sc_error _sc_error 48 #define sc_debug _sc_debug 51 49 #endif 52 50 51 void _sc_error(struct sc_context *ctx, const char *format, ...); 52 void _sc_debug(struct sc_context *ctx, const char *format, ...); 53 53 void sc_do_log(struct sc_context *ctx, int type, const char *file, int line, const char *func, const char *format, ...); 54 54 void sc_do_log_va(struct sc_context *ctx, int type, const char *file, int line, const char *func, const char *format, va_list args); -
trunk/src/libopensc/opensc-config.in
r196 r3405 10 10 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 11 12 version="@VERSION@" 12 13 13 prefix= @prefix@14 exec_prefix= @exec_prefix@14 prefix="@prefix@" 15 exec_prefix="@exec_prefix@" 15 16 exec_prefix_set=no 16 17 17 opensc_libs="@OPENSC_LIBS@" 18 opensc_cflags="@OPENSC_CFLAGS@" 19 18 libdir="@libdir@" 19 includedir="@includedir@" 20 opensc_cflags="" 21 opensc_libs="-L${libdir} -lopensc" 20 22 21 23 usage() … … 61 63 ;; 62 64 --version) 63 echo " @VERSION@"65 echo "${version}" 64 66 exit 0 65 67 ;; … … 86 88 87 89 if test "$echo_cflags" = "yes"; then 88 if test " @includedir@" != "/usr/include" ; then89 includes="-I @includedir@"90 for i in $ opensc_cflags; do91 if test "$i" = "-I @includedir@" ; then90 if test "${includedir}" != "/usr/include" ; then 91 includes="-I${includedir}" 92 for i in ${opensc_cflags} ; do 93 if test "$i" = "-I${includedir}" ; then 92 94 includes="" 93 95 fi -
trunk/src/libopensc/p15card-helper.c
r3129 r3405 19 19 */ 20 20 21 #include "internal.h" 22 23 #if ENABLE_OPENSSL 21 24 #include "p15card-helper.h" 22 25 #include <opensc/opensc.h> … … 341 344 return SC_SUCCESS; 342 345 } 346 347 #endif -
trunk/src/libopensc/pkcs15-actalis.c
r2993 r3405 32 32 #include <string.h> 33 33 #include <stdio.h> 34 #include "strlcpy.h"35 36 #ifdef HAVE_ZLIB_H34 #include <compat_strlcpy.h> 35 36 #ifdef ENABLE_ZLIB 37 37 #include <zlib.h> 38 38 #endif … … 152 152 int r; 153 153 154 #ifdef HAVE_ZLIB_H154 #ifdef ENABLE_ZLIB 155 155 int i; 156 156 const char *certLabel[] = { … … 198 198 set_string(&p15card->serial_number, (char *)serial); 199 199 200 #ifdef HAVE_ZLIB_H200 #ifdef ENABLE_ZLIB 201 201 for (i = 0; i < 3; i++) { 202 202 unsigned char *compCert = NULL, *cert = NULL, size[2]; -
trunk/src/libopensc/pkcs15-atrust-acos.c
r3318 r3405 25 25 #include <string.h> 26 26 #include <stdio.h> 27 #include "strlcpy.h"27 #include <compat_strlcpy.h> 28 28 29 29 #define MANU_ID "A-Trust" -
trunk/src/libopensc/pkcs15-esteid.c
r3141 r3405 29 29 30 30 #include "esteid.h" 31 #include "strlcpy.h"31 #include <compat_strlcpy.h> 32 32 33 33 int sc_pkcs15emu_esteid_init_ex(sc_pkcs15_card_t *, sc_pkcs15emu_opt_t *); -
trunk/src/libopensc/pkcs15-gemsafeGPK.c
r3295 r3405 27 27 #include <string.h> 28 28 #include <stdio.h> 29 #include "strlcpy.h"29 #include <compat_strlcpy.h> 30 30 31 31 #define MANU_ID "GemSAFE on GPK16000" -
trunk/src/libopensc/pkcs15-infocamere.c
r2993 r3405 31 31 #include <string.h> 32 32 #include <stdio.h> 33 #include "strlcpy.h"34 35 #ifdef HAVE_ZLIB_H33 #include <compat_strlcpy.h> 34 35 #ifdef ENABLE_ZLIB 36 36 #include <zlib.h> 37 37 #endif … … 487 487 } 488 488 489 #ifdef HAVE_ZLIB_H489 #ifdef ENABLE_ZLIB 490 490 491 491 static const u8 ATR_1400[] = … … 840 840 if (memcmp(p15card->card->atr, ATR_1600, sizeof(ATR_1600)) == 0) 841 841 return infocamere_1600_init(p15card); 842 #ifdef HAVE_ZLIB_H842 #ifdef ENABLE_ZLIB 843 843 else if (memcmp(p15card->card->atr, ATR_1400, sizeof(ATR_1400)) == 844 844 0) -
trunk/src/libopensc/pkcs15-openpgp.c
r2993 r3405 27 27 #include <stdio.h> 28 28 #include <assert.h> 29 #include "strlcpy.h"29 #include <compat_strlcpy.h> 30 30 31 31 int sc_pkcs15emu_openpgp_init_ex(sc_pkcs15_card_t *, sc_pkcs15emu_opt_t *); -
trunk/src/libopensc/pkcs15-piv.c
r3292 r3405 24 24 */ 25 25 26 #include "internal.h" 26 27 #include <stdlib.h> 27 28 #include <string.h> … … 32 33 #include <opensc/cardctl.h> 33 34 #include <opensc/cards.h> 34 #include <openssl/bio.h>35 #include <openssl/rsa.h>36 #include <openssl/pem.h>37 35 38 36 #define MANU_ID "piv_II " -
trunk/src/libopensc/pkcs15-postecert.c
r2993 r3405 27 27 #include <string.h> 28 28 #include <stdio.h> 29 #include "strlcpy.h"29 #include <compat_strlcpy.h> 30 30 31 31 int sc_pkcs15emu_postecert_init_ex(sc_pkcs15_card_t *, sc_pkcs15emu_opt_t *); -
trunk/src/libopensc/pkcs15-prkey-rutoken.c
r3312 r3405 29 29 #include <opensc/opensc.h> 30 30 #include <opensc/pkcs15.h> 31 #if defined(HAVE_INTTYPES_H) 32 #include <inttypes.h> 33 #elif defined(HAVE_STDINT_H) 34 #include <stdint.h> 35 #elif defined(_MSC_VER) 36 typedef unsigned __int32 uint32_t; 37 typedef unsigned __int16 uint16_t; 38 #else 39 #warning no uint32_t type available, please contact opensc-devel@opensc-project.org 40 #endif 31 41 32 42 /* BLOB definition */ 33 43 34 44 typedef struct _RSAPUBKEY { 35 u _int32_t magic;36 u _int32_t bitlen;37 u _int32_t pubexp;45 uint32_t magic; 46 uint32_t bitlen; 47 uint32_t pubexp; 38 48 } RSAPUBKEY; 39 49 … … 41 51 u8 bType; 42 52 u8 bVersion; 43 u _int16_t reserved;44 u _int32_t aiKeyAlg;53 uint16_t reserved; 54 uint32_t aiKeyAlg; 45 55 } BLOBHEADER; 46 56 … … 98 108 tmp += sizeof(pr_blob->rsapubkey); 99 109 100 u _int32_t bitlen = pr_blob->rsapubkey.bitlen;110 uint32_t bitlen = pr_blob->rsapubkey.bitlen; 101 111 102 112 len += bitlen/8 * 2 + bitlen/16 * 5; … … 139 149 { 140 150 size_t n; 141 const u _int32_t bitlen = key->modulus.len*8;151 const uint32_t bitlen = key->modulus.len*8; 142 152 143 153 if ( key->modulus.len != bitlen/8 … … 167 177 for (n=0; n < key->exponent.len && n < sizeof(pr_blob->rsapubkey.pubexp); ++n) 168 178 pr_blob->rsapubkey.pubexp += 169 (u _int32_t)key->exponent.data[key->exponent.len - n - 1] << 8*n;179 (uint32_t)key->exponent.data[key->exponent.len - n - 1] << 8*n; 170 180 171 181 pr_blob->modulus = malloc(bitlen/8); … … 206 216 static const u8 Exp[3] = { 0x01, 0x00, 0x01 }; /* big endian */ 207 217 208 const u _int32_t bitlen = pr_blob->rsapubkey.bitlen;218 const uint32_t bitlen = pr_blob->rsapubkey.bitlen; 209 219 210 220 key->modulus.data = malloc(bitlen/8); … … 306 316 static int clean_prkey_private_blob(const PRIVATEKEYBLOB* pr_blob) 307 317 { 308 const u _int32_t bitlen = pr_blob->rsapubkey.bitlen;318 const uint32_t bitlen = pr_blob->rsapubkey.bitlen; 309 319 310 320 memset(pr_blob->modulus, 0, bitlen/8); … … 344 354 } 345 355 346 int get_bin_from_prkey(const struct sc_pkcs15_prkey_rsa *rsa, u8 *key, size_t *keysize)356 int sc_rutoken_get_bin_from_prkey(const struct sc_pkcs15_prkey_rsa *rsa, u8 *key, size_t *keysize) 347 357 { 348 358 int r = -1; -
trunk/src/libopensc/pkcs15-starcert.c
r3178 r3405 24 24 #include <string.h> 25 25 #include <stdio.h> 26 #include "strlcpy.h"26 #include <compat_strlcpy.h> 27 27 28 28 #define MANU_ID "Giesecke & Devrient GmbH" -
trunk/src/libopensc/pkcs15-tcos.c
r3309 r3405 26 26 #include <string.h> 27 27 #include <stdio.h> 28 #include "strlcpy.h"28 #include <compat_strlcpy.h> 29 29 30 30 static int insert_cert( -
trunk/src/libopensc/pkcs15-wrap.c
r2815 r3405 21 21 #include "internal.h" 22 22 #include "pkcs15.h" 23 #ifdef HAVE_OPENSSL23 #ifdef ENABLE_OPENSSL 24 24 #include <openssl/evp.h> 25 25 #include <openssl/rand.h> … … 40 40 41 41 42 #ifndef HAVE_OPENSSL42 #ifndef ENABLE_OPENSSL 43 43 int 44 44 sc_pkcs15_wrap_data(sc_context_t *ctx, … … 59 59 } 60 60 61 #else /* HAVE_OPENSSL */61 #else /* ENABLE_OPENSSL */ 62 62 63 63 static int … … 247 247 return r; 248 248 } 249 #endif /* HAVE_OPENSSL */249 #endif /* ENABLE_OPENSSL */ 250 250 251 251 /* -
trunk/src/libopensc/reader-openct.c
r3177 r3405 6 6 7 7 #include "internal.h" 8 #ifdef HAVE_OPENCT8 #ifdef ENABLE_OPENCT 9 9 #include <errno.h> 10 10 #include <stdlib.h> … … 492 492 } 493 493 494 #endif /* HAVE_OPENCT */494 #endif /* ENABLE_OPENCT */ -
trunk/src/libopensc/reader-pcsc.c
r3386 r3405 20 20 21 21 #include "internal.h" 22 #ifdef HAVE_PCSC22 #ifdef ENABLE_PCSC 23 23 #include "ctbcs.h" 24 24 #include <assert.h> … … 26 26 #include <string.h> 27 27 #include <time.h> 28 #ifdef PCSC_INCLUDES_IN_PCSC 29 #include <PCSC/wintypes.h> 30 #include <PCSC/winscard.h> 31 #else 32 #include <winscard.h> 33 #endif 28 #include <ltdl.h> 34 29 35 30 #ifdef _WIN32 36 #include <Winsock.h> 37 #include "part10.h" 38 #define PINPAD_ENABLED 31 #include <winsock2.h> 39 32 #else 40 33 #include <arpa/inet.h> 41 34 #endif 42 #ifdef HAVE_READER_H 43 #include <reader.h> 44 #ifdef HOST_TO_CCID_32 45 #define PINPAD_ENABLED 46 #endif 47 #endif 35 36 #include "internal-winscard.h" 48 37 49 38 /* Default timeout value for SCardGetStatusChange … … 60 49 #undef SCARD_PROTOCOL_ANY 61 50 #define SCARD_PROTOCOL_ANY (SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1) 62 #ifdef _WIN3263 64 51 /* Error printing */ 65 52 #define PCSC_ERROR(ctx, desc, rv) sc_error(ctx, desc ": %lx\n", rv); 66 67 #else68 69 #define PCSC_ERROR(ctx, desc, rv) sc_error(ctx, desc ": %s\n", pcsc_stringify_error(rv));70 #endif71 53 72 54 /* Utility for handling big endian IOCTL codes. */ … … 86 68 int connect_reset; 87 69 int transaction_reset; 88 70 const char *library_name; 71 lt_dlhandle dlhandle; 72 SCardEstablishContext_t SCardEstablishContext; 73 SCardReleaseContext_t SCardReleaseContext; 74 SCardConnect_t SCardConnect; 75 SCardReconnect_t SCardReconnect; 76 SCardDisconnect_t SCardDisconnect; 77 SCardBeginTransaction_t SCardBeginTransaction; 78 SCardEndTransaction_t SCardEndTransaction; 79 SCardStatus_t SCardStatus; 80 SCardGetStatusChange_t SCardGetStatusChange; 81 SCardControlOLD_t SCardControlOLD; 82 SCardControl_t SCardControl; 83 SCardTransmit_t SCardTransmit; 84 SCardListReaders_t SCardListReaders; 89 85 }; 90 86 91 87 struct pcsc_private_data { 92 SCARDCONTEXT pcsc_ctx;93 88 char *reader_name; 94 89 struct pcsc_global_private_data *gpriv; … … 169 164 unsigned long control) 170 165 { 166 struct pcsc_private_data *priv = GET_PRIV_DATA(reader); 171 167 SCARD_IO_REQUEST sSendPci, sRecvPci; 172 168 DWORD dwSendLength, dwRecvLength; … … 191 187 192 188 if (!control) { 193 rv = SCardTransmit(card, &sSendPci, sendbuf, dwSendLength,189 rv = priv->gpriv->SCardTransmit(card, &sSendPci, sendbuf, dwSendLength, 194 190 &sRecvPci, recvbuf, &dwRecvLength); 195 191 } else { 196 #ifdef HAVE_PCSC_OLD 197 rv = SCardControl(card, sendbuf, dwSendLength,192 if (priv->gpriv->SCardControlOLD != NULL) { 193 rv = priv->gpriv->SCardControlOLD(card, sendbuf, dwSendLength, 198 194 recvbuf, &dwRecvLength); 199 #else 200 rv = SCardControl(card, (DWORD) control, sendbuf, dwSendLength, 195 } 196 else { 197 rv = priv->gpriv->SCardControl(card, (DWORD) control, sendbuf, dwSendLength, 201 198 recvbuf, dwRecvLength, &dwRecvLength); 202 #endif 199 } 203 200 } 204 201 … … 291 288 } 292 289 293 ret = SCardGetStatusChange(priv->pcsc_ctx, SC_STATUS_TIMEOUT, &pslot->reader_state, 1);290 ret = priv->gpriv->SCardGetStatusChange(priv->gpriv->pcsc_ctx, SC_STATUS_TIMEOUT, &pslot->reader_state, 1); 294 291 if (ret == (LONG)SCARD_E_TIMEOUT) { /* timeout: nothing changed */ 295 292 slot->flags &= ~SCARD_STATE_CHANGED; … … 334 331 DWORD readers_len = 0, state, prot, atr_len = 32; 335 332 unsigned char atr[32]; 336 LONG rv = SCardStatus(pslot->pcsc_card, NULL, &readers_len,333 LONG rv = priv->gpriv->SCardStatus(pslot->pcsc_card, NULL, &readers_len, 337 334 &state, &prot, atr, &atr_len); 338 335 if (rv == (LONG)SCARD_W_REMOVED_CARD) … … 368 365 unsigned int *event, int timeout) 369 366 { 367 struct pcsc_private_data *priv = GET_PRIV_DATA(readers[0]); 370 368 sc_context_t *ctx; 371 369 SCARDCONTEXT pcsc_ctx; … … 394 392 /* Find out the current status */ 395 393 ctx = readers[0]->ctx; 396 pcsc_ctx = GET_PRIV_DATA(readers[0])->pcsc_ctx;394 pcsc_ctx = priv->gpriv->pcsc_ctx; 397 395 for (i = 0; i < nslots; i++) { 398 396 struct pcsc_private_data *priv = GET_PRIV_DATA(readers[i]); … … 403 401 404 402 /* Can we handle readers from different PCSC contexts? */ 405 if (priv-> pcsc_ctx != pcsc_ctx)403 if (priv->gpriv->pcsc_ctx != pcsc_ctx) 406 404 return SC_ERROR_INVALID_ARGUMENTS; 407 405 } 408 406 409 ret = SCardGetStatusChange(pcsc_ctx, 0, rgReaderStates, nslots);407 ret = priv->gpriv->SCardGetStatusChange(pcsc_ctx, 0, rgReaderStates, nslots); 410 408 if (ret != 0) { 411 409 PCSC_ERROR(ctx, "SCardGetStatusChange(1) failed", ret); … … 457 455 } 458 456 459 ret = SCardGetStatusChange(pcsc_ctx, 1000 * delta,457 ret = priv->gpriv->SCardGetStatusChange(pcsc_ctx, 1000 * delta, 460 458 rgReaderStates, nslots); 461 459 if (ret == (LONG) SCARD_E_TIMEOUT) { … … 490 488 pslot->locked = 0; 491 489 492 rv = SCardReconnect(pslot->pcsc_card,490 rv = priv->gpriv->SCardReconnect(pslot->pcsc_card, 493 491 priv->gpriv->connect_exclusive ? SCARD_SHARE_EXCLUSIVE : SCARD_SHARE_SHARED, 494 492 SCARD_PROTOCOL_ANY, reset ? SCARD_UNPOWER_CARD : SCARD_LEAVE_CARD, &active_proto); … … 500 498 protocol = opensc_proto_to_pcsc(protocol); 501 499 if (pcsc_proto_to_opensc(active_proto) != protocol) { 502 rv = SCardReconnect(pslot->pcsc_card,500 rv = priv->gpriv->SCardReconnect(pslot->pcsc_card, 503 501 priv->gpriv->connect_exclusive ? SCARD_SHARE_EXCLUSIVE : SCARD_SHARE_SHARED, 504 502 protocol, SCARD_UNPOWER_CARD, &active_proto); … … 523 521 struct pcsc_slot_data *pslot = GET_SLOT_DATA(slot); 524 522 int r; 525 #ifdef PINPAD_ENABLED526 523 u8 feature_buf[256]; 527 524 DWORD i, feature_len; 528 525 PCSC_TLV_STRUCTURE *pcsc_tlv; 529 #endif530 526 531 527 r = refresh_slot_attributes(reader, slot); … … 536 532 537 533 /* Always connect with whatever protocol possible */ 538 rv = SCardConnect(priv->pcsc_ctx, priv->reader_name,534 rv = priv->gpriv->SCardConnect(priv->gpriv->pcsc_ctx, priv->reader_name, 539 535 priv->gpriv->connect_exclusive ? SCARD_SHARE_EXCLUSIVE : SCARD_SHARE_SHARED, 540 536 SCARD_PROTOCOL_ANY, &card_handle, &active_proto); … … 566 562 567 563 /* check for pinpad support */ 568 #ifdef PINPAD_ENABLED 569 sc_debug(reader->ctx, "Requesting reader features ... "); 570 571 rv = SCardControl(pslot->pcsc_card, CM_IOCTL_GET_FEATURE_REQUEST, NULL, 572 0, feature_buf, sizeof(feature_buf), &feature_len); 573 if (rv == SCARD_S_SUCCESS) { 574 575 if (!(feature_len % sizeof(PCSC_TLV_STRUCTURE))) { 576 char *log_disabled = "but it's disabled in configuration file"; 577 /* get the number of elements instead of the complete size */ 578 feature_len /= sizeof(PCSC_TLV_STRUCTURE); 579 580 pcsc_tlv = (PCSC_TLV_STRUCTURE *)feature_buf; 581 for (i = 0; i < feature_len; i++) { 582 if (pcsc_tlv[i].tag == FEATURE_VERIFY_PIN_DIRECT) { 583 pslot->verify_ioctl = ntohl(pcsc_tlv[i].value); 584 } else if (pcsc_tlv[i].tag == FEATURE_VERIFY_PIN_START) { 585 pslot->verify_ioctl_start = ntohl(pcsc_tlv[i].value); 586 } else if (pcsc_tlv[i].tag == FEATURE_VERIFY_PIN_FINISH) { 587 pslot->verify_ioctl_finish = ntohl(pcsc_tlv[i].value); 588 } else if (pcsc_tlv[i].tag == FEATURE_MODIFY_PIN_DIRECT) { 589 pslot->modify_ioctl = ntohl(pcsc_tlv[i].value); 590 } else if (pcsc_tlv[i].tag == FEATURE_MODIFY_PIN_START) { 591 pslot->modify_ioctl_start = ntohl(pcsc_tlv[i].value); 592 } else if (pcsc_tlv[i].tag == FEATURE_MODIFY_PIN_FINISH) { 593 pslot->modify_ioctl_finish = ntohl(pcsc_tlv[i].value); 594 } else { 595 sc_debug(reader->ctx, "Reader pinpad feature: %02x not supported", pcsc_tlv[i].tag); 596 } 597 } 564 if (priv->gpriv->SCardControl != NULL) { 565 sc_debug(reader->ctx, "Requesting reader features ... "); 566 567 rv = priv->gpriv->SCardControl(pslot->pcsc_card, CM_IOCTL_GET_FEATURE_REQUEST, NULL, 568 0, feature_buf, sizeof(feature_buf), &feature_len); 569 if (rv == SCARD_S_SUCCESS) { 598 570 599 /* Set slot capabilities based on detected IOCTLs */ 600 if (pslot->verify_ioctl || (pslot->verify_ioctl_start && pslot->verify_ioctl_finish)) { 601 char *log_text = "Reader supports pinpad PIN verification"; 602 if (priv->gpriv->enable_pinpad) { 603 sc_debug(reader->ctx, log_text); 604 slot->capabilities |= SC_SLOT_CAP_PIN_PAD; 571 if (!(feature_len % sizeof(PCSC_TLV_STRUCTURE))) { 572 char *log_disabled = "but it's disabled in configuration file"; 573 /* get the number of elements instead of the complete size */ 574 feature_len /= sizeof(PCSC_TLV_STRUCTURE); 575 576 pcsc_tlv = (PCSC_TLV_STRUCTURE *)feature_buf; 577 for (i = 0; i < feature_len; i++) { 578 if (pcsc_tlv[i].tag == FEATURE_VERIFY_PIN_DIRECT) { 579 pslot->verify_ioctl = ntohl(pcsc_tlv[i].value); 580 } else if (pcsc_tlv[i].tag == FEATURE_VERIFY_PIN_START) { 581 pslot->verify_ioctl_start = ntohl(pcsc_tlv[i].value); 582 } else if (pcsc_tlv[i].tag == FEATURE_VERIFY_PIN_FINISH) { 583 pslot->verify_ioctl_finish = ntohl(pcsc_tlv[i].value); 584 } else if (pcsc_tlv[i].tag == FEATURE_MODIFY_PIN_DIRECT) { 585 pslot->modify_ioctl = ntohl(pcsc_tlv[i].value); 586 } else if (pcsc_tlv[i].tag == FEATURE_MODIFY_PIN_START) { 587 pslot->modify_ioctl_start = ntohl(pcsc_tlv[i].value); 588 } else if (pcsc_tlv[i].tag == FEATURE_MODIFY_PIN_FINISH) { 589 pslot->modify_ioctl_finish = ntohl(pcsc_tlv[i].value); 605 590 } else { 606 sc_debug(reader->ctx, "%s %s", log_text, log_disabled); 607 } 608 } 609 610 if (pslot->modify_ioctl || (pslot->modify_ioctl_start && pslot->modify_ioctl_finish)) { 611 char *log_text = "Reader supports pinpad PIN modification"; 612 if (priv->gpriv->enable_pinpad) { 613 sc_debug(reader->ctx, log_text); 614 slot->capabilities |= SC_SLOT_CAP_PIN_PAD; 615 } else { 616 sc_debug(reader->ctx, "%s %s", log_text, log_disabled); 591 sc_debug(reader->ctx, "Reader pinpad feature: %02x not supported", pcsc_tlv[i].tag); 617 592 } 618 593 } 619 } else 620 sc_debug(reader->ctx, "Inconsistent TLV from reader!"); 621 } else { 622 sc_debug(reader->ctx, "SCardControl failed %d", rv); 623 } 624 #endif /* PINPAD_ENABLED */ 594 595 /* Set slot capabilities based on detected IOCTLs */ 596 if (pslot->verify_ioctl || (pslot->verify_ioctl_start && pslot->verify_ioctl_finish)) { 597 char *log_text = "Reader supports pinpad PIN verification"; 598 if (priv->gpriv->enable_pinpad) { 599 sc_debug(reader->ctx, log_text); 600 slot->capabilities |= SC_SLOT_CAP_PIN_PAD; 601 } else { 602 sc_debug(reader->ctx, "%s %s", log_text, log_disabled); 603 } 604 } 605 606 if (pslot->modify_ioctl || (pslot->modify_ioctl_start && pslot->modify_ioctl_finish)) { 607 char *log_text = "Reader supports pinpad PIN modification"; 608 if (priv->gpriv->enable_pinpad) { 609 sc_debug(reader->ctx, log_text); 610 slot->capabilities |= SC_SLOT_CAP_PIN_PAD; 611 } else { 612 sc_debug(reader->ctx, "%s %s", log_text, log_disabled); 613 } 614 } 615 } else 616 sc_debug(reader->ctx, "Inconsistent TLV from reader!"); 617 } else { 618 sc_debug(reader->ctx, "SCardControl failed %d", rv); 619 } 620 } 625 621 return SC_SUCCESS; 626 622 } … … 631 627 struct pcsc_private_data *priv = GET_PRIV_DATA(reader); 632 628 633 SCardDisconnect(pslot->pcsc_card, priv->gpriv->transaction_reset ?629 priv->gpriv->SCardDisconnect(pslot->pcsc_card, priv->gpriv->transaction_reset ? 634 630 SCARD_RESET_CARD : SCARD_LEAVE_CARD); 635 631 memset(pslot, 0, sizeof(*pslot)); … … 642 638 long rv; 643 639 struct pcsc_slot_data *pslot = GET_SLOT_DATA(slot); 640 struct pcsc_private_data *priv = GET_PRIV_DATA(reader); 644 641 645 642 SC_FUNC_CALLED(reader->ctx, 3); 646 643 assert(pslot != NULL); 647 644 648 rv = SCardBeginTransaction(pslot->pcsc_card);645 rv = priv->gpriv->SCardBeginTransaction(pslot->pcsc_card); 649 646 650 647 if ((unsigned int)rv == SCARD_W_RESET_CARD) { … … 657 654 /* Now try to begin a new transaction after we reconnected and we fail if 658 655 some other program was faster to lock the reader */ 659 rv = SCardBeginTransaction(pslot->pcsc_card);656 rv = priv->gpriv->SCardBeginTransaction(pslot->pcsc_card); 660 657 } 661 658 … … 679 676 assert(pslot != NULL); 680 677 681 rv = SCardEndTransaction(pslot->pcsc_card, priv->gpriv->transaction_reset ?678 rv = priv->gpriv->SCardEndTransaction(pslot->pcsc_card, priv->gpriv->transaction_reset ? 682 679 SCARD_RESET_CARD : SCARD_LEAVE_CARD); 683 680 … … 736 733 LONG rv; 737 734 DWORD reader_buf_size; 738 char *reader_buf , *p;735 char *reader_buf = NULL, *p; 739 736 const char *mszGroups = NULL; 740 SCARDCONTEXT pcsc_ctx;741 737 int r; 742 738 struct pcsc_global_private_data *gpriv; 743 scconf_block *conf_block; 744 745 rv = SCardEstablishContext(SCARD_SCOPE_USER, 746 NULL, NULL, &pcsc_ctx); 747 if (rv != SCARD_S_SUCCESS) 748 return pcsc_ret_to_error(rv); 749 rv = SCardListReaders(pcsc_ctx, NULL, NULL, 750 (LPDWORD) &reader_buf_size); 751 if (rv != SCARD_S_SUCCESS || reader_buf_size < 2) { 752 SCardReleaseContext(pcsc_ctx); 753 return pcsc_ret_to_error(rv); /* No readers configured */ 754 } 755 gpriv = (struct pcsc_global_private_data *) malloc(sizeof(struct pcsc_global_private_data)); 739 scconf_block *conf_block = NULL; 740 int ret = SC_ERROR_INTERNAL; 741 742 *reader_data = NULL; 743 744 gpriv = (struct pcsc_global_private_data *) calloc(1, sizeof(struct pcsc_global_private_data)); 756 745 if (gpriv == NULL) { 757 SCardReleaseContext(pcsc_ctx); 758 return SC_ERROR_OUT_OF_MEMORY; 759 } 760 gpriv->pcsc_ctx = pcsc_ctx; 746 ret = SC_ERROR_OUT_OF_MEMORY; 747 goto out; 748 } 761 749 762 750 /* Defaults */ … … 765 753 gpriv->transaction_reset = 0; 766 754 gpriv->enable_pinpad = 0; 755 gpriv->library_name = PCSC_DEFAULT_LIBRARY_NAME; 767 756 768 757 conf_block = sc_get_conf_block(ctx, "reader_driver", "pcsc", 1); … … 776 765 gpriv->enable_pinpad = 777 766 scconf_get_bool(conf_block, "enable_pinpad", gpriv->enable_pinpad); 778 } 779 *reader_data = gpriv; 767 gpriv->library_name = 768 scconf_get_str(conf_block, "library_name", gpriv->library_name); 769 } 770 771 gpriv->dlhandle = lt_dlopen(gpriv->library_name); 772 if (gpriv->dlhandle == NULL) { 773 ret = SC_ERROR_CANNOT_LOAD_MODULE; 774 goto out; 775 } 776 777 gpriv->SCardEstablishContext = (SCardEstablishContext_t)lt_dlsym(gpriv->dlhandle, "SCardEstablishContext"); 778 gpriv->SCardReleaseContext = (SCardReleaseContext_t)lt_dlsym(gpriv->dlhandle, "SCardReleaseContext"); 779 gpriv->SCardConnect = (SCardConnect_t)lt_dlsym(gpriv->dlhandle, "SCardConnect"); 780 gpriv->SCardReconnect = (SCardReconnect_t)lt_dlsym(gpriv->dlhandle, "SCardReconnect"); 781 gpriv->SCardDisconnect = (SCardDisconnect_t)lt_dlsym(gpriv->dlhandle, "SCardDisconnect"); 782 gpriv->SCardBeginTransaction = (SCardBeginTransaction_t)lt_dlsym(gpriv->dlhandle, "SCardBeginTransaction"); 783 gpriv->SCardEndTransaction = (SCardEndTransaction_t)lt_dlsym(gpriv->dlhandle, "SCardEndTransaction"); 784 gpriv->SCardStatus = (SCardStatus_t)lt_dlsym(gpriv->dlhandle, "SCardStatus"); 785 gpriv->SCardGetStatusChange = (SCardGetStatusChange_t)lt_dlsym(gpriv->dlhandle, "SCardGetStatusChange"); 786 gpriv->SCardTransmit = (SCardTransmit_t)lt_dlsym(gpriv->dlhandle, "SCardTransmit"); 787 gpriv->SCardListReaders = (SCardListReaders_t)lt_dlsym(gpriv->dlhandle, "SCardListReaders"); 788 789 if (gpriv->SCardConnect == NULL) 790 gpriv->SCardConnect = (SCardConnect_t)lt_dlsym(gpriv->dlhandle, "SCardConnectA"); 791 if (gpriv->SCardStatus == NULL) 792 gpriv->SCardStatus = (SCardStatus_t)lt_dlsym(gpriv->dlhandle, "SCardStatusA"); 793 if (gpriv->SCardGetStatusChange == NULL) 794 gpriv->SCardGetStatusChange = (SCardGetStatusChange_t)lt_dlsym(gpriv->dlhandle, "SCardGetStatusChangeA"); 795 if (gpriv->SCardListReaders == NULL) 796 gpriv->SCardListReaders = (SCardListReaders_t)lt_dlsym(gpriv->dlhandle, "SCardListReadersA"); 797 798 /* If we have SCardGetAttrib it is correct API */ 799 if (lt_dlsym(gpriv->dlhandle, "SCardGetAttrib") != NULL) 800 gpriv->SCardControl = (SCardControl_t)lt_dlsym(gpriv->dlhandle, "SCardControl"); 801 else 802 gpriv->SCardControlOLD = (SCardControlOLD_t)lt_dlsym(gpriv->dlhandle, "SCardControl"); 803 804 if ( 805 gpriv->SCardReleaseContext == NULL || 806 gpriv->SCardConnect == NULL || 807 gpriv->SCardReconnect == NULL || 808 gpriv->SCardDisconnect == NULL || 809 gpriv->SCardBeginTransaction == NULL || 810 gpriv->SCardEndTransaction == NULL || 811 gpriv->SCardStatus == NULL || 812 gpriv->SCardGetStatusChange == NULL || 813 (gpriv->SCardControl == NULL && gpriv->SCardControlOLD == NULL) || 814 gpriv->SCardTransmit == NULL || 815 gpriv->SCardListReaders == NULL 816 ) { 817 ret = SC_ERROR_CANNOT_LOAD_MODULE; 818 goto out; 819 } 820 821 rv = gpriv->SCardEstablishContext(SCARD_SCOPE_USER, 822 NULL, NULL, &gpriv->pcsc_ctx); 823 if (rv != SCARD_S_SUCCESS) { 824 ret = pcsc_ret_to_error(rv); 825 goto out; 826 } 827 rv = gpriv->SCardListReaders(gpriv->pcsc_ctx, NULL, NULL, 828 (LPDWORD) &reader_buf_size); 829 if (rv != SCARD_S_SUCCESS || reader_buf_size < 2) { 830 ret = pcsc_ret_to_error(rv); /* No readers configured */ 831 goto out; 832 } 780 833 781 834 reader_buf = (char *) malloc(sizeof(char) * reader_buf_size); 782 835 if (!reader_buf) { 783 free(gpriv); 784 *reader_data = NULL; 785 SCardReleaseContext(pcsc_ctx); 786 return SC_ERROR_OUT_OF_MEMORY; 787 } 788 rv = SCardListReaders(pcsc_ctx, mszGroups, reader_buf, 836 ret = SC_ERROR_OUT_OF_MEMORY; 837 goto out; 838 } 839 rv = gpriv->SCardListReaders(gpriv->pcsc_ctx, mszGroups, reader_buf, 789 840 (LPDWORD) &reader_buf_size); 790 841 if (rv != SCARD_S_SUCCESS) { 791 free(reader_buf); 792 free(gpriv); 793 *reader_data = NULL; 794 SCardReleaseContext(pcsc_ctx); 795 return pcsc_ret_to_error(rv); 842 ret = pcsc_ret_to_error(rv); 843 goto out; 796 844 } 797 845 p = reader_buf; … … 818 866 reader->name = strdup(p); 819 867 priv->gpriv = gpriv; 820 priv->pcsc_ctx = pcsc_ctx;821 868 priv->reader_name = strdup(p); 822 869 r = _sc_add_reader(ctx, reader); … … 837 884 while (*p++ != 0); 838 885 } while (p < (reader_buf + reader_buf_size - 1)); 839 free(reader_buf); 886 887 *reader_data = gpriv; 888 gpriv = NULL; 889 ret = SC_SUCCESS; 890 891 out: 892 if (ret != SC_SUCCESS) { 893 if (gpriv->pcsc_ctx != 0) 894 gpriv->SCardReleaseContext(gpriv->pcsc_ctx); 895 if (reader_buf != NULL) 896 free(reader_buf); 897 if (gpriv->dlhandle != NULL) 898 lt_dlclose(gpriv->dlhandle); 899 if (gpriv != NULL) 900 free(gpriv); 901 } 840 902 841 903 return 0; … … 847 909 848 910 if (priv) { 849 SCardReleaseContext(priv->pcsc_ctx); 911 priv->SCardReleaseContext(priv->pcsc_ctx); 912 lt_dlclose(priv->dlhandle); 850 913 free(priv); 851 914 } … … 888 951 */ 889 952 890 #ifdef PINPAD_ENABLED891 953 /* Local definitions */ 892 954 #define SC_CCID_PIN_TIMEOUT 30 … … 1085 1147 } 1086 1148 1087 #endif1088 1149 /* Do the PIN command */ 1089 1150 static int … … 1091 1152 struct sc_pin_cmd_data *data) 1092 1153 { 1093 #ifdef PINPAD_ENABLED 1154 struct pcsc_private_data *priv = GET_PRIV_DATA(reader); 1094 1155 u8 rbuf[SC_MAX_APDU_BUFFER_SIZE], sbuf[SC_MAX_APDU_BUFFER_SIZE]; 1095 1156 char dbuf[SC_MAX_APDU_BUFFER_SIZE * 3]; … … 1102 1163 SC_FUNC_CALLED(reader->ctx, 3); 1103 1164 assert(pslot != NULL); 1165 1166 if (priv->gpriv->SCardControl == NULL) 1167 return SC_ERROR_NOT_SUPPORTED; 1104 1168 1105 1169 /* The APDU must be provided by the card driver */ … … 1181 1245 /* PIN command completed, all is good */ 1182 1246 return SC_SUCCESS; 1183 #else1184 return SC_ERROR_NOT_SUPPORTED;1185 #endif /* PINPAD_ENABLED */1186 1247 } 1187 1248 #endif /* HAVE_PCSC */ -
trunk/src/libopensc/sc.c
r3177 r3405 23 23 #endif 24 24 25 #ifdef HAVE_OPENSSL25 #ifdef ENABLE_OPENSSL 26 26 #include <openssl/crypto.h> /* for OPENSSL_cleanse */ 27 27 #endif … … 718 718 void sc_mem_clear(void *ptr, size_t len) 719 719 { 720 #ifdef HAVE_OPENSSL720 #ifdef ENABLE_OPENSSL 721 721 OPENSSL_cleanse(ptr, len); 722 722 #else -
trunk/src/libopensc/ui.c
r3177 r3405 21 21 #include <locale.h> 22 22 #endif 23 #include <compat_getpass.h> 23 24 #include <ltdl.h> 24 25 … … 222 223 } 223 224 224 #if def HAVE_SETLOCALE225 #if defined(HAVE_SETLOCALE) && !defined(_WIN32) 225 226 setlocale(LC_MESSAGES, language); 226 227 #else … … 258 259 } 259 260 260 #if def HAVE_SETLOCALE261 #if defined(HAVE_SETLOCALE) && !defined(_WIN32) 261 262 setlocale(LC_MESSAGES, language); 262 263 #else -
trunk/src/openssh
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf 60 pkcs15-tool 61 pkcs15-crypt 62 pkcs15-init 63 piv-tool 64 eidenv 65 opensc-explorer 66 opensc-tool 67 rutoken-tool 68 cardos-info 69 cryptoflex-tool 70 netkey-tool 71 pkcs11-tool 72 pintest 73 p15dump 74 prngtest 75 base64 76 lottery 77
-
- Property svn:ignore
-
trunk/src/openssh/Makefile.am
r1822 r3405 3 3 MAINTAINERCLEANFILES = Makefile.in 4 4 5 noinst_DATA = README ask-for-pin.diff 6 EXTRA_DIST = README ask-for-pin.diff 5 dist_noinst_DATA = README ask-for-pin.diff -
trunk/src/pkcs11
- Property svn:ignore
-
old new 1 Makefile 2 Makefile.in 3 core 4 archive 5 acinclude.m4 6 aclocal.m4 7 autom4te.cache 8 compile 9 confdefs.h 10 config.* 11 configure 12 conftest 13 conftest.c 14 depcomp 15 install-sh 16 libtool 17 libtool.m4 18 ltmain.sh 19 missing 20 mkinstalldirs 21 so_locations 22 stamp-h* 23 1 24 .deps 2 25 .libs … … 19 42 *.rej 20 43 *.u 44 *.rc 45 *.pc 21 46 *~ 22 Makefile 23 Makefile.in 24 core 25 gmon.out 47 *.gz 48 *.bz2 49 *.[0-9] 50 *.html 51 *.gif 52 *.css 53 *.out 54 55 ChangeLog 56 opensc.conf 57 xsl-stylesheets 58 opensc-config 59 test-conf
-
- Property svn:ignore
