[#PKCS7_ctrl]
= PKCS7&lowbar;ctrl
:mrdocs:

Perform a control operation on a PKCS&num;7 object (for example set&sol;get detached signature)&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs7&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
long
PKCS7&lowbar;ctrl(
    xref:PKCS7.adoc[PKCS7]* p7,
    int cmd,
    long larg,
    char* parg);
----

== Return Value

Command&hyphen;specific long result&semi; for set&sol;get detached, the detached flag (non&hyphen;zero when detached)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7*
| PKCS&num;7 object to modify or query&period;
| *cmd*
| Control code such as PKCS7&lowbar;OP&lowbar;SET&lowbar;DETACHED&lowbar;SIGNATURE or PKCS7&lowbar;OP&lowbar;GET&lowbar;DETACHED&lowbar;SIGNATURE&period;
| *larg*
| Integer argument interpreted according to `cmd` (for example detached flag)&period;
| *parg*
| Optional pointer argument for `cmd,` or NULL when unused&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
