summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-05-17 14:15:20 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-05-23 16:41:34 +0100
commit05dba8151bd418cdc111d62102aaf9f4e7bd2f3f (patch)
treed29b35e495de274097853570f16271fe29f32cb8 /include
parent07930a75a1f82fd359d0af7849f01990b73659dd (diff)
Support for traditional format private keys.
Add new function PEM_write_bio_PrivateKey_traditional() to enforce the use of legacy "traditional" private key format. Add -traditional option to pkcs8 and pkey utilities. Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/pem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openssl/pem.h b/include/openssl/pem.h
index 74445cace2..df78fd858a 100644
--- a/include/openssl/pem.h
+++ b/include/openssl/pem.h
@@ -359,6 +359,11 @@ DECLARE_PEM_write_const(DHxparams, DH)
DECLARE_PEM_rw_cb(PrivateKey, EVP_PKEY)
DECLARE_PEM_rw(PUBKEY, EVP_PKEY)
+int PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,
+ const EVP_CIPHER *enc,
+ unsigned char *kstr, int klen,
+ pem_password_cb *cb, void *u);
+
int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,
char *kstr, int klen,
pem_password_cb *cb, void *u);