gnutls-3.8.7.1-tests.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. https://gitlab.com/gnutls/gnutls/-/commit/f3e8eac0586a19f4dafd89f68006a536b826e65a
  2. From f3e8eac0586a19f4dafd89f68006a536b826e65a Mon Sep 17 00:00:00 2001
  3. From: Andreas Metzler <ametzler@bebt.de>
  4. Date: Thu, 15 Aug 2024 16:22:02 +0200
  5. Subject: [PATCH] revert back to datefudge for "openssl ocsp".
  6. openssl's -attime only changes the verification logic but not the
  7. generation.
  8. Broken by: d1bc7f644422c4d87edfcd9fafe7f292a1a3a6de
  9. Signed-off-by: Andreas Metzler <ametzler@bebt.de>
  10. --- a/tests/ocsp-tests/ocsp-must-staple-connection.sh
  11. +++ b/tests/ocsp-tests/ocsp-must-staple-connection.sh
  12. @@ -48,6 +48,8 @@ fi
  13. . "${srcdir}/scripts/common.sh"
  14. +skip_if_no_datefudge
  15. +
  16. eval "${GETPORT}"
  17. # Port for gnutls-serv
  18. TLS_SERVER_PORT=$PORT
  19. @@ -69,7 +71,6 @@ fi
  20. CERTDATE="2016-04-28 00:00:00"
  21. TESTDATE="2016-04-29 00:00:00"
  22. -EPOCHTESTDATE=1461888000
  23. EXP_OCSP_DATE="2016-03-27 00:00:00"
  24. OCSP_PID=""
  25. @@ -129,8 +130,8 @@ cp "${srcdir}/ocsp-tests/certs/ocsp_index.txt.attr" ${ATTRFILE}
  26. # SO_REUSEADDR usage.
  27. PORT=${OCSP_PORT}
  28. launch_bare_server \
  29. - "${OPENSSL}" ocsp -attime "${EPOCHTESTDATE}" \
  30. - -index "${INDEXFILE}" -text \
  31. + "$FAKETIME" "${TESTDATE}" \
  32. + "${OPENSSL}" ocsp -index "${INDEXFILE}" -text \
  33. -port "${OCSP_PORT}" \
  34. -rsigner "${srcdir}/ocsp-tests/certs/ocsp-server.pem" \
  35. -rkey "${srcdir}/ocsp-tests/certs/ocsp-server.key" \
  36. --
  37. GitLab