Add builder parts to generate PKCS#7 containers
This commit is contained in:
@@ -19,6 +19,7 @@ ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
|
|||||||
"BUILD_FROM_FILE",
|
"BUILD_FROM_FILE",
|
||||||
"BUILD_FROM_FD",
|
"BUILD_FROM_FD",
|
||||||
"BUILD_AGENT_SOCKET",
|
"BUILD_AGENT_SOCKET",
|
||||||
|
"BUILD_BLOB",
|
||||||
"BUILD_BLOB_ASN1_DER",
|
"BUILD_BLOB_ASN1_DER",
|
||||||
"BUILD_BLOB_PEM",
|
"BUILD_BLOB_PEM",
|
||||||
"BUILD_BLOB_PGP",
|
"BUILD_BLOB_PGP",
|
||||||
@@ -36,6 +37,7 @@ ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
|
|||||||
"BUILD_NOT_AFTER_TIME",
|
"BUILD_NOT_AFTER_TIME",
|
||||||
"BUILD_SERIAL",
|
"BUILD_SERIAL",
|
||||||
"BUILD_DIGEST_ALG",
|
"BUILD_DIGEST_ALG",
|
||||||
|
"BUILD_ENCRYPTION_ALG",
|
||||||
"BUILD_IETF_GROUP_ATTR",
|
"BUILD_IETF_GROUP_ATTR",
|
||||||
"BUILD_CA_CERT",
|
"BUILD_CA_CERT",
|
||||||
"BUILD_CERT",
|
"BUILD_CERT",
|
||||||
@@ -53,6 +55,7 @@ ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
|
|||||||
"BUILD_REVOKED_ENUMERATOR",
|
"BUILD_REVOKED_ENUMERATOR",
|
||||||
"BUILD_BASE_CRL",
|
"BUILD_BASE_CRL",
|
||||||
"BUILD_CHALLENGE_PWD",
|
"BUILD_CHALLENGE_PWD",
|
||||||
|
"BUILD_PKCS7_ATTRIBUTE",
|
||||||
"BUILD_PKCS11_MODULE",
|
"BUILD_PKCS11_MODULE",
|
||||||
"BUILD_PKCS11_SLOT",
|
"BUILD_PKCS11_SLOT",
|
||||||
"BUILD_PKCS11_KEYID",
|
"BUILD_PKCS11_KEYID",
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ enum builder_part_t {
|
|||||||
BUILD_FROM_FD,
|
BUILD_FROM_FD,
|
||||||
/** unix socket of a ssh/pgp agent, char* */
|
/** unix socket of a ssh/pgp agent, char* */
|
||||||
BUILD_AGENT_SOCKET,
|
BUILD_AGENT_SOCKET,
|
||||||
|
/** An arbitrary blob of data, chunk_t */
|
||||||
|
BUILD_BLOB,
|
||||||
/** DER encoded ASN.1 blob, chunk_t */
|
/** DER encoded ASN.1 blob, chunk_t */
|
||||||
BUILD_BLOB_ASN1_DER,
|
BUILD_BLOB_ASN1_DER,
|
||||||
/** PEM encoded ASN.1/PGP blob, chunk_t */
|
/** PEM encoded ASN.1/PGP blob, chunk_t */
|
||||||
@@ -81,8 +83,10 @@ enum builder_part_t {
|
|||||||
BUILD_NOT_AFTER_TIME,
|
BUILD_NOT_AFTER_TIME,
|
||||||
/** a serial number in binary form, chunk_t */
|
/** a serial number in binary form, chunk_t */
|
||||||
BUILD_SERIAL,
|
BUILD_SERIAL,
|
||||||
/** digest algorithm to be used for signature, int */
|
/** digest algorithm to be used for signature, hash_algorithm_t */
|
||||||
BUILD_DIGEST_ALG,
|
BUILD_DIGEST_ALG,
|
||||||
|
/** encryption algorithm to use, encryption_algorithm_t */
|
||||||
|
BUILD_ENCRYPTION_ALG,
|
||||||
/** a comma-separated list of ietf group attributes, char* */
|
/** a comma-separated list of ietf group attributes, char* */
|
||||||
BUILD_IETF_GROUP_ATTR,
|
BUILD_IETF_GROUP_ATTR,
|
||||||
/** a ca certificate, certificate_t* */
|
/** a ca certificate, certificate_t* */
|
||||||
@@ -117,6 +121,8 @@ enum builder_part_t {
|
|||||||
BUILD_BASE_CRL,
|
BUILD_BASE_CRL,
|
||||||
/** PKCS#10 challenge password */
|
/** PKCS#10 challenge password */
|
||||||
BUILD_CHALLENGE_PWD,
|
BUILD_CHALLENGE_PWD,
|
||||||
|
/** PKCS#7 attribute, int oid, chunk_t with ASN1 type encoded value */
|
||||||
|
BUILD_PKCS7_ATTRIBUTE,
|
||||||
/** friendly name of a PKCS#11 module, null terminated char* */
|
/** friendly name of a PKCS#11 module, null terminated char* */
|
||||||
BUILD_PKCS11_MODULE,
|
BUILD_PKCS11_MODULE,
|
||||||
/** slot specifier for a token in a PKCS#11 module, int */
|
/** slot specifier for a token in a PKCS#11 module, int */
|
||||||
|
|||||||
Reference in New Issue
Block a user