]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/dh/dh_ameth.c
Move CMS enveloping code out of the algorithms and into CMS
authorMatt Caswell <matt@openssl.org>
Tue, 6 Oct 2020 15:02:43 +0000 (16:02 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 15 Oct 2020 09:00:19 +0000 (10:00 +0100)
commit0b3a4ef27a6c2a427dc2d4a87c52677d57c90f4c
tree5615f080605adfb18b83b2ee6610a9a3daa15451
parent99b3b762c33fad9383cb2d1791be9c9f7d44710a
Move CMS enveloping code out of the algorithms and into CMS

There is quite a large amount of algorithm specific CMS code sitting in
the algorithm directories. However, this seems to break layering.
Algorithms really have no business knowing anything about CMS. Really it
should be the other way around. Where there is algorithm specific CMS code
it is the CMS layer that should know how to handle different algorithms.

Therefore we move this code into the CMS layer.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13088)
18 files changed:
crypto/asn1/asn1_err.c
crypto/asn1/x_algor.c
crypto/cms/build.info
crypto/cms/cms_dh.c [new file with mode: 0644]
crypto/cms/cms_ecdh.c [new file with mode: 0644]
crypto/cms/cms_env.c
crypto/cms/cms_err.c
crypto/cms/cms_local.h
crypto/cms/cms_rsa.c [new file with mode: 0644]
crypto/dh/dh_ameth.c
crypto/ec/ec_ameth.c
crypto/err/openssl.txt
crypto/evp/pmeth_lib.c
crypto/rsa/rsa_ameth.c
include/crypto/asn1.h
include/crypto/evp.h
include/openssl/asn1err.h
include/openssl/cmserr.h