Topic: DTLS-SRTP with WolfSSL
Hi,
I'm trying to create a WebRTC application that uses SRTP via DTLS to send media. I've seen a couple code examples on the internet that gather the keying material for SRTP using OpenSSL.
Line 208 of https://github.com/alfredh/baresip/blob … ls_srtp.c:
err = tls_srtp_keyinfo(comp->tls_conn, &suite, cli_key, sizeof(cli_key), srv_key, sizeof(srv_key));
Line 652 of https://github.com/meetecho/janus-gatew … ter/dtls.c
SSL_export_keying_material(dtls->ssl, material, SRTP_MASTER_LENGTH*2, "EXTRACTOR-dtls_srtp", 19, NULL, 0, 0)
This is another source that describes the use of SSL_export_keying_material: http://stackoverflow.com/questions/2269 … decryption
Is something like this possible with WolfSSL? I don't see a similar function in the API. What would be involved in accomplishing this?
Thanks,
Carson