summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/i2d_pr.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/asn1/i2d_pr.c')
-rw-r--r--crypto/asn1/i2d_pr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/asn1/i2d_pr.c b/crypto/asn1/i2d_pr.c
index 80cfde9a22..7185abef45 100644
--- a/crypto/asn1/i2d_pr.c
+++ b/crypto/asn1/i2d_pr.c
@@ -34,9 +34,7 @@ int i2d_PrivateKey(const EVP_PKEY *a, unsigned char **pp)
if (evp_pkey_is_provided(a)) {
/* |*pp| is unbounded, so we need an upper limit */
size_t length = INT_MAX;
- /* The private key includes everything */
- int selection =
- OSSL_KEYMGMT_SELECT_ALL_PARAMETERS | OSSL_KEYMGMT_SELECT_KEYPAIR;
+ int selection = EVP_PKEY_KEYPAIR;
int ret = -1;
OSSL_ENCODER_CTX *ctx;