Falk Michael wrote:
>
> Hello Dr Henson
>
> I have a great problem and hope, you can help me.
>
> I want to decrypt a Privatkey of a PKCS12 File.
> The following Function overwrites while the Execution the Values pass and
> passlen ( see Output Debbugger)
>
Have you tried the latest OpenSSL? That has a function PKCS12_parse()
that handles PKCS#12 decryption and parsing automatically.
The equivalent functions in later OpenSSL versions has the password
delclared as "const" so this shouldn't happen with those.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]