US:+16362902365 & BD:+8801711573570

A Leading Web Development Company 

Sharing is caring!

The client and server written in c are run on the same machine.The normal TCP socket process is passed. On this basis, the following process is used to perform the SSL handshake.

Client process

ssl = SSL_new(ctx);

SSL_set_fd(ssl, sd);


Server-side process

ssl = SSL_new(ctx);

SSL_set_fd(ssl, sd);


SSL_connect(ssl) failed to print the error message is

13088:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:ssl\record\rec_layer_s3.c:1385:SSL alert number 40

SSL_accept(ssl) failed to print the error message is

10576:error:1417A0C1:SSL routines:tls_post_process_client_hello:no shared cipher:ssl\statem\statem_srvr.c:1422:

Because in win32, use the following function to generate random numbers, is this used incorrectly?

int seed_int[100]; /*存放随机序列*/
for (int i = 0; i < 100;i++)
    seed_int[i] = rand();
RAND_seed(seed_int, sizeof(seed_int));

Sharing is caring!

Grab the latest deals on your inbox

Your email is safe ❤️ . I hate SPAM same as you!

Techgen IT Solution provides its clients with a variety of offshore business solutions like system design, .NET technology stack including C#, ASP.NET, MVC, Web API, SQL, Entity Framework, JavaScript and related technologies, namely AngularJS, Knockout, NodeJS etc



© 2019 Techgen IT Solution. All Rights Reserved.