diff options
| author | Brent Cook <bcook@openbsd.org> | 2015-02-06 20:17:31 -0600 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2015-02-06 20:17:31 -0600 |
| commit | be5d0cca13c00f5615c16fcfaa5674558a29568b (patch) | |
| tree | bc654c5639e8dd9c280111efe1954f990118eff4 | |
| parent | a323f52a3ffbdaf554efa4f5924315aff3123891 (diff) | |
| download | portable-be5d0cca13c00f5615c16fcfaa5674558a29568b.tar.gz portable-be5d0cca13c00f5615c16fcfaa5674558a29568b.tar.bz2 portable-be5d0cca13c00f5615c16fcfaa5674558a29568b.zip | |
update with latest, add more tests
this adds the new bytestring apis and new regression tests
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | ssl/Makefile.am | 4 | ||||
| -rw-r--r-- | tests/Makefile.am.tpl | 1 | ||||
| -rwxr-xr-x | update.sh | 20 |
4 files changed, 11 insertions, 15 deletions
| @@ -53,6 +53,7 @@ tests/timingsafe* | |||
| 53 | tests/*test | 53 | tests/*test |
| 54 | tests/*test.c | 54 | tests/*test.c |
| 55 | tests/memmem.c | 55 | tests/memmem.c |
| 56 | tests/pbkdf2* | ||
| 56 | tests/*.pem | 57 | tests/*.pem |
| 57 | tests/testssl | 58 | tests/testssl |
| 58 | tests/*.txt | 59 | tests/*.txt |
diff --git a/ssl/Makefile.am b/ssl/Makefile.am index 5dad39f..7d66795 100644 --- a/ssl/Makefile.am +++ b/ssl/Makefile.am | |||
| @@ -9,6 +9,9 @@ libssl_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) | |||
| 9 | libssl_la_LIBADD = ../crypto/libcrypto.la | 9 | libssl_la_LIBADD = ../crypto/libcrypto.la |
| 10 | 10 | ||
| 11 | libssl_la_SOURCES = bio_ssl.c | 11 | libssl_la_SOURCES = bio_ssl.c |
| 12 | libssl_la_SOURCES += bs_ber.c | ||
| 13 | libssl_la_SOURCES += bs_cbb.c | ||
| 14 | libssl_la_SOURCES += bs_cbs.c | ||
| 12 | libssl_la_SOURCES += d1_both.c | 15 | libssl_la_SOURCES += d1_both.c |
| 13 | libssl_la_SOURCES += d1_clnt.c | 16 | libssl_la_SOURCES += d1_clnt.c |
| 14 | libssl_la_SOURCES += d1_enc.c | 17 | libssl_la_SOURCES += d1_enc.c |
| @@ -51,3 +54,4 @@ libssl_la_SOURCES += t1_srvr.c | |||
| 51 | 54 | ||
| 52 | noinst_HEADERS = srtp.h | 55 | noinst_HEADERS = srtp.h |
| 53 | noinst_HEADERS += ssl_locl.h | 56 | noinst_HEADERS += ssl_locl.h |
| 57 | noinst_HEADERS += bytestring.h | ||
diff --git a/tests/Makefile.am.tpl b/tests/Makefile.am.tpl index b2a4920..26334af 100644 --- a/tests/Makefile.am.tpl +++ b/tests/Makefile.am.tpl | |||
| @@ -2,6 +2,7 @@ include $(top_srcdir)/Makefile.am.common | |||
| 2 | 2 | ||
| 3 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes | 3 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes |
| 4 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 | 4 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 |
| 5 | AM_CPPFLAGS += -I $(top_srcdir)/ssl | ||
| 5 | 6 | ||
| 6 | LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) | 7 | LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) |
| 7 | LDADD += $(top_builddir)/ssl/libssl.la | 8 | LDADD += $(top_builddir)/ssl/libssl.la |
| @@ -190,19 +190,8 @@ done | |||
| 190 | 190 | ||
| 191 | # copy libcrypto tests | 191 | # copy libcrypto tests |
| 192 | echo "copying tests" | 192 | echo "copying tests" |
| 193 | rm -f tests/biotest.c | 193 | for i in `find $libcrypto_regress -name '*.c'`; do |
| 194 | for i in aead/aeadtest.c aeswrap/aes_wrap.c base64/base64test.c bf/bftest.c \ | 194 | $CP "$i" tests |
| 195 | bn/general/bntest.c bn/mont/mont.c \ | ||
| 196 | cast/casttest.c chacha/chachatest.c cts128/cts128test.c \ | ||
| 197 | des/destest.c dh/dhtest.c dsa/dsatest.c ec/ectest.c ecdh/ecdhtest.c \ | ||
| 198 | ecdsa/ecdsatest.c engine/enginetest.c evp/evptest.c exp/exptest.c \ | ||
| 199 | gcm128/gcm128test.c hmac/hmactest.c idea/ideatest.c ige/igetest.c \ | ||
| 200 | md4/md4test.c md5/md5test.c mdc2/mdc2test.c poly1305/poly1305test.c \ | ||
| 201 | pkcs7/pkcs7test.c pqueue/pq_test.c rand/randtest.c rc2/rc2test.c \ | ||
| 202 | rc4/rc4test.c rmd/rmdtest.c sha/shatest.c sha1/sha1test.c \ | ||
| 203 | sha256/sha256test.c sha512/sha512test.c utf8/utf8test.c \ | ||
| 204 | gost/gost2814789t.c ; do | ||
| 205 | $CP $libcrypto_regress/$i tests | ||
| 206 | done | 195 | done |
| 207 | 196 | ||
| 208 | # copy libc tests | 197 | # copy libc tests |
| @@ -211,9 +200,10 @@ $CP $libc_regress/explicit_bzero/explicit_bzero.c tests | |||
| 211 | $CP $libc_regress/timingsafe/timingsafe.c tests | 200 | $CP $libc_regress/timingsafe/timingsafe.c tests |
| 212 | 201 | ||
| 213 | # copy libssl tests | 202 | # copy libssl tests |
| 214 | $CP $libssl_regress/asn1/asn1test.c tests | ||
| 215 | $CP $libssl_regress/ssl/testssl tests | 203 | $CP $libssl_regress/ssl/testssl tests |
| 216 | $CP $libssl_regress/ssl/ssltest.c tests | 204 | for i in `find $libssl_regress -name '*.c'`; do |
| 205 | $CP "$i" tests | ||
| 206 | done | ||
| 217 | $CP $libssl_regress/certs/ca.pem tests | 207 | $CP $libssl_regress/certs/ca.pem tests |
| 218 | $CP $libssl_regress/certs/server.pem tests | 208 | $CP $libssl_regress/certs/server.pem tests |
| 219 | 209 | ||
