Skip to content

Commit 74acdcb

Browse files
committed
adding pkcs11 submodule
1 parent 681ca74 commit 74acdcb

File tree

10 files changed

+63
-1512
lines changed

10 files changed

+63
-1512
lines changed

.gitignore

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
*~
2-
m4/
2+
3+
/aclocal.m4
4+
/ar-lib
5+
/config.guess
6+
/config.log
7+
/config.status
8+
/config.sub
9+
/configure
10+
/depcomp
11+
/install-sh
12+
/libtool
13+
/ltmain.sh
14+
/missing
15+
/m4/
16+
/autom4te.cache/
17+
/include/config.h
18+
/include/config.h.in
19+
/include/stamp-h1
20+
21+
Makefile
22+
Makefile.in
23+
*.o
24+
*.lo
25+
*.la
26+
.deps/
27+
.libs/
28+
29+
/lib
30+
/*.ign/
331

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "include/cryptoki"]
2+
path = include/cryptoki
3+
url = https://github.com/oasis-tcs/pkcs11.git

bootstrap.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
mkdir -p m4
44
autoreconf --verbose --install --force
5+
git submodule update --init include/cryptoki
6+

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AC_PREREQ([2.69])
55
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
66
AC_CONFIG_MACRO_DIR([m4])
77
AC_CONFIG_SRCDIR([src/pkcs11-display.c])
8-
AC_CONFIG_HEADERS([config.h])
8+
AC_CONFIG_HEADERS([include/config.h])
99

1010
# automake & libtool
1111
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])

include/cryptoki

Submodule cryptoki added at eb8438a

include/cryptoki.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#ifndef _CRYPTOKI_H_
2+
#define _CRYPTOKI_H_ 1
3+
4+
#define CK_PTR *
5+
6+
#define CK_DECLARE_FUNCTION(returnType, name) \
7+
returnType name
8+
9+
#define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
10+
returnType (* name)
11+
12+
#define CK_CALLBACK_FUNCTION(returnType, name) \
13+
returnType (* name)
14+
15+
#ifndef NULL_PTR
16+
#define NULL_PTR 0
17+
#endif
18+
19+
#include "pkcs11.h" /* include from OASIS submodule */
20+
21+
#endif /* _CRYPTOKI_H_ */
22+

src/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AM_CPPFLAGS = -I$(top_srcdir)
1+
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/cryptoki/published/2-40-errata-1
22

33
lib_LTLIBRARIES = libpkcs11spy.la
44

@@ -8,8 +8,8 @@ libpkcs11spy_la_SOURCES = pkcs11-spy.c \
88
libscdl.c libscdl.h \
99
pkcs11.exports
1010

11-
libpkcs11spy_la_CFLAGS = $(OPTIONAL_OPENSSL_CFLAGS)
12-
libpkcs11spy_la_LIBADD = $(OPTIONAL_OPENSSL_LIBS)
11+
libpkcs11spy_la_CFLAGS = $(LIBCRYPTO_CFLAGS)
12+
libpkcs11spy_la_LIBADD = $(LIBCRYPTO_LIBS)
1313
libpkcs11spy_la_LDFLAGS = $(AM_LDFLAGS) \
1414
-export-symbols "$(srcdir)/pkcs11.exports" \
1515
-module -shared -avoid-version -no-undefined

src/libpkcs11.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <stdio.h>
2828
#include <string.h>
2929

30-
#include "pkcs11.h"
30+
#include "cryptoki.h"
3131

3232
#include "libscdl.h"
3333
#include "libpkcs11.h"

src/pkcs11-display.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <stdlib.h>
2424
#include <stdio.h>
2525

26-
#include "pkcs11.h"
26+
#include "cryptoki.h"
2727

2828
#ifdef __cplusplus
2929
extern "C" {

0 commit comments

Comments
 (0)