diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2020-01-20 16:01:02 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2020-01-24 15:09:05 +0300 |
commit | 408113c05087393cc1623a51a0e5bfe8483e302d (patch) | |
tree | e81ff6cd28e89ad5c2e5791d65642b9b7d53fd61 /include | |
parent | dc8de3e6f1eed18617dc42d41dec6c6566c2ac0c (diff) |
New functions for PKCS8 attributes management
This commit introduces functions PKCS8_pkey_add1_attr_by_OBJ and PKCS8_pkey_add1_attr
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10900)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/x509.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/x509.h b/include/openssl/x509.h index 9d8cc03c53..4cd17d24f5 100644 --- a/include/openssl/x509.h +++ b/include/openssl/x509.h @@ -1034,8 +1034,12 @@ int PKCS8_pkey_get0(const ASN1_OBJECT **ppkalg, const STACK_OF(X509_ATTRIBUTE) * PKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8); +int PKCS8_pkey_add1_attr(PKCS8_PRIV_KEY_INFO *p8, X509_ATTRIBUTE *attr); int PKCS8_pkey_add1_attr_by_NID(PKCS8_PRIV_KEY_INFO *p8, int nid, int type, const unsigned char *bytes, int len); +int PKCS8_pkey_add1_attr_by_OBJ(PKCS8_PRIV_KEY_INFO *p8, const ASN1_OBJECT *obj, + int type, const unsigned char *bytes, int len); + int X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj, int ptype, void *pval, |