GithubHelp home page GithubHelp logo

Comments (7)

1756816846 avatar 1756816846 commented on May 25, 2024

image

from wolfssl.

1756816846 avatar 1756816846 commented on May 25, 2024

image

from wolfssl.

kareem-wolfssl avatar kareem-wolfssl commented on May 25, 2024

Hi @1756816846 ,

Do you have anything else open on port 21152?
Please rebuild wolfSSL with --enable-debug, run wolfSSL_Debugging_ON() at the start of your program and attach debug logs here.

from wolfssl.

1756816846 avatar 1756816846 commented on May 25, 2024

你好@1756816846,

您在端口 21152 上还有其他开放的东西吗? 请使用--enable-debug重建wolfSSL,在程序开始时运行wolfSSL_Debugging_ON()并在此处附加调试日志。

─# ./demo 172.16.0.107
wolfSSL Entering TLSv1_2_client_method_ex
wolfSSL Entering wolfSSL_CTX_new_ex
wolfSSL Entering wolfSSL_CertManagerNew
wolfSSL Leaving WOLFSSL_CTX_new, return 0
wolfSSL Entering wolfSSL_CTX_set_verify
wolfSSL Entering SSL_new
wolfSSL Leaving SSL_new, return 0
wolfSSL Entering SSL_set_fd
wolfSSL Entering SSL_set_read_fd
wolfSSL Leaving SSL_set_read_fd, return 1
wolfSSL Entering SSL_set_write_fd
wolfSSL Leaving SSL_set_write_fd, return 1
wolfSSL Entering SSL_connect()
wolfSSL Entering SendClientHello
Adding signature algorithms extension
growing output buffer
Signature Algorithms extension to write
Point Formats extension to write
Supported Groups extension to write
Encrypt-Then-Mac extension to write
EMS extension to write
Your IO Send callback is null, please set
wolfSSL Leaving SendClientHello, return -308
wolfSSL error occurred, error = -308
wolfSSL Entering SSL_get_error
wolfSSL Leaving SSL_get_error, return -308
ERROR -308: failed to connect to wolfSSL -1
wolfSSL Entering SSL_free
Free'ing client ssl
Shrinking output buffer
wolfSSL Entering ClientSessionToSession
CTX ref count not 0 yet, no free
wolfSSL Leaving SSL_free, return 0
wolfSSL Entering SSL_CTX_free
CTX ref count down to 0, doing full free
wolfSSL Entering wolfSSL_CertManagerFree
wolfSSL Leaving SSL_CTX_free, return 0
wolfSSL Entering wolfSSL_Cleanup
wolfSSL Entering wolfCrypt_Cleanup

from wolfssl.

kareem-wolfssl avatar kareem-wolfssl commented on May 25, 2024

Your IO Send callback is null, please set
You need to set an IO send callback using wolfSSL_SetIOSend. Check out our example here: https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/client-tls-callback.c

from wolfssl.

1756816846 avatar 1756816846 commented on May 25, 2024

Error: failed to connect

Still not working, I used the demo you sent and added/* Set the socket options to use nonblocking I/O*/

If (fcntl (sockfd, F_SETFL, O-NONBLOCK)==-1){

Fprintf (stderr, "Error: failed to set non blocking \ n");

Ret=-1;

Goto exit;

}

from wolfssl.

1756816846 avatar 1756816846 commented on May 25, 2024

I have succeeded now

from wolfssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.