FORT MEADE, Md. — An Army psychologist says Pfc. Bradley Manning’s private struggle with his gender identity in a hostile workplace put incredible pressure on the soldier.

Capt. Michael Worsley testified Wednesday at Manning’s sentencing hearing at Fort Meade, near Baltimore. Manning faces up 90 years in prison for leaking classified information to WikiLeaks while working as an intelligence analyst in Iraq in 2010.

RELATED: Petition Passes 100K Signatures Backing Bradley Manning Nobel Prize Nomination

Manning eventually came out to the therapist and emailed Worsley a photo of himself dressed as a woman.

Manning’s lawyers contend that Manning showed clear signs of deteriorating mental health that should have prevented commanders from sending him to a warzone to handle classified information.

Manning was set to take the stand in his own defense later Wednesday.

His sister and aunt are also on the defense witness list.

Follow WNEW on Twitter.

(© Copyright 2013 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)