Sun Sep 23 13:34:58 2018 UTC ()
Merge openssl-1.1.1


(christos)
diff -r1.13 -r1.14 src/tests/crypto/libcrypto/Makefile
diff -r1.8 -r1.9 src/tests/crypto/libcrypto/Makefile.inc
diff -r1.5 -r1.6 src/tests/crypto/libcrypto/t_ciphers.sh
diff -r1.1 -r1.2 src/tests/crypto/libcrypto/evp/Makefile
diff -r1.4 -r1.5 src/tests/crypto/libcrypto/idea/Makefile
diff -r1.4 -r1.5 src/tests/crypto/libcrypto/mdc2/Makefile
diff -r1.4 -r1.5 src/tests/crypto/libcrypto/rc5/Makefile

cvs diff -r1.13 -r1.14 src/tests/crypto/libcrypto/Makefile (expand / switch to unified diff)

--- src/tests/crypto/libcrypto/Makefile 2018/02/22 14:24:03 1.13
+++ src/tests/crypto/libcrypto/Makefile 2018/09/23 13:34:57 1.14
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1# $NetBSD: Makefile,v 1.13 2018/02/22 14:24:03 martin Exp $ 1# $NetBSD: Makefile,v 1.14 2018/09/23 13:34:57 christos Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
5SUBDIR+=bf bn cast conf des dh dsa ec ecdh ecdsa engine evp hmac \ 5SUBDIR+=bf bn cast conf des dh dsa ec ecdh ecdsa engine evp hmac \
6 md2 md4 md5 rand rc2 rc4 ripemd rsa sha1 srp threads 6 md2 rc2 rc4 rsa srp threads
7 7
8SUBDIR+=idea mdc2 8SUBDIR+=idea mdc2
9SUBDIR+=rc5 9SUBDIR+=rc5
10 10
11.if ${HAVE_OPENSSL} == 10 11.if ${HAVE_OPENSSL} == 10
12SUBDIR += lhash sha x509v3 12SUBDIR += lhash sha x509v3
13.endif 13.endif
14 14
15TESTSDIR= ${TESTSBASE}/crypto/libcrypto 15TESTSDIR= ${TESTSBASE}/crypto/libcrypto
16 16
17.if ${HAVE_OPENSSL} == 10 17.if ${HAVE_OPENSSL} == 10
18TESTS_SH= t_certs 18TESTS_SH= t_certs
19.endif 19.endif

cvs diff -r1.8 -r1.9 src/tests/crypto/libcrypto/Makefile.inc (expand / switch to unified diff)

--- src/tests/crypto/libcrypto/Makefile.inc 2018/02/08 23:41:26 1.8
+++ src/tests/crypto/libcrypto/Makefile.inc 2018/09/23 13:34:57 1.9
@@ -1,35 +1,36 @@ @@ -1,35 +1,36 @@
1# $NetBSD: Makefile.inc,v 1.8 2018/02/08 23:41:26 christos Exp $ 1# $NetBSD: Makefile.inc,v 1.9 2018/09/23 13:34:57 christos Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.include "../Makefile.inc" 4.include "../Makefile.inc"
5TESTSDIR= ${TESTSBASE}/crypto/libcrypto 5TESTSDIR= ${TESTSBASE}/crypto/libcrypto
6ATFFILE= no 6ATFFILE= no
7 7
8.if defined(HELPER_NAME) 8.if defined(HELPER_NAME)
9HELPER_SRCS?= ${HELPER_NAME}.c 9HELPER_SRCS?= ${HELPER_NAME}.c
10 10
11PROG= h_${HELPER_NAME} 11PROG= h_${HELPER_NAME}
12SRCS= ${HELPER_SRCS} 12SRCS= ${HELPER_SRCS}
13MAN= # empty 13MAN= # empty
14BINDIR= ${TESTSDIR} 14BINDIR= ${TESTSDIR}
15 15
16DPADD+= ${LIBCRYPTO} ${LIBCRYPT} 16DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
17LDADD+= -lcrypto -lcrypt 17LDADD+= -lcrypto -lcrypt
18 18
19CWARNFLAGS.clang+= -Wno-format 19CWARNFLAGS.clang+= -Wno-format
20 20
21CPPFLAGS+= -DOPENSSL_FIPS 21CPPFLAGS+= -DOPENSSL_FIPS
22CPPFLAGS+= -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto 22CPPFLAGS+= -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
23CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include 23CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include
24CPPFLAGS+= -I${OPENSSLSRC}/crypto/include 24CPPFLAGS+= -I${OPENSSLSRC}/crypto/include
25CRYPTODIST= ${NETBSDSRCDIR}/crypto 25CRYPTODIST= ${NETBSDSRCDIR}/crypto
26.include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 26.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
27.if ${HAVE_OPENSSL} != 10 27.if ${HAVE_OPENSSL} != 10
28.PATH: ${OPENSSLSRC}/test 28.PATH: ${OPENSSLSRC}/test ${OPENSSLSRC}/test/testutil
29.else 29.else
30.PATH: ${OPENSSLSRC}/crypto/${HELPER_DIR} 30.PATH: ${OPENSSLSRC}/crypto/${HELPER_DIR}
31.endif 31.endif
 32PROGDPLIBS+= cryptotest ${OPENSSLSRC}/../lib/libcryptotest
