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>
Fri, 30 Nov 2018 12:51:58 +0000 (12:51 +0000)
commitd2cd28b99efa65dbd39cb8db0f2ad992be1aab00
tree5da91fe1accb64c8aa0435090ce43882570dbb66
parent89cb61de2af5f0fb07c86de086d57f20d523f6ba
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)
crypto/err/err.c
include/internal/constant_time_locl.h