diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2021-03-24 13:23:09 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-03-31 18:05:07 +0900 |
commit | e2bf3659e184088d00d099a49e3263724f43ece2 (patch) | |
tree | a6ccdd73438d26b680734f37611702bbbab3e4fb /ext/openssl/ossl_bn.h | |
parent | 66d2fc7989d741bf5a73286233139901cecb4fc2 (diff) |
[ruby/openssl] pkcs7: keep private key when duplicating PKCS7_SIGNER_INFO
ASN1_dup() will not copy the 'pkey' field of a PKCS7_SIGNER_INFO object
by design; it is a temporary field kept until the PKCS7 structure is
finalized. Let's bump reference counter of the pkey in the original
object and use it in the new object, too.
This commit also removes PKCS7#add_signer's routine to add the
content-type attribute as a signed attribute automatically. This
behavior was not documented or tested. This change should not break any
working user code since the method was completely useless without the
change above.
https://github.com/ruby/openssl/commit/20ca7a27a8
Diffstat (limited to 'ext/openssl/ossl_bn.h')
0 files changed, 0 insertions, 0 deletions