Fix the max psk len for TLSv1.3
[openssl.git] / ssl / ssl_locl.h
index 8afb117372b035ec96a35b81e20bc7d01ef20cc8..440a5d6c19d8f2473d23026295517af5ff3f2d29 100644 (file)
@@ -471,7 +471,7 @@ struct ssl_method_st {
     long (*ssl_ctx_callback_ctrl) (SSL_CTX *s, int cb_id, void (*fp) (void));
 };
 
-# define TLS13_MAX_RESUMPTION_PSK_LENGTH      64
+# define TLS13_MAX_RESUMPTION_PSK_LENGTH      PSK_MAX_PSK_LEN
 
 /*-
  * Lets make this into an ASN.1 type structure as follows