Check-in [6e6d64508e]
Overview
Comment:Added LICENSE and README

Renamed aclocal PCSC script

Added warnings for PC/SC libraries and headers not being found

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6e6d64508e1769325101856cb68fc028c13d1687
User & Date: rkeene on 2010-06-07 04:41:59
Other Links: manifest | tags
Context
2010-06-07
08:40
Added a test program to configure script check-in: 8c2970ff5d user: rkeene tags: trunk
04:41
Added LICENSE and README

Renamed aclocal PCSC script

Added warnings for PC/SC libraries and headers not being found check-in: 6e6d64508e user: rkeene tags: trunk

2010-06-05
23:46
Updated to create Debian package from RPM version check-in: 8757ba0280 user: rkeene tags: trunk
Changes

Added LICENSE version [f98e58efa6].


















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The following files in this directory are the intellectual property of the
Free Software Foundation and are licensed under the terms of the GNU General
Public License (GPL):
	config.guess, config.sub, install-sh

The files in this directory and the "leakcheck" directory are the intellectual
property of the United States Government.  It is not clear which, if any,
license is made on them.  In addition, as of 07-JUN-2010 they have not be
cleared for public release.

The files in the "pkcs11/" directory are licensed under the terms of the
following licenses:
	mypkcs11.h : GNU General Public License 2.1.
	pkcs11.h   : GNU General Public License 2.1.
	pkcs11f.h  : GNU General Public License 2.1.
	pkcs11n.h  : Mozilla Public License or GNU General Public License
	pkcs11t.h  : GNU General Public License 2.1.

Added README.txt version [3ecf224bab].
































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Description:
	CACKey provides a standard interface (PKCS#11) for smartcards connected
	to a PC/SC compliant reader.  It performs a similar function to
	"CoolKey", but only supports Government Smartcards.  It supports all
	Government Smartcards that implement the Government Smartcard
	Interoperability Specification (GSC-IS) v2.1 or newer.  

Compiling:
	$ ./configure
	$ make
	# make install

	This will install two libraries (libcackey.so, and libcackey_g.so) into
	"/usr/local/lib".

Usage:
	The libraries "libcackey.so" and "libcackey_g.so" are RSA PKCS#11
	Providers.  They are meant to be linked into any application that
	requires a PKCS#11 provider.

	The library "libcackey.so" is meant for general purpose use.

	The library "libcackey_g.so" is for debugging purposes.  It has
	debugging symbols compiled in and generates debugging information on
	stderr.

Testing:
	$ make test
	$ ./test
	 - or -
	$ ./test 2>cackey_debug.log

Modified aclocal/Makefile from [650b2584c6] to [2810947b90].

1

2

1
2
-
+

../aclocal.m4: acx_pthread.m4 dc_shobjs.m4 dc_pcscheaders.m4 dc_versionscript.m4
../aclocal.m4: acx_pthread.m4 dc_shobjs.m4 dc_pcsc.m4 dc_versionscript.m4
	cat $^ > "$@"

Renamed and modified aclocal/dc_pcscheaders.m4 [0105515e9a] to aclocal/dc_pcsc.m4 [9403cfa6bd].

39
40
41
42
43
44
45


46
47
48
49

50
51
52


53
54
55
56
57





58
59
60
61
62
63
64
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74







+
+




+



+
+





+
+
+
+
+








	CFLAGS="${SAVE_CFLAGS}${ADD_CFLAGS}"
	CPPFLAGS="${SAVE_CPPFLAGS}${ADD_CPPFLAGS}"

	unset ac_cv_header_winscard_h
	AC_CHECK_HEADER(winscard.h, [
		AC_DEFINE(HAVE_WINSCARD_H, [1], [Define if you have the PCSC-Lite header file (you should)])
	], [
		AC_MSG_WARN([unable to find winscard.h from PC/SC, compilation will likely fail.])
	])
])

AC_DEFUN(DC_PCSC_LIBS, [
	foundlib="0"
	for lib in pcsclite pcsc-lite pcsc; do
		AC_CHECK_LIB(${lib}, SCardEstablishContext, [
			LIBS="${LIBS} -l${lib}"

			foundlib="1"

			break
		])
	done

	if test "${foundlib}" = "0"; then
		AC_MSG_WARN([unable to find PCSC library, compilation will likely fail.])
	fi

	dnl Check for SCardIsValidContext, only in newer PCSC-Lite
	AC_CHECK_FUNCS(SCardIsValidContext)
])

AC_DEFUN(DC_PCSC, [
	DC_PCSC_HEADERS
	DC_PCSC_LIBS
])

Modified configure.ac from [e7fe7d4dc9] to [6f842ced7b].

10
11
12
13
14
15
16
17

18
19
20
21
22
23
24
10
11
12
13
14
15
16

17
18
19
20
21
22
23
24







-
+







dnl Determine this platform
DC_CHK_OS_INFO

dnl Determine how to create shared objects on this platform
DC_GET_SHOBJFLAGS

ACX_PTHREAD(, [
	AC_WARN([Can't figure out how to compile with pthreads support, run-time will likely fail.])
	AC_MSG_WARN([Can not figure out how to compile with pthreads support, run-time will likely fail.])
])

dnl Determine how to create static archives on this platform
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib)

dnl Determine how to strip executables