Topic: How to Check the TLS state in wolfssl library

How do I get the TLS handshake status using wolfssl?


I couldn't find TLS handshake state in wolfssl library example.

(such as

case client_Hello:

case server_hello:

case certificate:
....
)

could you answer me how to check the tls state?

regards

Share

Re: How to Check the TLS state in wolfssl library

Hi kjjy7,

Please check the state by defining DEBUG_WOLFSSL or configuring with --enable-debug then call

wolfSSL_Debugging_ON(); 

in your application!

Warm Regards,

- Kaleb

Re: How to Check the TLS state in wolfssl library

Hi kjjy7,

Try using the function `wolfSSL_get_state`. We also have an API `wolfSSL_state_string_long` which gets a string version of the current state.

We also have an internal TLS client state is in `ssl->options.clientState`. The possible values are here: https://github.com/wolfSSL/wolfssl/blob … al.h#L1428

Let us know if that is helpful or not.

Thanks,
David Garske, wolfSSL

Share

Re: How to Check the TLS state in wolfssl library

Kaleb J. Himes wrote:

Hi kjjy7,

Please check the state by defining DEBUG_WOLFSSL or configuring with --enable-debug then call

wolfSSL_Debugging_ON(); 

in your application!

Warm Regards,

- Kaleb

thanks

Share

Re: How to Check the TLS state in wolfssl library

dgarske wrote:

Hi kjjy7,

Try using the function `wolfSSL_get_state`. We also have an API `wolfSSL_state_string_long` which gets a string version of the current state.

We also have an internal TLS client state is in `ssl->options.clientState`. The possible values are here: https://github.com/wolfSSL/wolfssl/blob … al.h#L1428

Let us know if that is helpful or not.

Thanks,
David Garske, wolfSSL

thanks

Share