]> git.ipfire.org Git - thirdparty/openssl.git/commit
Implement i2d_PKCS8PrivateKey
authorViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 9 Apr 2025 07:55:03 +0000 (17:55 +1000)
committerMatt Caswell <matt@openssl.org>
Fri, 11 Apr 2025 10:00:27 +0000 (11:00 +0100)
commit8d2e4d6d8c927f05948e048fcbf62982feaf11b4
treee96bd4de2518711b672cd5595cc175c162382c18
parent85a8eba56769c4d25a66e0b52e8fb3e76bbe4afe
Implement i2d_PKCS8PrivateKey

Added `i2d_PKCS8PrivateKey(3)` API to complement `i2d_PrivateKey(3)`,
the former always outputs PKCS#8.

Extended endecoder_test.c to check that `i2d_PKCS8PrivateKey()`
produces the expected PKCS#8 output.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27309)
crypto/asn1/i2d_evp.c
doc/man3/d2i_PKCS8PrivateKey_bio.pod
doc/man3/d2i_PrivateKey.pod
include/openssl/evp.h
test/endecode_test.c
util/libcrypto.num