forked from OpenSC/libp11
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cygwin dependency removed from MSVC build
- Loading branch information
Showing
25 changed files
with
139 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,8 @@ stamp-h* | |
*.gz | ||
*.bz2 | ||
*.out | ||
*.exp | ||
*.obj | ||
|
||
m4/ltoptions.m4 | ||
m4/ltsugar.m4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# libp11 Installation | ||
|
||
## Unix Build | ||
|
||
Install the OpenSSL development package. On Debian/Ubuntu use: | ||
|
||
sudo apt-get install libssl-dev | ||
|
||
Build and install libp11: | ||
|
||
./configure && make && sudo make install | ||
|
||
## Windows Build | ||
|
||
Download and install OpenSSL, for example: | ||
|
||
* https://slproweb.com/download/Win32OpenSSL-1_0_2e.exe | ||
* https://slproweb.com/download/Win64OpenSSL-1_0_2e.exe | ||
|
||
### MSVC | ||
|
||
To build libp11 use: | ||
|
||
nmake -f Makefile.mak | ||
|
||
In case your OpenSSL is installed in a different directory, use: | ||
|
||
nmake -f Makefile.mak OPENSSL_DIR=\your\openssl\directory | ||
|
||
### Mingw | ||
|
||
TODO | ||
|
||
### Cygwin | ||
|
||
TODO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
!IF "$(BUILD_FOR)" == "WIN64" | ||
OPENSSL_DIR = C:\OpenSSL-Win64 | ||
!ELSE | ||
OPENSSL_DIR = C:\OpenSSL-Win32 | ||
!ENDIF | ||
OPENSSL_INC = /I$(OPENSSL_DIR)\include | ||
|
||
#define OPENSSL_STATIC if you have visual studio compatible with OpenSSL's static binaries | ||
#OPENSSL_STATIC_DIR = static | ||
|
||
!IF "$(DEBUG_DEF)" == "/DDEBUG" | ||
OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libeay32MTd.lib user32.lib advapi32.lib crypt32.lib gdi32.lib | ||
!ELSE | ||
OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\$(OPENSSL_STATIC_DIR)\libeay32MT.lib user32.lib advapi32.lib crypt32.lib gdi32.lib | ||
!ENDIF | ||
|
||
ALL_INCLUDES= $(OPENSSL_INC) | ||
|
||
!IF "$(DEBUG_DEF)" == "/DDEBUG" | ||
LINKDEBUGFLAGS = /NODEFAULTLIB:LIBCMT /DEBUG | ||
CODE_OPTIMIZATION = | ||
COPTS = /GS /W3 /D_CRT_SECURE_NO_DEPRECATE /MTd /nologo $(ALL_INCLUDES) /I..\ /I. /D_WIN32_WINNT=0x0502 /DWIN32_LEAN_AND_MEAN /DDEBUG /Zi /Od | ||
!ELSE | ||
LINKDEBUGFLAGS = /NODEFAULTLIB:LIBCMTD | ||
COPTS = /GS /W3 /D_CRT_SECURE_NO_DEPRECATE /MT /nologo $(ALL_INCLUDES) /I..\ /I. /D_WIN32_WINNT=0x0502 /DWIN32_LEAN_AND_MEAN | ||
!ENDIF | ||
|
||
!IF "$(BUILD_FOR)" == "WIN64" | ||
LINKFLAGS = /NOLOGO /INCREMENTAL:NO /MACHINE:X64 /MANIFEST:NO /NODEFAULTLIB:MSVCRTD /NODEFAULTLIB:MSVCRT /NXCOMPAT /DYNAMICBASE $(LINKDEBUGFLAGS) | ||
LIBFLAGS = /nologo /machine:x64 | ||
!ELSE | ||
LINKFLAGS = /NOLOGO /INCREMENTAL:NO /MACHINE:X86 /MANIFEST:NO /NODEFAULTLIB:MSVCRTD /NODEFAULTLIB:MSVCRT /NXCOMPAT /DYNAMICBASE $(LINKDEBUGFLAGS) | ||
LIBFLAGS = /nologo /machine:x86 | ||
!ENDIF | ||
#define OPENSSL_STATIC if you have visual studio compatible with OpenSSL's static binaries | ||
#OPENSSL_STATIC_DIR = static | ||
|
||
!IF "$(DEBUG)" != "" | ||
DEBUG_SUFFIX = d | ||
DEBUG_COMPILE = /DDEBUG /Zi /Od | ||
DEBUG_LINK = /DEBUG | ||
!ENDIF | ||
|
||
!IF "$(BUILD_FOR)" == "WIN64" | ||
MACHINE = /MACHINE:X64 | ||
!IF "$(OPENSSL_DIR)" == "" | ||
OPENSSL_DIR = C:\OpenSSL-Win64 | ||
!ENDIF | ||
!ELSE | ||
MACHINE = /MACHINE:X86 | ||
!IF "$(OPENSSL_DIR)" == "" | ||
OPENSSL_DIR = C:\OpenSSL-Win32 | ||
!ENDIF | ||
!ENDIF | ||
|
||
!IF "$(OPENSSL_INC)" == "" | ||
OPENSSL_INC = /I$(OPENSSL_DIR)\include | ||
!ENDIF | ||
|
||
!IF "$(OPENSSL_STATIC_DIR)" == "" | ||
OPENSSL_LIB = $(OPENSSL_DIR)\lib\libeay32.lib | ||
!ELSE | ||
OPENSSL_LIB = $(OPENSSL_DIR)\lib\VC\static\libeay32MT$(DEBUG_SUFFIX).lib | ||
!ENDIF | ||
|
||
LIBS = $(OPENSSL_LIB) user32.lib advapi32.lib crypt32.lib gdi32.lib | ||
|
||
CFLAGS = /nologo /GS /W3 /D_CRT_SECURE_NO_DEPRECATE /MT$(DEBUG_SUFFIX) $(OPENSSL_INC) /D_WIN32_WINNT=0x0502 /DWIN32_LEAN_AND_MEAN $(DEBUG_COMPILE) | ||
|
||
LINKFLAGS = /NOLOGO /INCREMENTAL:NO $(MACHINE) /MANIFEST:NO /NXCOMPAT /DYNAMICBASE $(DEBUG_LINK) | ||
|
||
LIBFLAGS = /NOLOGO $(MACHINE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* Copyright (C) 2002 Olaf Kirch <[email protected]> | ||
*/ | ||
|
||
#include <config.h> | ||
#include "libp11-int.h" | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <string.h> | ||
|
@@ -32,7 +32,6 @@ | |
#else | ||
#include <dlfcn.h> | ||
#endif | ||
#include "libp11-int.h" | ||
|
||
#define MAGIC 0xd00bed00 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,10 @@ | |
* Copyright (C) 2002, Olaf Kirch <[email protected]> | ||
*/ | ||
|
||
#include <config.h> | ||
#include "libp11-int.h" | ||
#include <assert.h> | ||
#include <string.h> | ||
|
||
#include "libp11-int.h" | ||
|
||
/* | ||
* Query pkcs11 attributes | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,8 @@ | |
* Copyright (C) 2002, Olaf Kirch <[email protected]> | ||
*/ | ||
|
||
#include <config.h> | ||
#include <string.h> | ||
#include "libp11-int.h" | ||
#include <string.h> | ||
|
||
static int pkcs11_find_certs(PKCS11_TOKEN *); | ||
static int pkcs11_next_cert(PKCS11_CTX *, PKCS11_TOKEN *, CK_SESSION_HANDLE); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.