Print this page
9156 Remove openssl dependency from pkcs11_tpm
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com
+++ new/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 +# Copyright 2018 Jason King
25 +#
24 26 LIBRARY = pkcs11_tpm.a
25 27 VERS = .1
26 28
29 +RSA_DIR = $(SRC)/common/crypto/rsa
30 +RSA_FLAGS = -I$(RSA_DIR)
31 +
32 +BIGNUM_DIR = $(SRC)/common/bignum
33 +BIGNUM_FLAGS = -I$(BIGNUM_DIR)
34 +
35 +PADDING_DIR = $(SRC)/common/crypto/padding
36 +PADDING_FLAGS = -I$(PADDING_DIR)
37 +
38 +SOFTCRYPTOFLAGS = $(RSA_FLAGS) $(PADDING_FLAGS) $(BIGNUM_FLAGS)
39 +
27 40 OBJECTS= api_interface.o \
28 41 apiutil.o \
29 42 asn1.o \
30 43 cert.o \
31 44 data_obj.o \
32 45 decr_mgr.o \
33 46 dig_mgr.o \
34 47 encr_mgr.o \
35 48 globals.o \
36 49 hwf_obj.o \
37 50 key.o \
38 51 key_mgr.o \
39 52 loadsave.o \
40 53 log.o \
41 54 mech_md5.o \
42 55 mech_rsa.o \
43 56 mech_sha.o \
44 57 new_host.o \
45 58 obj_mgr.o \
46 59 object.o \
47 60 sess_mgr.o \
48 61 sign_mgr.o \
49 62 template.o \
50 63 tpm_specific.o \
51 64 utility.o \
52 65 verify_mgr.o
53 66
54 67
55 68 include $(SRC)/lib/Makefile.lib
56 69
57 70 SRCDIR= ../common
58 71
59 72 SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c)
60 73
61 74 # set signing mode
62 75 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
63 76
64 77 ROOTLIBDIR=$(ROOT)/usr/lib/security
65 78 ROOTLIBDIR64=$(ROOT)/usr/lib/security/$(MACH64)
↓ open down ↓ |
29 lines elided |
↑ open up ↑ |
66 79
67 80 LIBS=$(DYNLIB) $(DYNLIB64)
68 81
69 82 TSSROOT=$(ADJUNCT_PROTO)
70 83 TSPILIBDIR=$(TSSROOT)/usr/lib
71 84 TSPIINCDIR=$(TSSROOT)/usr/include
72 85 TSSLIB=-L$(TSPILIBDIR)
73 86 TSSLIB64=-L$(TSPILIBDIR)/$(MACH64)
74 87 TSSINC=-I$(TSPIINCDIR)
75 88
76 -LDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lcrypto
77 -CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC)
89 +LDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lsoftcrypto
90 +CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC) $(SOFTCRYPTOFLAGS)
78 91 CPPFLAGS64 += $(CPPFLAGS)
79 92 CSTD= $(CSTD_GNU99)
80 93
81 94 CERRWARN += -_gcc=-Wno-parentheses
82 95 CERRWARN += -_gcc=-Wno-unused-label
83 96 CERRWARN += -_gcc=-Wno-uninitialized
84 97
85 98 LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c)
86 99
87 100 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
88 101 LINTSRC= $(SRCS)
89 102
90 103 CLOBBERFILES += C.ln
91 104
92 105 .KEEP_STATE:
93 106
94 107 all: $(LIBS)
95 108
96 109 lint: $$(LINTSRC)
97 110 $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS)
98 111
99 112 pics/%.o: $(SRCDIR)/%.c
100 113 $(COMPILE.c) -o $@ $<
101 114 $(POST_PROCESS_O)
102 115
103 116 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX