]> git.baikalelectronics.ru Git - kernel.git/commit
X.509: Fix modular build of public_key_sm2
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Oct 2020 06:05:45 +0000 (17:05 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Oct 2020 05:39:14 +0000 (16:39 +1100)
commit38e7117eff2b756264eebe078013bc594c842b30
tree98d5e4a6f12879bd96920243de9a90d21a1245dd
parentf897db97e6919576503778ae7ca3b289e2abd8c0
X.509: Fix modular build of public_key_sm2

The sm2 code was split out of public_key.c in a way that breaks
modular builds.  This patch moves the code back into the same file
as the original motivation was to minimise ifdefs and that has
nothing to do with splitting the code out.

Fixes: d4bf49dcd6a1 ("X.509: support OSCCA SM2-with-SM3...")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/asymmetric_keys/Makefile
crypto/asymmetric_keys/public_key.c
crypto/asymmetric_keys/public_key_sm2.c [deleted file]
include/crypto/public_key.h