#include <openssl/ssl.h>
#include <stdio.h>
main()
{
        int ret;
        SSL_METHOD *meth;
        SSL_CTX *ctx;
        ret = SSL_library_init();
        if (ret < 1) {
                fprintf(stderr, "Can't init SSL.\n");
                exit(1);
        }
        SSL_load_error_strings();
        meth = SSLv3_client_method();
        if (!meth) {
                fprintf(stderr, "Can't get meth.\n");
                exit(1);
        }
        ctx = SSL_CTX_new(meth);
        if (!ctx) {
                fprintf(stderr, "Can't get ctx.\n");
                exit(1);
        }
        printf("Success.\n");
        exit(0);
}

under sunos5.7 , gcc, openssl9.6, this program works well.
while after purified, it said:cannt get ctx. and i think function 
ssl_create_cipher_list is where something goes wrong.
whereas after i delete the flag "-O3" from Makefile, all runs well again.
who distribute to this? GCC, purify or openssl?
at least it's not me, :)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to