What Obama knew and when he knew it.