We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.6.6
ctx = wolfSSL_CTX_new (wolfTLS_client_method ()) wolfSSL_CTX_set_quiet_shutdown (ctx, 1) wolfSSL_CTX_set_verify (ctx, #SSL_VM_NONE, 0) wolfSSL_CTX_set_cipher_list (ctx, “ALL:!aPSK:!ECDSA+SHA1:!3DES”) ssl = wolfSSL_new (ctx) if (hostname ≠ “”) wolfSSL_UseSNI (ssl, #WOLFSSL_SNI_HOST_NAME, hostname, 取文本长度 (hostname)) if (hostname ≠ “”) { wolfSSL_set_alpn_protos (ssl, "http/1.1", strlen ("http/1.1")) } wolfSSL_only_dhe_psk (ssl) ssl_rbio = wolfSSL_BIO_new (wolfSSL_BIO_s_mem ()) ssl_wbio = wolfSSL_BIO_new (wolfSSL_BIO_s_mem ()) wolfSSL_set_bio (ssl, ssl_rbio, ssl_wbio) wolfSSL_set_connect_state (ssl) // send ssl handshake data wolfSSL_SSL_do_handshake (ssl) len = wolfSSL_BIO_ctrl_pending (ssl_wbio) wolfSSL_BIO_read (ssl_wbio, buf, len) tcp_send(buf) // the wolfSSL_SSL_do_handshake, it will crash buf = tcp_read() wolfSSL_write(ssl, buf, sizeof(buf)) wolfSSL_SSL_do_handshake (ssl)
How can I set helloCallback to detect whether sni needs to be set
The text was updated successfully, but these errors were encountered:
Hi @eighteen-k-gold-malow
The client should not crash if you send an SNI extension with TLS1.2
Can you try with the latest version of wolfSSL?
Have a look at this example using the BIO API: https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/client-tls-bio.c
Thanks, @embhorn - wolfSSL Support
Sorry, something went wrong.
embhorn
No branches or pull requests
Version
5.6.6
Description
How can I set helloCallback to detect whether sni needs to be set
The text was updated successfully, but these errors were encountered: