certificateTypes can't be null or empty and should never encode empty
@@ -81,15 +81,8 @@ public Vector getCertificateAuthorities()
*/
public void encode(OutputStream output)
throws IOException
- {
- if (certificateTypes == null || certificateTypes.length == 0)
- {
- TlsUtils.writeUint8(0, output);
- }
- else
{
TlsUtils.writeUint8ArrayWithUint8Length(certificateTypes, output);
- }
if (supportedSignatureAlgorithms != null)
{
