This paper deals with optimal control problems for systems affine in the
control variable. We have nonnegativity constraints on the control, and
finitely many equality and inequality constraints on the final state. First, we
obtain second order necessary optimality conditions. Secondly, we get a second
order sufficient condition for the scalar control case. The results use in an
essential way the Goh transformation.