Adapt some code to OSSL_ENCODER_to_data() / OSSL_DECODER_from_data()
authorRichard Levitte <levitte@openssl.org>
Mon, 5 Oct 2020 12:27:37 +0000 (14:27 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 10 Oct 2020 18:23:39 +0000 (20:23 +0200)
commit113adc1f61ce56cc3fcb7404fb521988b792750c
tree0f1721ce6b32ce56ffc6e1dec1a8a3809b97cbf0
parent25cf949fc620ff7053e51acca3ec4d0fd094f8b0
Adapt some code to OSSL_ENCODER_to_data() / OSSL_DECODER_from_data()

The functions i2d_PrivateKey(), try_key_value() i store_result.c and
X509_PUBKEY_set() were all essentially duplicating this functionality
to some degree.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13094)
crypto/asn1/i2d_pr.c
crypto/store/store_result.c
crypto/x509/x_pubkey.c