Changeset 21354 for trunk/src/crypt32/cert.c
- Timestamp:
- Feb 21, 2010, 5:32:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/crypt32/cert.c
r21311 r21354 20 20 #include <assert.h> 21 21 #include <stdarg.h> 22 #include <string.h> 22 23 23 24 #define NONAMELESSUNION … … 124 125 125 126 CryptMemFree(certContext->pbCertEncoded); 126 LocalFree( certContext->pCertInfo);127 LocalFree((HANDLE)certContext->pCertInfo); 127 128 } 128 129 … … 892 893 893 894 len = rsaPubKey->bitlen; 894 LocalFree( buf);895 LocalFree((HANDLE)buf); 895 896 } 896 897 } … … 1046 1047 1047 1048 if ((ext = CertFindExtension(szOID_AUTHORITY_KEY_IDENTIFIER, 1048 subject->pCertInfo->cExtension, subject->pCertInfo->rgExtension)) )1049 subject->pCertInfo->cExtension, subject->pCertInfo->rgExtension)) != NULL) 1049 1050 { 1050 1051 CERT_AUTHORITY_KEY_ID_INFO *info; … … 1077 1078 else 1078 1079 ret = FALSE; 1079 LocalFree( info);1080 LocalFree((HANDLE)info); 1080 1081 } 1081 1082 } 1082 1083 else if ((ext = CertFindExtension(szOID_AUTHORITY_KEY_IDENTIFIER2, 1083 subject->pCertInfo->cExtension, subject->pCertInfo->rgExtension)) )1084 subject->pCertInfo->cExtension, subject->pCertInfo->rgExtension)) != NULL) 1084 1085 { 1085 1086 CERT_AUTHORITY_KEY_ID2_INFO *info; … … 1131 1132 else 1132 1133 ret = FALSE; 1133 LocalFree( info);1134 LocalFree((HANDLE)info); 1134 1135 } 1135 1136 } … … 1566 1567 CryptDestroyHash(hHash); 1567 1568 } 1568 LocalFree( buf);1569 LocalFree((HANDLE)buf); 1569 1570 } 1570 1571 } … … 1612 1613 } 1613 1614 } 1614 LocalFree( info);1615 LocalFree((HANDLE)info); 1615 1616 } 1616 1617 return ret; … … 1878 1879 ret = FALSE; 1879 1880 } 1880 LocalFree( signedCert);1881 LocalFree((HANDLE)signedCert); 1881 1882 } 1882 1883 } … … 1984 1985 } 1985 1986 if (usage) 1986 LocalFree( usage);1987 LocalFree((HANDLE)usage); 1987 1988 TRACE("returning %d\n", ret); 1988 1989 return ret; … … 2006 2007 ret = CertSetCertificateContextProperty(pCertContext, 2007 2008 CERT_ENHKEY_USAGE_PROP_ID, 0, &blob); 2008 LocalFree( blob.pbData);2009 LocalFree((HANDLE)blob.pbData); 2009 2010 } 2010 2011 } … … 2461 2462 context = CertCreateCertificateContext(X509_ASN_ENCODING, 2462 2463 encodedSignedCert, encodedSignedCertSize); 2463 LocalFree( encodedSignedCert);2464 LocalFree((HANDLE)encodedSignedCert); 2464 2465 } 2465 2466 } … … 2697 2698 if (context && !(dwFlags & CERT_CREATE_SELFSIGN_NO_KEY_INFO)) 2698 2699 CertContext_SetKeyProvInfo(context, pKeyProvInfo, hProv); 2699 LocalFree( blob.pbData);2700 LocalFree((HANDLE)blob.pbData); 2700 2701 } 2701 2702 }
Note:
See TracChangeset
for help on using the changeset viewer.