Fix license and set header based on cipher+version