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)
commit3093e7c16e12d729c325adb3c53dde7308cefbd8
tree98d5e4a6f12879bd96920243de9a90d21a1245dd
parent10b0f78a73237181260fc3661577d59b475f8a20
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: 215525639631 ("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