I am actually using the wolfjsse provider, so I don't call any native function directly.

2

(4 replies, posted in wolfSSL)

Hi,

I am using WolfSSL and I want to create a key log file like specified here: https://developer.mozilla.org/en-US/doc … Log_Format. On OpenSSL this is fairly easy, as I can use SSL_CTX_set_keylog_callback to set a callback function, which receives all keys that are being created. Is there a similar easy way to archieve this in WolfSSL?

Best regards
he1n

Update: I managed to get a successfull build by also adding one of theese (or both):

-DHAVE_AEAD
-DWOLFSSL_SESSION_EXPORT

However, when I try to connect, I get the following exception now:

E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
    Process: com.example.sslplayground, PID: 27160
    javax.net.ssl.SSLHandshakeException: received alert fatal error (error code: -313)
    at com.wolfssl.provider.jsse.WolfSSLSocket.startHandshake(WolfSSLSocket.java:611)
    ...

Also, when I inspect the supported protocols during runtime, I see that TLS1.3 is listed. However, when I look at the supported/enabled cipher suites, the ciphersuites required by TLS1.3 are not listed?

Warm regards
he1n

Hi Kaleb,

I have added the macros you listed, but unfortunately I still get:

/Users/he1n/ExampleApp/wolfssl/src/tls13.c:1669:64: error: no member named 'aead_enc_imp_IV' in 'struct Keys'

Warm regards
he1n

Hello,

I am currently trying to use WolfSSL in an Android App. I have used this example: https://github.com/wolfSSL/wolfssl-exam … dk-gradle.

This works fine, but I would like to adjust it to also allow Tls 1.3. When I compile the library from the command line, i can enable it via "./configure --enable-tls13 && make" and the build runs successfully. However, I was not successful in adjusting the CMakeLists.txt in a way that enables Tls 1.3. I tried -DHAVE_TLS13 and other flags that seem to be required, but the build keeps crashing due to some obscure error messages like "error: no member named 'aead_enc_imp_IV' in 'struct Keys'" or other ones, depending on the flags I add. Can someone tell me how I can get a running configuration? I am not that experienced in Android developement and using cmake, so I am a bit lost here.