Hillary Clinton would have protected Obamas secrets, if elected, and she had a lot of her own secrets to protect as well. So she was basically Obamas insurance policy and this was why he would have gone to great lengths to get her elected.
I have read that they actually hated each other, but thats not important when its a matter of protecting your own skin, as it was with both of them.
The enemy of my enemy is my friend Sort of...