[PATCH 5/7] tls: Update l_tls to use the l_cert type, drop local code