sm2: Allow setting 0 length SM2 dist ID param
authorTomas Mraz <tomas@openssl.org>
Wed, 6 Apr 2022 08:03:22 +0000 (10:03 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 11 Apr 2022 09:46:04 +0000 (11:46 +0200)
commit444513d0b7eace7cf9681dcc222606822d17e71d
treeba0cd8a847141a52f5736978c81b010aff47bb64
parentaea2d74bdce61c8aaa942cf03fb1ca9761e9f3a8
sm2: Allow setting 0 length SM2 dist ID param

Fixes #18022

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18052)

(cherry picked from commit 2904d0a2ae0ec6ce23d5cec66ce8c7bdb005d4e5)
providers/implementations/signature/sm2_sig.c