summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/Makefile429
-rw-r--r--src/lib/libcrypto/generate_pkgconfig.sh4
-rw-r--r--src/lib/libcrypto/man/Makefile4
-rw-r--r--src/lib/libssl/Makefile49
-rw-r--r--src/lib/libssl/generate_pkgconfig.sh4
-rw-r--r--src/lib/libssl/man/Makefile4
6 files changed, 482 insertions, 12 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile
index c0496ca2d1..afe2db0cf6 100644
--- a/src/lib/libcrypto/Makefile
+++ b/src/lib/libcrypto/Makefile
@@ -1,10 +1,435 @@
1# $OpenBSD: Makefile,v 1.1 2014/04/11 22:51:53 miod Exp $ 1# $OpenBSD: Makefile,v 1.2 2016/09/03 12:42:46 beck Exp $
2 2
3SUBDIR=crypto man 3LIB= crypto
4
5SUBDIR= man
4PC_FILES=libcrypto.pc 6PC_FILES=libcrypto.pc
5 7
6CLEANFILES=${PC_FILES} 8CLEANFILES=${PC_FILES}
7 9
10SSL_SRC= ${.CURDIR}/../libssl
11LCRYPTO_SRC= ${.CURDIR}
12
13CFLAGS+= -Wall -Wundef -Werror
14
15.include <bsd.own.mk> # for 'NOPIC' definition
16.if !defined(NOPIC)
17CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_FUNOPEN
18.endif
19
20CFLAGS+= -DLIBRESSL_INTERNAL
21CFLAGS+= -DTERMIOS
22# Hardware engines
23CFLAGS+= -DOPENSSL_NO_HW_PADLOCK # XXX enable this?
24
25CFLAGS+= -I${SSL_SRC}
26CFLAGS+= -I${LCRYPTO_SRC}
27CFLAGS+= -I${LCRYPTO_SRC}/modes -I${LCRYPTO_SRC}/asn1 -I${LCRYPTO_SRC}/evp
28
29# crypto/
30SRCS+= cryptlib.c malloc-wrapper.c mem_dbg.c cversion.c ex_data.c cpt_err.c
31SRCS+= o_time.c o_str.c o_init.c
32SRCS+= mem_clr.c
33
34# aes/
35SRCS+= aes_misc.c aes_ecb.c aes_cfb.c aes_ofb.c
36SRCS+= aes_ctr.c aes_ige.c aes_wrap.c
37
38# asn1/
39SRCS+= a_object.c a_bitstr.c a_time.c a_int.c a_octet.c
40SRCS+= a_print.c a_type.c a_dup.c a_d2i_fp.c a_i2d_fp.c
41SRCS+= a_enum.c a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c
42SRCS+= x_algor.c x_val.c x_pubkey.c x_sig.c x_req.c x_attrib.c x_bignum.c
43SRCS+= x_long.c x_name.c x_x509.c x_x509a.c x_crl.c x_info.c x_spki.c nsseq.c
44SRCS+= x_nx509.c d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c
45SRCS+= t_req.c t_x509.c t_x509a.c t_crl.c t_pkey.c t_spki.c t_bitst.c
46SRCS+= tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c
47SRCS+= tasn_prn.c ameth_lib.c
48SRCS+= f_int.c f_string.c n_pkey.c
49SRCS+= f_enum.c x_pkey.c a_bool.c x_exten.c bio_asn1.c bio_ndef.c asn_mime.c
50SRCS+= asn1_gen.c asn1_par.c asn1_lib.c asn1_err.c a_bytes.c a_strnid.c
51SRCS+= evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p8_pkey.c asn_moid.c
52SRCS+= a_set.c
53SRCS+= a_time_tm.c
54
55# bf/
56SRCS+= bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c
57
58# bio/
59SRCS+= bio_lib.c bio_cb.c bio_err.c
60SRCS+= bss_mem.c bss_null.c bss_fd.c
61SRCS+= bss_file.c bss_sock.c bss_conn.c
62SRCS+= bf_null.c bf_buff.c b_print.c b_dump.c
63SRCS+= b_posix.c b_sock.c bss_acpt.c bf_nbio.c bss_log.c bss_bio.c
64SRCS+= bss_dgram.c
65
66# bn/
67SRCS+= bn_add.c bn_div.c bn_exp.c bn_lib.c bn_ctx.c bn_mul.c bn_mod.c
68SRCS+= bn_print.c bn_rand.c bn_shift.c bn_word.c bn_blind.c
69SRCS+= bn_kron.c bn_sqrt.c bn_gcd.c bn_prime.c bn_err.c bn_sqr.c
70SRCS+= bn_recp.c bn_mont.c bn_mpi.c bn_exp2.c bn_gf2m.c bn_nist.c
71SRCS+= bn_depr.c bn_const.c bn_x931p.c
72
73# buffer/
74SRCS+= buffer.c buf_err.c buf_str.c
75
76# camellia/
77SRCS+= cmll_cfb.c cmll_ctr.c cmll_ecb.c cmll_ofb.c
78
79# cast/
80SRCS+= c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
81
82# chacha/
83SRCS+= chacha.c
84
85# cmac/
86SRCS+= cmac.c cm_ameth.c cm_pmeth.c
87
88# cms/
89#SRCS+= cms_lib.c cms_asn1.c cms_att.c cms_io.c cms_smime.c cms_err.c
90#SRCS+= cms_sd.c cms_dd.c cms_cd.c cms_env.c cms_enc.c cms_ess.c
91#SRCS+= cms_pwri.c
92
93# comp/
94SRCS+= comp_lib.c comp_err.c c_rle.c c_zlib.c
95
96# conf/
97SRCS+= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c
98SRCS+= conf_mall.c conf_sap.c
99
100# des/
101SRCS+= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c
102SRCS+= ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c
103SRCS+= fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c
104SRCS+= qud_cksm.c rand_key.c set_key.c xcbc_enc.c
105SRCS+= str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c
106
107# dh/
108SRCS+= dh_asn1.c dh_gen.c dh_key.c dh_lib.c dh_check.c dh_err.c dh_depr.c
109SRCS+= dh_ameth.c dh_pmeth.c dh_prn.c
110
111# dsa/
112SRCS+= dsa_gen.c dsa_key.c dsa_lib.c dsa_asn1.c dsa_vrf.c dsa_sign.c
113SRCS+= dsa_err.c dsa_ossl.c dsa_depr.c dsa_ameth.c dsa_pmeth.c dsa_prn.c
114
115# dso/
116SRCS+= dso_dlfcn.c dso_err.c dso_lib.c dso_null.c
117SRCS+= dso_openssl.c
118
119# ec/
120SRCS+= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c
121SRCS+= ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c
122SRCS+= ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c eck_prn.c
123SRCS+= ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c
124SRCS+= ecp_oct.c ec2_oct.c ec_oct.c
125
126# ecdh/
127SRCS+= ech_lib.c ech_key.c ech_err.c
128
129# ecdsa/
130SRCS+= ecs_lib.c ecs_asn1.c ecs_ossl.c ecs_sign.c ecs_vrf.c ecs_err.c
131
132# engine/
133SRCS+= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c
134SRCS+= eng_table.c eng_pkey.c eng_fat.c eng_all.c
135SRCS+= tb_rsa.c tb_dsa.c tb_ecdsa.c tb_dh.c tb_ecdh.c tb_rand.c tb_store.c
136SRCS+= tb_cipher.c tb_digest.c tb_pkmeth.c tb_asnmth.c
137SRCS+= eng_openssl.c eng_cnf.c eng_dyn.c
138# XXX unnecessary? handled in EVP now...
139# SRCS+= eng_aesni.c # local addition
140
141# err/
142SRCS+= err.c err_all.c err_prn.c
143
144# evp/
145SRCS+= encode.c digest.c evp_enc.c evp_key.c
146SRCS+= e_des.c e_bf.c e_idea.c e_des3.c e_camellia.c
147SRCS+= e_rc4.c e_aes.c names.c
148SRCS+= e_xcbc_d.c e_rc2.c e_cast.c
149SRCS+= m_null.c m_md4.c m_md5.c m_sha1.c m_wp.c
150SRCS+= m_dss.c m_dss1.c m_ripemd.c m_ecdsa.c
151SRCS+= p_open.c p_seal.c p_sign.c p_verify.c p_lib.c p_enc.c p_dec.c
152SRCS+= bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c
153SRCS+= c_all.c evp_lib.c
154SRCS+= evp_pkey.c evp_pbe.c p5_crpt.c p5_crpt2.c
155SRCS+= e_old.c pmeth_lib.c pmeth_fn.c pmeth_gn.c m_sigver.c
156SRCS+= e_aes_cbc_hmac_sha1.c e_rc4_hmac_md5.c
157SRCS+= e_chacha.c evp_aead.c e_chacha20poly1305.c
158SRCS+= e_gost2814789.c m_gost2814789.c m_gostr341194.c m_streebog.c
159
160# gost/
161SRCS+= gost2814789.c gost89_keywrap.c gost89_params.c gost89imit_ameth.c
162SRCS+= gost89imit_pmeth.c gost_asn1.c gost_err.c gostr341001.c
163SRCS+= gostr341001_ameth.c gostr341001_key.c gostr341001_params.c
164SRCS+= gostr341001_pmeth.c gostr341194.c streebog.c
165
166# hmac/
167SRCS+= hmac.c hm_ameth.c hm_pmeth.c
168
169# idea/
170SRCS+= i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c
171
172# krb5/
173SRCS+= krb5_asn.c
174
175# lhash/
176SRCS+= lhash.c lh_stats.c
177
178# md4/
179SRCS+= md4_dgst.c md4_one.c
180
181# md5/
182SRCS+= md5_dgst.c md5_one.c
183
184# modes/
185SRCS+= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c ccm128.c xts128.c
186
187# objects/
188SRCS+= o_names.c obj_dat.c obj_lib.c obj_err.c obj_xref.c
189
190# ocsp/
191SRCS+= ocsp_asn.c ocsp_ext.c ocsp_ht.c ocsp_lib.c ocsp_cl.c
192SRCS+= ocsp_srv.c ocsp_prn.c ocsp_vfy.c ocsp_err.c
193
194# pem/
195SRCS+= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c pem_err.c
196SRCS+= pem_x509.c pem_xaux.c pem_oth.c pem_pk8.c pem_pkey.c pvkfmt.c
197
198# pkcs12/
199SRCS+= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c
200SRCS+= p12_init.c p12_key.c p12_kiss.c p12_mutl.c
201SRCS+= p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
202
203# pkcs7/
204SRCS+= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c
205SRCS+= pk7_mime.c bio_pk7.c
206
207# poly1305/
208SRCS+= poly1305.c
209
210# rand/
211SRCS+= randfile.c rand_lib.c rand_err.c
212
213# rc2/
214SRCS+= rc2_ecb.c rc2_skey.c rc2_cbc.c rc2cfb64.c rc2ofb64.c
215
216# ripemd/
217SRCS+= rmd_dgst.c rmd_one.c
218
219# rsa/
220SRCS+= rsa_eay.c rsa_gen.c rsa_lib.c rsa_sign.c rsa_saos.c rsa_err.c
221SRCS+= rsa_pk1.c rsa_ssl.c rsa_none.c rsa_oaep.c rsa_chk.c
222SRCS+= rsa_pss.c rsa_x931.c rsa_asn1.c rsa_depr.c rsa_ameth.c rsa_prn.c
223SRCS+= rsa_pmeth.c rsa_crpt.c
224
225# sha/
226SRCS+= sha1dgst.c sha1_one.c sha256.c sha512.c
227
228# stack/
229SRCS+= stack.c
230
231# ts/
232SRCS+= ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c
233SRCS+= ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c
234SRCS+= ts_asn1.c
235
236# txt_db/
237SRCS+=txt_db.c
238
239# ui/
240SRCS+= ui_err.c ui_lib.c ui_openssl.c ui_util.c
241
242# whrlpool/
243SRCS+= wp_dgst.c
244
245# x509/
246SRCS+= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c
247SRCS+= x509_obj.c x509_req.c x509spki.c x509_vfy.c
248SRCS+= x509_set.c x509cset.c x509rset.c x509_err.c
249SRCS+= x509name.c x509_v3.c x509_ext.c x509_att.c
250SRCS+= x509type.c x509_lu.c x_all.c x509_txt.c
251SRCS+= x509_trs.c by_file.c by_dir.c by_mem.c x509_vpm.c
252
253# x509v3/
254SRCS+= v3_bcons.c v3_bitst.c v3_conf.c v3_extku.c v3_ia5.c v3_lib.c
255SRCS+= v3_prn.c v3_utl.c v3err.c v3_genn.c v3_alt.c v3_skey.c v3_akey.c v3_pku.c
256SRCS+= v3_int.c v3_enum.c v3_sxnet.c v3_cpols.c v3_crld.c v3_purp.c v3_info.c
257SRCS+= v3_ocsp.c v3_akeya.c v3_pmaps.c v3_pcons.c v3_ncons.c v3_pcia.c v3_pci.c
258SRCS+= pcy_cache.c pcy_node.c pcy_data.c pcy_map.c pcy_tree.c pcy_lib.c
259
260.PATH: ${.CURDIR}/arch/${MACHINE_CPU} \
261 ${LCRYPTO_SRC} \
262 ${LCRYPTO_SRC}/aes \
263 ${LCRYPTO_SRC}/asn1 \
264 ${LCRYPTO_SRC}/bf \
265 ${LCRYPTO_SRC}/bio \
266 ${LCRYPTO_SRC}/bn \
267 ${LCRYPTO_SRC}/bn/asm \
268 ${LCRYPTO_SRC}/buffer \
269 ${LCRYPTO_SRC}/camellia \
270 ${LCRYPTO_SRC}/cast \
271 ${LCRYPTO_SRC}/chacha \
272 ${LCRYPTO_SRC}/cmac \
273 ${LCRYPTO_SRC}/cms \
274 ${LCRYPTO_SRC}/comp \
275 ${LCRYPTO_SRC}/conf \
276 ${LCRYPTO_SRC}/des \
277 ${LCRYPTO_SRC}/dh \
278 ${LCRYPTO_SRC}/dsa \
279 ${LCRYPTO_SRC}/dso \
280 ${LCRYPTO_SRC}/ec \
281 ${LCRYPTO_SRC}/ecdh \
282 ${LCRYPTO_SRC}/ecdsa \
283 ${LCRYPTO_SRC}/engine \
284 ${LCRYPTO_SRC}/err \
285 ${LCRYPTO_SRC}/evp \
286 ${LCRYPTO_SRC}/gost \
287 ${LCRYPTO_SRC}/hmac \
288 ${LCRYPTO_SRC}/idea \
289 ${LCRYPTO_SRC}/krb5 \
290 ${LCRYPTO_SRC}/lhash \
291 ${LCRYPTO_SRC}/md4 \
292 ${LCRYPTO_SRC}/md5 \
293 ${LCRYPTO_SRC}/modes \
294 ${LCRYPTO_SRC}/objects \
295 ${LCRYPTO_SRC}/ocsp \
296 ${LCRYPTO_SRC}/pem \
297 ${LCRYPTO_SRC}/perlasm \
298 ${LCRYPTO_SRC}/pkcs12 \
299 ${LCRYPTO_SRC}/pkcs7 \
300 ${LCRYPTO_SRC}/poly1305 \
301 ${LCRYPTO_SRC}/rand \
302 ${LCRYPTO_SRC}/rc2 \
303 ${LCRYPTO_SRC}/rc4 \
304 ${LCRYPTO_SRC}/ripemd \
305 ${LCRYPTO_SRC}/rsa \
306 ${LCRYPTO_SRC}/sha \
307 ${LCRYPTO_SRC}/stack \
308 ${LCRYPTO_SRC}/threads \
309 ${LCRYPTO_SRC}/ts \
310 ${LCRYPTO_SRC}/txt_db \
311 ${LCRYPTO_SRC}/ui \
312 ${LCRYPTO_SRC}/whrlpool \
313 ${LCRYPTO_SRC}/x509 \
314 ${LCRYPTO_SRC}/x509v3
315
316HDRS=\
317 ${LCRYPTO_SRC}/aes/aes.h \
318 ${LCRYPTO_SRC}/asn1/asn1.h \
319 ${LCRYPTO_SRC}/asn1/asn1_mac.h \
320 ${LCRYPTO_SRC}/asn1/asn1t.h \
321 ${LCRYPTO_SRC}/bf/blowfish.h \
322 ${LCRYPTO_SRC}/bio/bio.h \
323 ${LCRYPTO_SRC}/bn/bn.h \
324 ${LCRYPTO_SRC}/buffer/buffer.h \
325 ${LCRYPTO_SRC}/camellia/camellia.h \
326 ${LCRYPTO_SRC}/cast/cast.h \
327 ${LCRYPTO_SRC}/chacha/chacha.h \
328 ${LCRYPTO_SRC}/cmac/cmac.h \
329 ${LCRYPTO_SRC}/cms/cms.h \
330 ${LCRYPTO_SRC}/comp/comp.h \
331 ${LCRYPTO_SRC}/conf/conf.h \
332 ${LCRYPTO_SRC}/conf/conf_api.h \
333 ${LCRYPTO_SRC}/crypto.h \
334 ${LCRYPTO_SRC}/des/des.h \
335 ${LCRYPTO_SRC}/dh/dh.h \
336 ${LCRYPTO_SRC}/dsa/dsa.h \
337 ${LCRYPTO_SRC}/dso/dso.h \
338 ${LCRYPTO_SRC}/ec/ec.h \
339 ${LCRYPTO_SRC}/ecdh/ecdh.h \
340 ${LCRYPTO_SRC}/ecdsa/ecdsa.h \
341 ${LCRYPTO_SRC}/engine/engine.h \
342 ${LCRYPTO_SRC}/err/err.h \
343 ${LCRYPTO_SRC}/evp/evp.h \
344 ${LCRYPTO_SRC}/gost/gost.h \
345 ${LCRYPTO_SRC}/hmac/hmac.h \
346 ${LCRYPTO_SRC}/idea/idea.h \
347 ${LCRYPTO_SRC}/krb5/krb5_asn.h \
348 ${LCRYPTO_SRC}/lhash/lhash.h \
349 ${LCRYPTO_SRC}/md4/md4.h \
350 ${LCRYPTO_SRC}/md5/md5.h \
351 ${LCRYPTO_SRC}/modes/modes.h \
352 ${LCRYPTO_SRC}/objects/objects.h \
353 ${LCRYPTO_SRC}/ocsp/ocsp.h \
354 ${LCRYPTO_SRC}/opensslfeatures.h \
355 ${LCRYPTO_SRC}/opensslv.h \
356 ${LCRYPTO_SRC}/ossl_typ.h \
357 ${LCRYPTO_SRC}/pem/pem.h \
358 ${LCRYPTO_SRC}/pem/pem2.h \
359 ${LCRYPTO_SRC}/pkcs12/pkcs12.h \
360 ${LCRYPTO_SRC}/pkcs7/pkcs7.h \
361 ${LCRYPTO_SRC}/poly1305/poly1305.h \
362 ${LCRYPTO_SRC}/rand/rand.h \
363 ${LCRYPTO_SRC}/rc2/rc2.h \
364 ${LCRYPTO_SRC}/rc4/rc4.h \
365 ${LCRYPTO_SRC}/ripemd/ripemd.h \
366 ${LCRYPTO_SRC}/rsa/rsa.h \
367 ${LCRYPTO_SRC}/sha/sha.h \
368 ${LCRYPTO_SRC}/stack/safestack.h \
369 ${LCRYPTO_SRC}/stack/stack.h \
370 ${LCRYPTO_SRC}/ts/ts.h \
371 ${LCRYPTO_SRC}/txt_db/txt_db.h \
372 ${LCRYPTO_SRC}/ui/ui.h \
373 ${LCRYPTO_SRC}/ui/ui_compat.h \
374 ${LCRYPTO_SRC}/whrlpool/whrlpool.h \
375 ${LCRYPTO_SRC}/x509/x509.h \
376 ${LCRYPTO_SRC}/x509/x509_vfy.h \
377 ${LCRYPTO_SRC}/x509v3/x509v3.h
378
379HDRS_GEN=\
380 ${.CURDIR}/arch/${MACHINE_CPU}/opensslconf.h \
381 ${.OBJDIR}/obj_mac.h
382
383includes: obj_mac.h
384 @test -d ${DESTDIR}/usr/include/openssl || \
385 mkdir ${DESTDIR}/usr/include/openssl
386 @for i in $(HDRS); do \
387 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
388 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
389 ${DESTDIR}/usr/include/openssl"; \
390 echo $$j; \
391 eval "$$j"; \
392 done; \
393 for i in $(HDRS_GEN); do \
394 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
395 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
396 ${DESTDIR}/usr/include/openssl"; \
397 echo $$j; \
398 eval "$$j"; \
399 done;
400
401# generated
402CFLAGS+= -I${.OBJDIR}
403
404GENERATED=obj_mac.h obj_dat.h
405CLEANFILES=${GENERATED} obj_mac.num.tmp
406SSL_OBJECTS=${LCRYPTO_SRC}/objects
407
408obj_mac.h: ${SSL_OBJECTS}/objects.h ${SSL_OBJECTS}/obj_mac.num ${SSL_OBJECTS}/objects.txt
409 cat ${SSL_OBJECTS}/obj_mac.num > obj_mac.num.tmp
410 /usr/bin/perl ${SSL_OBJECTS}/objects.pl ${SSL_OBJECTS}/objects.txt obj_mac.num.tmp obj_mac.h
411
412obj_dat.h: obj_mac.h
413 /usr/bin/perl ${SSL_OBJECTS}/obj_dat.pl obj_mac.h obj_dat.h
414
415.if exists (${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc)
416.include "${.CURDIR}/arch/${MACHINE_CPU}/Makefile.inc"
417.else
418CFLAGS+=-DOPENSSL_NO_ASM
419SRCS+= aes_core.c aes_cbc.c
420SRCS+= bf_enc.c
421SRCS+= bn_asm.c
422SRCS+= camellia.c cmll_cbc.c cmll_misc.c
423SRCS+= des_enc.c fcrypt_b.c
424SRCS+= rc4_enc.c rc4_skey.c
425SRCS+= wp_block.c
426.endif
427
428all beforedepend: ${GENERATED}
429
430.include <bsd.lib.mk>
431
432
8distribution: 433distribution:
9 ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \ 434 ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \
10 ${.CURDIR}/openssl.cnf ${DESTDIR}/etc/ssl/openssl.cnf && \ 435 ${.CURDIR}/openssl.cnf ${DESTDIR}/etc/ssl/openssl.cnf && \
diff --git a/src/lib/libcrypto/generate_pkgconfig.sh b/src/lib/libcrypto/generate_pkgconfig.sh
index d0660d3c57..12dff506ff 100644
--- a/src/lib/libcrypto/generate_pkgconfig.sh
+++ b/src/lib/libcrypto/generate_pkgconfig.sh
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $OpenBSD: generate_pkgconfig.sh,v 1.1 2014/04/11 22:51:53 miod Exp $ 3# $OpenBSD: generate_pkgconfig.sh,v 1.2 2016/09/03 12:42:46 beck Exp $
4# 4#
5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org> 5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org>
6# 6#
@@ -52,7 +52,7 @@ fi
52 52
53version_re="s/^#define[[:blank:]]+SHLIB_VERSION_NUMBER[[:blank:]]+\"(.*)\".*/\1/p" 53version_re="s/^#define[[:blank:]]+SHLIB_VERSION_NUMBER[[:blank:]]+\"(.*)\".*/\1/p"
54#version_file=${curdir}/src/crypto/opensslv.h 54#version_file=${curdir}/src/crypto/opensslv.h
55version_file=${curdir}/../libssl/src/crypto/opensslv.h 55version_file=${curdir}/opensslv.h
56lib_version=$(sed -nE ${version_re} ${version_file}) 56lib_version=$(sed -nE ${version_re} ${version_file})
57 57
58# Put -I${includedir} into Cflags so configure script tests like 58# Put -I${includedir} into Cflags so configure script tests like
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 37b594c276..e74a6d56bf 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.32 2016/03/30 06:38:42 jmc Exp $ 1# $OpenBSD: Makefile,v 1.33 2016/09/03 12:42:47 beck Exp $
2 2
3.include <bsd.own.mk> # for NOMAN 3.include <bsd.own.mk> # for NOMAN
4 4
@@ -228,7 +228,7 @@ maninstall:
228 228
229.endif 229.endif
230 230
231.PATH: ${.CURDIR}/../../libssl/src/doc/crypto 231.PATH: ${.CURDIR}/../doc
232.SUFFIXES: .pod .1 .3 .7 232.SUFFIXES: .pod .1 .3 .7
233.for sect in 1 3 7 233.for sect in 1 3 7
234.pod.${sect}: 234.pod.${sect}:
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile
index 04baaccb45..16d08731eb 100644
--- a/src/lib/libssl/Makefile
+++ b/src/lib/libssl/Makefile
@@ -1,11 +1,56 @@
1# $OpenBSD: Makefile,v 1.19 2014/04/11 22:51:53 miod Exp $ 1# $OpenBSD: Makefile,v 1.20 2016/09/03 12:42:42 beck Exp $
2 2
3SUBDIR=ssl man 3SUBDIR= man
4PC_FILES=openssl.pc libssl.pc 4PC_FILES=openssl.pc libssl.pc
5 5
6CLEANFILES=${PC_FILES} 6CLEANFILES=${PC_FILES}
7 7
8LIB= ssl
9
10.include <bsd.own.mk>
11CFLAGS+= -Wall -Wundef
12.if ${COMPILER_VERSION:L} != "gcc3"
13CFLAGS+= -Werror
14.endif
15CFLAGS+= -DLIBRESSL_INTERNAL
16CFLAGS+= -I${.CURDIR}
17
18LDADD+= -L${BSDOBJDIR}/lib/libcrypto/crypto -lcrypto
19
20SRCS=\
21 s3_srvr.c s3_clnt.c s3_lib.c s3_pkt.c s3_both.c \
22 s23_srvr.c s23_clnt.c s23_lib.c s23_pkt.c \
23 t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \
24 d1_meth.c d1_srvr.c d1_clnt.c d1_lib.c d1_pkt.c \
25 d1_both.c d1_enc.c d1_srtp.c \
26 ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \
27 ssl_ciph.c ssl_stat.c ssl_rsa.c \
28 ssl_asn1.c ssl_txt.c ssl_algs.c \
29 bio_ssl.c ssl_err.c t1_reneg.c \
30 pqueue.c
31SRCS+= s3_cbc.c
32SRCS+= bs_ber.c bs_cbb.c bs_cbs.c
33
34HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h
35
36.PATH: ${.CURDIR}
37
38includes:
39 @test -d ${DESTDIR}/usr/include/openssl || \
40 mkdir ${DESTDIR}/usr/include/openssl
41 @cd ${.CURDIR}; for i in $(HDRS); do \
42 j="cmp -s $$i ${DESTDIR}/usr/include/openssl/`basename $$i` || \
43 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 $$i\
44 ${DESTDIR}/usr/include/openssl"; \
45 echo $$j; \
46 eval "$$j"; \
47 done;
48
49.include <bsd.lib.mk>
50
8beforeinstall: 51beforeinstall:
52 nm -o lib${LIB}.a | egrep -w 'printf|fprintf' && \
53 (echo please fix stdio usage in this library; false) || true
9 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} 54 /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
10.for p in ${PC_FILES} 55.for p in ${PC_FILES}
11 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ 56 ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
diff --git a/src/lib/libssl/generate_pkgconfig.sh b/src/lib/libssl/generate_pkgconfig.sh
index ea050120fb..de14a121fc 100644
--- a/src/lib/libssl/generate_pkgconfig.sh
+++ b/src/lib/libssl/generate_pkgconfig.sh
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $OpenBSD: generate_pkgconfig.sh,v 1.8 2014/04/11 22:51:53 miod Exp $ 3# $OpenBSD: generate_pkgconfig.sh,v 1.9 2016/09/03 12:42:42 beck Exp $
4# 4#
5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org> 5# Copyright (c) 2010,2011 Jasper Lievisse Adriaanse <jasper@openbsd.org>
6# 6#
@@ -51,7 +51,7 @@ if [ ! -w "${objdir}" ]; then
51fi 51fi
52 52
53version_re="s/^#define[[:blank:]]+SHLIB_VERSION_NUMBER[[:blank:]]+\"(.*)\".*/\1/p" 53version_re="s/^#define[[:blank:]]+SHLIB_VERSION_NUMBER[[:blank:]]+\"(.*)\".*/\1/p"
54version_file=${curdir}/src/crypto/opensslv.h 54version_file=${curdir}/../libcrypto/opensslv.h
55lib_version=$(sed -nE ${version_re} ${version_file}) 55lib_version=$(sed -nE ${version_re} ${version_file})
56 56
57# Put -I${includedir} into Cflags so configure script tests like 57# Put -I${includedir} into Cflags so configure script tests like
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile
index cb0b2661db..e30d3fbb42 100644
--- a/src/lib/libssl/man/Makefile
+++ b/src/lib/libssl/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.33 2016/03/30 06:38:43 jmc Exp $ 1# $OpenBSD: Makefile,v 1.34 2016/09/03 12:42:45 beck Exp $
2 2
3.include <bsd.own.mk> # for NOMAN 3.include <bsd.own.mk> # for NOMAN
4 4
@@ -96,7 +96,7 @@ maninstall:
96 96
97.endif 97.endif
98 98
99.PATH: ${.CURDIR}/../src/doc/ssl 99.PATH: ${.CURDIR}/../doc
100.SUFFIXES: .pod .1 .3 .7 100.SUFFIXES: .pod .1 .3 .7
101.for sect in 1 3 7 101.for sect in 1 3 7
102.pod.${sect}: 102.pod.${sect}: