|
NAMEPKCS8_pkey_set0 ,
PKCS8_pkey_get0 ,
PKCS8_pkey_add1_attr_by_NID ,
PKCS8_pkey_get0_attrs —
change and inspect PKCS#8 PrivateKeyInfo objects
SYNOPSIS#include <openssl/x509.h>
int
int
int
const STACK_OF(X509_ATTRIBUTE) *
DESCRIPTIONPKCS8_pkey_set0 () initializes the
keyinfo object. The algorithm is set to
aobj with the associated parameter type
ptype and parameter value pval
using
X509_ALGOR_set0(3),
replacing any previous information about the algorithm. Unless
data is NULL , the encoded
private key is set to the len bytes starting at
data using
ASN1_STRING_set0(3),
not performing any validation. If data is
NULL , the key data remains unchanged. If the
version argument is greater than or equal to 0, it
replaces any existing version; otherwise, the version remains unchanged. If
keyinfo contains any attributes, they remain unchanged.
RETURN VALUESPKCS8_pkey_set0 () and
PKCS8_pkey_add1_attr_by_NID () return 1 for success or
0 for failure.
SEE ALSOASN1_STRING_set0(3), EVP_PKCS82PKEY(3), OBJ_nid2obj(3), PKCS8_PRIV_KEY_INFO_new(3), STACK_OF(3), X509_ALGOR_new(3), X509_ATTRIBUTE_create_by_NID(3), X509_ATTRIBUTE_new(3), X509at_add1_attr(3), X509at_get_attr(3)HISTORYPKCS8_pkey_set0 () and
PKCS8_pkey_get0 () first appeared in OpenSSL 1.0.0 and
have been available since OpenBSD 4.9.
Visit the GSP FreeBSD Man Page Interface. |