aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto/tls_wolfssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/tls_wolfssl.c')
-rw-r--r--src/crypto/tls_wolfssl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c
index 39a24b3..41fc946 100644
--- a/src/crypto/tls_wolfssl.c
+++ b/src/crypto/tls_wolfssl.c
@@ -1973,8 +1973,11 @@ int tls_connection_get_random(void *ssl_ctx, struct tls_connection *conn,
int tls_connection_export_key(void *tls_ctx, struct tls_connection *conn,
- const char *label, u8 *out, size_t out_len)
+ const char *label, const u8 *context,
+ size_t context_len, u8 *out, size_t out_len)
{
+ if (context)
+ return -1;
if (!conn || wolfSSL_make_eap_keys(conn->ssl, out, out_len, label) != 0)
return -1;
return 0;