Only accept early_data if the negotiated ALPN is the same
[openssl.git] / ssl / ssl_locl.h
index 9e717689038cf6a2a61b4da99ba591e83b6f0250..d8d16eb944e4bb4f2343f274c780538d4b1767ca 100644 (file)
@@ -580,6 +580,9 @@ struct ssl_session_st {
         int tick_identity;
         /* Max number of bytes that can be sent as early data */
         uint32_t max_early_data;
+        /* The ALPN protocol selected for this session */
+        unsigned char *alpn_selected;
+        size_t alpn_selected_len;
     } ext;
 # ifndef OPENSSL_NO_SRP
     char *srp_username;