A speculative fix for the TLS 1.2 client authentication bug with the
CAC card on Mac OS X.
Manually encode the ASN.1 DigestInfo structure and pass CSSM_ALGID_NONE
as the digestAlg argument to CSSM_SignData. The theory is that the CAC
card may not support a digestAlg argument of CSSM_ALGID_SHA256 passed to
CSSM_SignData.
Set the OS error when CDSA/CSSM functions fail and log the OS error when
we get ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED.
R=rsleevi@chromium.org
BUG=255579
TEST=manual testing
Review URL: https://chromiumcodereview.appspot.com/
18055011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209318 0039d316-1c4b-4281-b951-d872f2087c98