Applies to the US;
During draft times, it was acceptable to for the military to draft known/admitted gays. Once the conflict was over or they were let go for medical reasons, they then used their homosexuality against them and gave them a Bad Conduct Discharge. No matter how honourable their service was, they get a BCD simply for being gay.
Under Clinton's Don't Ask, Don't Tell, discharges for being gay skyrocketed. During this period, people were given Other than Honorable, under Honorable Conditions discharges. The reason for dischares for being gay skyrocketed, was that while technically the military was not allowed to go on witch hunts, anyone could claim you told them you were gay and that was proof enough for a discharge. Being gay was still considered not honourable, so your word was worthless than a hetero soldier's word.
Any gay type sex was enough to get you thrown out. So "bro-jobs" and the like would have gotten you thrown out.