def get_colorize_chart_openssl_ciphers()

in tls-table.py [0:0]


def get_colorize_chart_openssl_ciphers(name_code_points, ciphersuites):
    code_points = []
    for cipher in ciphersuites.split(':'):
        if cipher in name_code_points:
            code_points.append(name_code_points[cipher])
        # XXX: explifies why input should be taken from IANA and guidelines instead of from wiki pages
        elif cipher == 'ECDHE-ECDSA-AES256-SHA384':
            code_points.append('0xC0,0x24')
        elif cipher == 'ECDHE-RSA-AES256-SHA384':
            code_points.append('0xC0,0x28')
        elif cipher == 'DES-CBC3-SHA':
            code_points.append('0x00,0x0A')
        elif cipher != '':
            print("Warning: not found: {0}".format(cipher))

    return code_points