Hi Frank,
first of all I would like to thank you for your interest : I really appreciate it !
I used in my code the function SSLeay_add_ssl_algorithms(); here is it :
.
.
.
 
int main()
{
SSL_CTX *ctx;
SSL *ssl;
SSL_METHOD *meth;
int listen_sd, sd, err;
struct sockaddr_in sa_server;
struct sockaddr_in sa_client;
unsigned long error_code;
 

/* SSL preliminaries : we keep the certificate and key with the context */
 
void SSL_load_error_strings();
SSLeay_add_ssl_algorithms();
meth = SSLv3_server_method();
 ERR_print_errors_fp(stderr);
ctx = SSL_CTX_new(meth);       /*<-- problem*/
 if (!ctx)
  {
   ERR_print_errors_fp(stderr);
   printf("\nctx \n");
   exit(1);
.
.
.
 
At this point it exits and says that there is an error, occurred at line 1052 of ssl_lib.c : I checked that line in that file and in that part of the program it loads the cipher list ! So I guess that the program cannot find it, that' s why it fails !
I really don' t know hot to handle it !
 
If you can understand what is the problem I will be very grateful, otherwise thanks anyway for your help.
 
Best regards,
Paolo.
----- Original Message -----
Sent: Friday, August 25, 2000 7:26 PM
Subject: RE: Cipher list problem.

Paolo,
 
I am not sure I understand your problem, but you may need to load the ciphers. Did you load the ciphers programmatically (e.g., by calling SSLeay_add_all_algorithms)?
 
Frank
-----Original Message-----
From: Montini Paolo [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 25, 2000 3:40 PM
To: OpenSSL-DEV
Subject: Cipher list problem.

Hi all,
I am writing a client-server application using SSL.
At runtime an error occurr : the problem is line 1052 of
ssl_lib.c; it seems that when creating the SSL context,
it cannot find the cipher list.
I tryed the command 'ciphers -v' from the OpenSSL prompt
and I have all the ciphers installed so I cannot understand
why the program cannot find them !
 
Any help greatly appreciated,
Paolo.

Reply via email to