On Fri, 17 Apr 1998, Eric Young wrote:
>
> On Thu, 16 Apr 1998, Xiaofei Diao wrote:
> > I am a new SSLeay user. I tried to use SSLeay 0.8.1 and 0.9.0 on both NT4
> > with VC++5.0 and SUN-solaris2.6 with cc/CC(4.2?). From the sample ssl
> > code with SSLeay and the online reference (which is said for 0.4.2), I
> > should call SSL_CTX_new(void) first. But the compilers always request me
> > to use SSL_CTX_new(SSL_METHOD*). Does anybody have any idea about this?
>
> SSL_CTX_new(SSL_METHOD *) is the correct way to do things, ever since SSLv3
> was added. Unfortunatly the documentation and demos are always lagging behind
> the library :-(
>
> eric
>
Thank you very much for your message.
But one more question, what is the right way to get a SSL_METHOD*? I
tried to do
SSL_MOTHOD* ssl_method = SSLv3_client_method();
ctx = SSL_CTX_new(ssl_method);
However, the code is compiled without any problem. But on the run time,
on NT4, it pop up some memory error message. On SUN2.6, it simply stops,
becaue the ctx is NULL (ssl_method is not NULL). What did I do wrong?
Please give me more hints! Thank you so much!
By the way, it is very hard to understand other's code without good
documents. SSLeay is version 9 now, but its documents are still version
4. It is just like a person has strong legs but not arms. At least I am
willing to pay for it if better and ensured documents are available.
Anyway, thank you so much for your help!
Sincerely, ~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~
~~~~~~~~ UTER
Xiaofei Diao ~~~~~~~~~~~~~ MP
~~~~~~~~~~~~~~~~~~~~~ I Like CO
http://www.tc.umn.edu/~diao0003/
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/ |
+-------------------------------------------------------------------------+