[#PKCS12_SAFEBAG_get_bag_nid]
= PKCS12&lowbar;SAFEBAG&lowbar;get&lowbar;bag&lowbar;nid
:mrdocs:

Get the type of the object contained within a safeBag&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS12&lowbar;SAFEBAG&lowbar;get&lowbar;bag&lowbar;nid(xref:PKCS12_SAFEBAG.adoc[PKCS12&lowbar;SAFEBAG] const* bag);
----

== Return Value

NID of the contained object, or &hyphen;1 if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bag*
| SafeBag to query&period;
|===


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