Don't overestimate the ticket age
[openssl.git] / ssl / tls13_enc.c
index f555df54fc44fb0b10d07cee966c09606c0120cc..05355fb71438dece88d46baf4287ee54ce7c70b2 100644 (file)
@@ -666,7 +666,7 @@ int tls13_export_keying_material(SSL *s, unsigned char *out, size_t olen,
     unsigned int hashsize, datalen;
     int ret = 0;
 
-    if (ctx == NULL)
+    if (ctx == NULL || !ossl_statem_export_allowed(s))
         goto err;
 
     if (!use_context)