[#OSSL_CRMF_MSG_set0_SinglePubInfo]
= OSSL&lowbar;CRMF&lowbar;MSG&lowbar;set0&lowbar;SinglePubInfo
:mrdocs:

Set publication method and optional location in a SinglePubInfo&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CRMF&lowbar;MSG&lowbar;set0&lowbar;SinglePubInfo(
    xref:OSSL_CRMF_SINGLEPUBINFO.adoc[OSSL&lowbar;CRMF&lowbar;SINGLEPUBINFO]* spi,
    int method,
    xref:GENERAL_NAME.adoc[GENERAL&lowbar;NAME]* nm);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *spi*
| SinglePubInfo to update&period;
| *method*
| Publication method (OSSL&lowbar;CRMF&lowbar;PUB&lowbar;METHOD&lowbar;&ast;)&period;
| *nm*
| Optional publication location as a GeneralName&semi; ownership is transferred when non&hyphen;NULL&period;
|===


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