summaryrefslogtreecommitdiffstats
path: root/test/cmp_ctx_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-10-04 14:01:21 +0100
committerMatt Caswell <matt@openssl.org>2019-10-07 08:12:43 +0100
commit37133290832ac2d1389926eba7325125fdacbe8d (patch)
tree75b8c2802871f506cffa947161d48c4b6a8ab1a7 /test/cmp_ctx_test.c
parenta56f68adb7aaada4848d422125bee87ea6c3f483 (diff)
Send bad_record_mac instead of decryption_failed
The decryption failed alert was deprecated a long time ago. It can provide an attacker too much information to be able to distinguish between MAC failures and decryption failures and can lead to oracle attacks. Instead we should always use the bad_record_mac alert for these issues. This fixes one instance that still exists. It does not represent a security issue in this case because it is only ever sent if the record is publicly invalid, i.e. we have detected it is invalid without using any secret material. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10093)
Diffstat (limited to 'test/cmp_ctx_test.c')
0 files changed, 0 insertions, 0 deletions