[#ASN1_item_sign_ctx] = ASN1_item_sign_ctx :mrdocs: Sign the DER encoding of `data` using an already‐initialized digest/signing context. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_item_sign_ctx( 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_MD_CTX.adoc[EVP_MD_CTX]* ctx); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *it* | ASN.1 item descriptor for `data` (for example ASN1_ITEM_rptr(X509_CINF)). | *algor1* | Optional AlgorithmIdentifier to set for the signature algorithm, or NULL. | *algor2* | Optional second AlgorithmIdentifier to set, or NULL. | *signature* | Destination BIT STRING that receives the signature bits. | *data* | Object to encode with `it` and sign. | *ctx* | Message‐digest context already set up for signing (holds the private key). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#