/* TLS Extensions (in Client Hello and Server Hello). }}}  */
gboolean ssl_is_valid_content_type(guint8 type)
/* TLS Extensions (in Client Hello and Server Hello). }}}  */
gboolean ssl_is_valid_content_type(guint8 type)
{
    switch ((ContentType) type) {
    case SSL_ID_CHG_CIPHER_SPEC:
    case SSL_ID_ALERT:
    case SSL_ID_HANDSHAKE:
    case SSL_ID_APP_DATA:
    case SSL_ID_HEARTBEAT:
        return TRUE;
    }
    return FALSE;
}