[gnutls-devel] GnuTLS | provide a callback to be notified on secret generation (#852)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Oct 25 16:50:41 CEST 2019



Daiki Ueno created an issue: https://gitlab.com/gnutls/gnutls/issues/852



As mentioned in:
https://gitlab.com/gnutls/gnutls/issues/826#note_213450784

To install packet protection keys from TLS, we need a way to be notified when a new secret is set in TLS. This can be implemented by providing a callback.

The API would looks something like:
```c
typedef void (*gnutls_secret_hook_func)(gnutls_session_t, unsigned epoch, unsigned incoming, const gnutls_datum_t *secret);
void gnutls_session_set_secret_hook_function(gnutls_session_t session, gnutls_secret_hook_func func);
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/852
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20191025/849edef3/attachment-0001.html>


More information about the Gnutls-devel mailing list