> Duh, thanks to the people who pointed out that the pointer returned by
> PEM_read_bio_RSA_PUBKEY might be null, and indeed it is (sadly I have to use
> Xcode, which refuses to show any local variables and GDB claims they don't
> exist).

    This is probably the optimizer, try compiling with -O0 -g3
    (and make sure you/the linker aren't stripping symbols)
    Pretty much always a good idea when developing.

John


> The question now is why it's null, since I know the string itself is
> populated.  It may be that newlines are getting stripped somehow.  I store
> all of the key text in a database and return it to the app as an XML
> element.  Dumping the element to the console shows newlines, but a printf of
> the character string I use as the BIO source does not show newlines.
> 
> --485b397dd4e3cb172604a364d672
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> 
> Duh, thanks to the people who pointed out that the pointer returned by PEM_=
> read_bio_RSA_PUBKEY might be null, and indeed it is (sadly I have to use Xc=
> ode, which refuses to show any local variables and GDB claims they don'=
> t exist).<br>
> <br>The question now is why it&#39;s null, since I know the string itself i=
> s populated.=A0 It may be that newlines are getting stripped somehow.=A0 I =
> store all of the key text in a database and return it to the app as an XML =
> element.=A0 Dumping the element to the console shows newlines, but a printf=
>  of the character string I use as the BIO source does not show newlines.<br=
> >
> 
> --485b397dd4e3cb172604a364d672--
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
> 

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

Reply via email to