f specified will be called for every safebag added to the PKCS12 structure and allows for optional application processing on the associated safebag. For example one such use could be to add attributes to the safebag.</p>

<h1 id="NOTES">NOTES</h1>

<p>The parameters <i>nid_key</i>, <i>nid_cert</i>, <i>iter</i>, <i>mac_iter</i> and <i>keytype</i> can all be set to zero and sensible defaults will be used.</p>

<p>These defaults are: AES password based encryption (PBES2 with PBKDF2 and AES-256-CBC) for private