]> git.ipfire.org Git - thirdparty/openssl.git/commit
Have OSSL_PARAM_allocate_from_text() raise error on unexpected neg number
authorRichard Levitte <levitte@openssl.org>
Mon, 22 Nov 2021 16:08:19 +0000 (17:08 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 24 Nov 2021 18:18:19 +0000 (19:18 +0100)
commit8585b5bc62d0bf394ca6adf24f8590e9b9b18402
tree0f19c6184648cbb605ec8b419b2723db46b0f542
parentb556713a6f2884eadc7f56428bc82a844e9a49e0
Have OSSL_PARAM_allocate_from_text() raise error on unexpected neg number

When the parameter definition has the data type OSSL_PARAM_UNSIGNED_INTEGER,
negative input values should not be accepted.

Fixes #17103

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17104)
crypto/cpt_err.c
crypto/err/openssl.txt
crypto/params_from_text.c
include/openssl/cryptoerr.h