32 33
33.include <bsd.test.mk> 34.include <bsd.test.mk>
34.include <bsd.prog.mk> 35.include <bsd.prog.mk>
35.endif 36.endif

cvs diff -r1.5 -r1.6 src/tests/crypto/libcrypto/t_ciphers.sh (expand / switch to unified diff)

--- src/tests/crypto/libcrypto/t_ciphers.sh 2017/05/21 14:20:45 1.5
+++ src/tests/crypto/libcrypto/t_ciphers.sh 2018/09/23 13:34:57 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: t_ciphers.sh,v 1.5 2017/05/21 14:20:45 riastradh Exp $ 1# $NetBSD: t_ciphers.sh,v 1.6 2018/09/23 13:34:57 christos Exp $
2# 2#
3# Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc. 3# Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 14#
@@ -53,27 +53,29 @@ des_head() @@ -53,27 +53,29 @@ des_head()
53} 53}
54des_body() 54des_body()
55{ 55{
56 atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_destest" 56 atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_destest"
57} 57}
58 58
59atf_test_case evp 59atf_test_case evp
60evp_head() 60evp_head()
61{ 61{
62 atf_set "descr" "Checks EVP cipher" 62 atf_set "descr" "Checks EVP cipher"
63} 63}
64evp_body() 64evp_body()
65{ 65{
66 atf_check -o ignore -e ignore $(atf_get_srcdir)/h_evp_test $(atf_get_srcdir)/evptests.txt 66 for i in $(atf_get_srcdir)/evp*.txt; do
 67 atf_check -o ignore -e ignore $(atf_get_srcdir)/h_evp_test $i
 68 done
67} 69}
68 70
69atf_test_case rc2 71atf_test_case rc2
70rc2_head() 72rc2_head()
71{ 73{
72 atf_set "descr" "Checks RC2 cipher" 74 atf_set "descr" "Checks RC2 cipher"
73} 75}
74rc2_body() 76rc2_body()
75{ 77{
76 atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_rc2test" 78 atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_rc2test"
77} 79}
78 80
79atf_test_case rc4 81atf_test_case rc4

cvs diff -r1.1 -r1.2 src/tests/crypto/libcrypto/evp/Makefile (expand / switch to unified diff)

