Revert changes in files managed by maintainers, move docker do contrib dir

This commit is contained in:
Tomasz Ziolkowski 2021-08-04 12:57:55 +02:00
parent a922c6d525
commit 1900ea3bb3
6 changed files with 7 additions and 14 deletions

1
.gitignore vendored
View File

@ -56,4 +56,3 @@
/testdata/.perfstats.txt
/doc/html
/doc/xml
.idea

5
configure vendored
View File

@ -683,7 +683,6 @@ HAVE_SSL
PC_CRYPTO_DEPENDENCY
CONFIG_DATE
NETBSD_LINTFLAGS
GCC_DOCKER_LINTFLAGS
PYUNBOUND_UNINSTALL
PYUNBOUND_INSTALL
PYUNBOUND_TARGET
@ -17889,10 +17888,6 @@ if test "`uname`" = "NetBSD"; then
fi
if test "`uname -o`" = "GNU/Linux"; then
# splint cannot parse modern c99 header files
GCC_DOCKER_LINTFLAGS='-syntax'
fi
CONFIG_DATE=`date +%Y%m%d`

View File

@ -776,6 +776,12 @@ if test "`uname`" = "NetBSD"; then
NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
AC_SUBST(NETBSD_LINTFLAGS)
fi
if test "`uname -o`" = "GNU/Linux"; then
# splint cannot parse modern c99 header files
GCC_DOCKER_LINTFLAGS='-syntax'
AC_SUBST(GCC_DOCKER_LINTFLAGS)
fi
CONFIG_DATE=`date +%Y%m%d`
AC_SUBST(CONFIG_DATE)

View File

@ -16,7 +16,7 @@ You need to have the following programs installed and in your PATH.
The optional programs are detected and can be omitted.
You can also use prepared Dockerfile to run tests inside docker based on latest gcc image:
* build container: docker build -t unbound-tester .
* build container: docker build -t unbound-tester -f contrib/Dockerfile.tests .
* run container: docker run -it --mount type=bind,source="$(pwd)",target=/usr/src/unbound --rm unbound-tester
* configure environment: ./configure
* run test: make test

View File

@ -1232,13 +1232,6 @@ ssl_handshake(struct comm_point* c)
if(want == SSL_ERROR_WANT_READ) {
if(c->ssl_shake_state == comm_ssl_shake_read)
return 1;
/* According to https://www.openssl.org/docs/man1.1.1/man3/SSL_do_handshake.html
* we should repeat handshake - for non blocking BIO
*/
if(c->ssl_shake_state == comm_ssl_shake_write) {
comm_point_listen_for_rw(c, 0, 1);
return 1;
}
c->ssl_shake_state = comm_ssl_shake_read;
comm_point_listen_for_rw(c, 1, 0);
return 1;