[#ASN1_item_sign] = ASN1_item_sign :mrdocs: Sign the DER encoding of an ASN.1 value described by `it.` == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_item_sign( xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it, xref:X509_ALGOR.adoc[X509_ALGOR]* algor1, xref:X509_ALGOR.adoc[X509_ALGOR]* algor2, xref:ASN1_BIT_STRING.adoc[ASN1_BIT_STRING]* signature, void const* data, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, xref:EVP_MD.adoc[EVP_MD] const* md); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *it* | ASN.1 item descriptor for `data.` | *algor1* | Optional AlgorithmIdentifier to set for the signature algorithm, or NULL. | *algor2* | Optional second AlgorithmIdentifier to set (for example in certificates), or NULL. | *signature* | Destination BIT STRING that receives the signature bits. | *data* | Object to encode with `it` and sign. | *pkey* | Private key used for signing. | *md* | Message digest, or NULL to use a key‐type default where applicable. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#