--- src/tests/crypto/libcrypto/evp/Makefile 2011/06/09 05:25:17 1.1
+++ src/tests/crypto/libcrypto/evp/Makefile 2018/09/23 13:34:57 1.2
@@ -1,8 +1,18 @@ @@ -1,8 +1,18 @@
1# $NetBSD: Makefile,v 1.1 2011/06/09 05:25:17 spz Exp $ 1# $NetBSD: Makefile,v 1.2 2018/09/23 13:34:57 christos Exp $
2 2
3HELPER_NAME= evp_test 3HELPER_NAME= evp_test
4HELPER_DIR= evp 4HELPER_DIR= evp
5 5
6FILES= evptests.txt 6FILES= \
 7evpcase.txt \
 8evpciph.txt \
 9evpdigest.txt \
 10evpencod.txt \
 11evpkdf.txt \
 12evpmac.txt \
 13evppbe.txt \
 14evppkey.txt \
 15evppkey_ecc.txt
7 16
8.include <bsd.init.mk> 17.include <bsd.init.mk>
 18.PATH: ${OPENSSLSRC}/test/recipes/30-test_evp_data

cvs diff -r1.4 -r1.5 src/tests/crypto/libcrypto/idea/Makefile (expand / switch to unified diff)

--- src/tests/crypto/libcrypto/idea/Makefile 2012/07/14 04:06:17 1.4
+++ src/tests/crypto/libcrypto/idea/Makefile 2018/09/23 13:34:58 1.5
@@ -1,9 +1,8 @@ @@ -1,9 +1,8 @@
1# $NetBSD: Makefile,v 1.4 2012/07/14 04:06:17 christos Exp $ 1# $NetBSD: Makefile,v 1.5 2018/09/23 13:34:58 christos Exp $
2 2
3HELPER_NAME= ideatest 3HELPER_NAME= ideatest
4HELPER_DIR= idea 4HELPER_DIR= idea
5 5
6.include <bsd.init.mk> 6.include <bsd.init.mk>
7 7
8LDADD= -lcrypto 
9LDADD+= -Wl,--no-fatal-warnings 8LDADD+= -Wl,--no-fatal-warnings

cvs diff -r1.4 -r1.5 src/tests/crypto/libcrypto/mdc2/Makefile (expand / switch to unified diff)

--- src/tests/crypto/libcrypto/mdc2/Makefile 2012/07/14 04:06:17 1.4
+++ src/tests/crypto/libcrypto/mdc2/Makefile 2018/09/23 13:34:58 1.5
@@ -1,9 +1,8 @@ @@ -1,9 +1,8 @@
1# $NetBSD: Makefile,v 1.4 2012/07/14 04:06:17 christos Exp $ 1# $NetBSD: Makefile,v 1.5 2018/09/23 13:34:58 christos Exp $
2 2
3HELPER_NAME= mdc2test 3HELPER_NAME= mdc2test
4HELPER_DIR= mdc2 4HELPER_DIR= mdc2
5 5
6.include <bsd.init.mk> 6.include <bsd.init.mk>
7 7
8LDADD= -lcrypto 
9LDADD+= -Wl,--no-fatal-warnings 8LDADD+= -Wl,--no-fatal-warnings

cvs diff -r1.4 -r1.5 src/tests/crypto/libcrypto/rc5/Makefile (expand / switch to unified diff)

--- src/tests/crypto/libcrypto/rc5/Makefile 2017/05/21 14:20:45 1.4
+++ src/tests/crypto/libcrypto/rc5/Makefile 2018/09/23 13:34:58 1.5
@@ -1,9 +1,8 @@ @@ -1,9 +1,8 @@
1# $NetBSD: Makefile,v 1.4 2017/05/21 14:20:45 riastradh Exp $ 1# $NetBSD: Makefile,v 1.5 2018/09/23 13:34:58 christos Exp $
2 2
3HELPER_NAME= rc5test 3HELPER_NAME= rc5test
4HELPER_DIR= rc5 4HELPER_DIR= rc5
5 5
6.include <bsd.init.mk> 6.include <bsd.init.mk>
7 7
8LDADD= -lcrypto 
9LDADD+= -Wl,--no-fatal-warnings 8LDADD+= -Wl,--no-fatal-warnings