Hi,

Do "SSL_library_init()" .

Prabhu. S


On 1/23/08, gopinath ethiraja <[EMAIL PROTECTED]> wrote:
>
> I tried to establish client server connection . but when i tried to
> set up the ssl context using  SSL_CTX_new(SSLv23_client_method())
> method this returns only null.can anyone please help how to avoid this
> error.I tried using VC++
>
>
> #include "openssl/ssl.h"
> #include "openssl/bio.h"
> #include "openssl/err.h"
>
> #include "stdio.h"
> #include "string.h"
>
> int main()
> {
>    BIO * bio;
>    SSL * ssl;
>    SSL_CTX * ctx;
>
>    int p;
>
>    char * request = "GET / HTTP/1.1\x0D\x0AHost:
> www.verisign.com\x0D\x0A\x43onnection: Close\x0D\x0A\x0D\x0A";
>    char r[1024];
>
>    /* Set up the library */
>
>    ERR_load_BIO_strings();
>    SSL_load_error_strings();
>    OpenSSL_add_all_algorithms();
>
>    /* Set up the SSL context */
>
>   ctx = SSL_CTX_new(SSLv23_client_method());
>        printf("%s",ctx);
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>

Reply via email to