ssl for the client

Is it illegal to name an enum and one of its variants the same thing?