<div dir="ltr"><div>Hi,</div><div><br></div><div>according to the doc, the function expects Password::string() as the second argument:</div><div><br></div><a href="http://www.erlang.org/documentation/doc-5.9.3/lib/public_key-0.17/doc/html/public_key.html#pem_entry_decode-2">http://www.erlang.org/documentation/doc-5.9.3/lib/public_key-0.17/doc/html/public_key.html#pem_entry_decode-2</a><br clear="all"><div><br></div><div>The spec for the function expects a list of strings:</div><div><br></div><div><a href="https://github.com/erlang/otp/blob/801b09af301a872170e44c215e274425c46f8d24/lib/public_key/src/public_key.erl#L113">https://github.com/erlang/otp/blob/801b09af301a872170e44c215e274425c46f8d24/lib/public_key/src/public_key.erl#L113</a><br></div><div><br></div><div>This makes dialyzer sad. Incidentallly, the code seems to work ok both if you pass a string or a string wrapped into a list.</div><div><br></div>-- <br><div class="gmail_signature">Roberto Aloi<br>---<br>Website: <a href="http://roberto-aloi.com" target="_blank">http://roberto-aloi.com</a><br>Twitter: @robertoaloi<br></div>
</div>