err/err.c: add err_clear_last_constant_time.
authorAndy Polyakov <appro@openssl.org>
Sat, 1 Sep 2018 10:19:30 +0000 (12:19 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 6 Dec 2018 11:18:35 +0000 (11:18 +0000)
commit8db50d6dafc67fbaa0380420fc1f74f977d16606
tree678fd4c177274e5ae470309290b5efaa51bc1afd
parent02354431e2a09d705082f986babf14c056f47b78
err/err.c: add err_clear_last_constant_time.

Expected usage pattern is to unconditionally set error and then
wipe it if there was no actual error.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit f658a3b64d8750642f4975090740865f770c2a1b)

Resolved conflicts:
crypto/err/err.c
crypto/constant_time_locl.h

(Merged from https://github.com/openssl/openssl/pull/7737)
crypto/constant_time_locl.h
crypto/err/err.c