Hi,

> To: openssl-...@openssl.org, openssl-users@openssl.org

One list really would have been enough ...

(snipp)
> issuer_pubkey = malloc(issuer_pubkey_len);
>  i2d_PUBKEY(pubKey, &issuer_pubkey);

The fact that you need to pass the _address_ of issuer_pubkey hints
at amodification of it's content, doesn't it? IIRC, it's going to point at
the _end_ of the buffer you passed into i2d_PUBKEY.

> memory_dump("issuer_pubkey", issuer_pubkey, issuer_pubkey_len);

So, here you're dumping what there is in memory right _after_ your key..

> The problem, is issuer_pubkey buffer is different each time, I run
> the my application using same code.

Since you're printing uninitialized memory, this shouldn't be a surprise
any more. ;-)

            HTH,
                     Stefan

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to