This commit is contained in:
Jakub Jelen 2016-05-12 13:15:31 +02:00 committed by Viktor Tarasov
parent 816bbbfffc
commit ae47e06d57
2 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ static struct sc_asn1_pkcs15_algorithm_info algorithm_table[] = {
asn1_encode_ec_params,
asn1_free_ec_params },
#endif
/* TODO: -DEE Not clear of we need the next five or not */
/* TODO: -DEE Not clear if we need the next five or not */
#ifdef SC_ALGORITHM_ECDSA_SHA1
/* Note RFC 3279 says no ecParameters */
{ SC_ALGORITHM_ECDSA_SHA1, {{ 1, 2, 840, 10045, 4, 1, -1}}, NULL, NULL, NULL},

View File

@ -196,8 +196,8 @@ typedef struct _VENDOR_SPECIFIC
}VENDOR_SPECIFIC;
/*
* Windows (ex. Vista) may access the card from more the one thread.
* The following data type and static data is an attemt to resolve
* Windows (ex. Vista) may access the card from more than one thread.
* The following data type and static data is an attempt to resolve
* some of the encountered multi-thread issues of OpenSC
* on the minidriver side.
*
@ -3832,7 +3832,7 @@ DWORD WINAPI CardSignData(__in PCARD_DATA pCardData, __inout PCARD_SIGNING_INFO
r = sc_pkcs15_compute_signature(vs->p15card, pkey, opt_crypt_flags, dataToSign, dataToSignLen, pbuf, lg);
logprintf(pCardData, 2, "sc_pkcs15_compute_signature return %d\n", r);
if(r < 0) {
logprintf(pCardData, 2, "sc_pkcs15_compute_signature erreur %s\n", sc_strerror(r));
logprintf(pCardData, 2, "sc_pkcs15_compute_signature error %s\n", sc_strerror(r));
pCardData->pfnCspFree(pbuf);
return md_translate_OpenSC_to_Windows_error(r, SCARD_F_INTERNAL_ERROR);
}