ssl: Application data optimization must be done differently for TLS-1.3 and previous versions
ssl: Application data optimization must be done differently for TLS-1.3 and previous versions

TLS-1.3 encrypts the real packet type and uses APPLICATION_DATA
as external type.  The optimization will disregard the last
decryption if next packet is not APPLICATION_DATA.  This however
will not work for pre TLS-1.3 and stream cipher RC4, after the
optimization to stream ciphers making the crypto API pure
functional. In TLS-1.3 no stream ciphers are supported. In
previous TLS versions we can look at the external packet type
with out decryption.

vladdu/otp,ferd/otp,dumbbell/otp,mikpe/otp,uabboli/otp,getong/otp,getong/otp,potatosalad/otp,erlang/otp,getong/otp,uabboli/otp,isvilen/otp,dumbbell/otp,potatosalad/otp,lrascao/otp,bjorng/otp,rlipscombe/otp,isvilen/otp,vinoski/otp,jj1bdx/otp,g-andrade/otp,jj1bdx/otp,vinoski/otp,ferd/otp,emacsmirror/erlang,potatosalad/otp,dumbbell/otp,mikpe/otp,vladdu/otp,dgud/otp,jj1bdx/otp,dumbbell/otp,lrascao/otp,rlipscombe/otp,uabboli/otp,kvakvs/otp,uabboli/otp,g-andrade/otp,vladdu/otp,dgud/otp,bjorng/otp,erlang/otp,vinoski/otp,mikpe/otp,vladdu/otp,potatosalad/otp,jj1bdx/otp,getong/otp,vladdu/otp,jj1bdx/otp,vinoski/otp,isvilen/otp,dumbbell/otp,electricimp/otp,erlang/otp,isvilen/otp,dgud/otp,isvilen/otp,jj1bdx/otp,dumbbell/otp,kvakvs/otp,getong/otp,jj1bdx/otp,vladdu/otp,emacsmirror/erlang,dgud/otp,vinoski/otp,mikpe/otp,potatosalad/otp,vinoski/otp,emacsmirror/erlang,emacsmirror/erlang,potatosalad/otp,emacsmirror/erlang,electricimp/otp,isvilen/otp,g-andrade/otp,kvakvs/otp,isvilen/otp,g-andrade/otp,jj1bdx/otp,erlang/otp,erlang/otp,bjorng/otp,vladdu/otp,vladdu/otp,dumbbell/otp,bjorng/otp,jj1bdx/otp,ferd/otp,g-andrade/otp,ferd/otp,dgud/otp,potatosalad/otp,uabboli/otp,bjorng/otp,ferd/otp,ferd/otp,getong/otp,lrascao/otp,ferd/otp,rlipscombe/otp,isvilen/otp,bjorng/otp,electricimp/otp,g-andrade/otp,dgud/otp,isvilen/otp,mikpe/otp,dgud/otp,bjorng/otp,lrascao/otp,dumbbell/otp,mikpe/otp,uabboli/otp,electricimp/otp,vinoski/otp,getong/otp,g-andrade/otp,potatosalad/otp,g-andrade/otp,potatosalad/otp,dgud/otp,kvakvs/otp,bjorng/otp,vladdu/otp,mikpe/otp,getong/otp,electricimp/otp,kvakvs/otp,uabboli/otp,dumbbell/otp,electricimp/otp,bjorng/otp,erlang/otp,kvakvs/otp,getong/otp,erlang/otp,electricimp/otp,electricimp/otp,vinoski/otp,rlipscombe/otp,emacsmirror/erlang,emacsmirror/erlang,rlipscombe/otp,rlipscombe/otp,uabboli/otp,lrascao/otp,vinoski/otp,emacsmirror/erlang,mikpe/otp,kvakvs/otp,dumbbell/otp,rlipscombe/otp,dgud/otp,potatosalad/otp,mikpe/otp,lrascao/otp,rlipscombe/otp,uabboli/otp,jj1bdx/otp,erlang/otp,emacsmirror/erlang,electricimp/otp,ferd/otp,ferd/otp,vinoski/otp,lrascao/otp,g-andrade/otp,rlipscombe/otp,rlipscombe/otp,kvakvs/otp,lrascao/otp,erlang/otp,g-andrade/otp,bjorng/otp,erlang/otp,dgud/otp,getong/otp,kvakvs/otp,emacsmirror/erlang,lrascao/otp,isvilen/otp,mikpe/otp