forked from OpenSC/pkcs11-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
74 lines (61 loc) · 1.51 KB
/
INSTALL
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
32
33
34
35
36
37
38
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
pkcs11-helper -- PKCS#11 simplification.
Copyright (c) 2005-2018 Alon Bar-Lev <[email protected]>
POSIX
Dependencies:
dl
threading: (Optional)
pthread (nptl)
engine-crypt: (Optional, usually must choose)
OpenSSL>=0.9.7 || GNUTLS>=1.4.4
openssl: (Optional)
OpenSSL>=0.9.7
doc: (Optional)
doxygen>=1.4
Build:
$ ./configure
$ make
$ make install
Cross-MinGW32
Dependencies:
man2html
openssl: (Optional)
OpenSSL>=0.9.7
doc: (Optional)
doxygen>=1.4
Build:
w32root=/tmp/w32root
Without openssl engine:
./configure \
--prefix=/ --host=mingw32 \
--disable-openssl \
--disable-crypto-engine-openssl \
--disable-crypto-engine-gnutls
With openssl engine:
./configure --prefix=/ --host=mingw32 \
--disable-crypto-engine-gnutls \
--disable-crypto-engine-nss \
PKG_CONFIG=true \
OPENSSL_CFLAGS="-I${w32root}/include" \
OPENSSL_LIBS="-L${w32root}/lib -lcrypto"
make
make install DESTDIR="${w32root}"
Create Microsoft LIB file (Optional):
[[Must use Microsoft lib utility]]
lib /def:libpkcs11-helper-1.dll.def \
/name:libpkcs11-helper-1.dll \
/out:pkcs11-helper.dll.lib
Native-Cygwin
Dependencies:
Same as Cross-MinGW32
Build:
Same as Cross-MinGW32, replace --host=mingw32 with --with-cygwin-native.
Visual Studio
Dependencies:
None.
Build:
Without openssl engine:
cd lib
nmake -f Makefile.w32-vc
With openssl engine:
cd lib
nmake -f Makefile.w32-vc OPENSSL=1 OPENSSL_HOME=<location of openssl>