They are both one of the 17 countries that still don’t allow gays in the military and also execute people, according to this infographic from Esquire. Though there’s signs that the U.S.’s policy towards the homosexual soldier thing may have changed.
The other 15 are Cuba, Egypt, Iran, Jamaica, Nigeria, North Korea, Pakistan, Saudi Arabia, Singapore, Somalia, Sudan, Syria, United Arab Emirates, Uganda, and Yemen.