23#define NONAMELESSUNION
55 case DLL_WINE_PREATTACH:
73#define MAX_STRING_LEN 512
116 if (
len > *allocatedLen)
134 if (
len > *allocatedLen)
160 if (
len > *allocatedLen)
181 static const WCHAR keyName[] = {
'S',
'o',
'f',
't',
'w',
'a',
'r',
'e',
'\\',
'M',
182 'i',
'c',
'r',
'o',
's',
'o',
'f',
't',
'\\',
'C',
'r',
'y',
'p',
't',
'o',
'g',
'r',
'a',
183 'p',
'h',
'y',
'\\',
'U',
'I',
'\\',
'C',
'e',
'r',
't',
'm',
'g',
'r',
'\\',
'P',
'u',
184 'r',
'p',
'o',
's',
'e',0 };
239 ptr = comma ? comma + 1 :
NULL,
262 if (!
usage->cUsageIdentifier)
267 usage->rgpszUsageIdentifier,
268 (
usage->cUsageIdentifier + 1) *
sizeof(
LPSTR));
269 if (
usage->rgpszUsageIdentifier)
270 usage->rgpszUsageIdentifier[
usage->cUsageIdentifier++] = oid;
289 ptr = comma ? comma + 1 :
NULL,
311 LPSTR disabledUsagesStr;
327 for (
i = 0; !disabled &&
334 (
LPSTR)(*ptr)->pszOID);
348 return advancedUsage;
358 DWORD allocatedLen = 0;
415 for (
i = 0; !show &&
i < numOIDs;
i++)
421 for (
i = 0; !show &&
i < numOIDs;
i++)
454 'A',
'd',
'd',
'r',
'e',
's',
's',
'B',
'o',
'o',
'k',0 };
458 'T',
'r',
'u',
's',
't',
'e',
'd',
'P',
'u',
'b',
'l',
'i',
's',
'h',
'e',
'r',0 };
459static const WCHAR disallowed[] = {
'D',
'i',
's',
'a',
'l',
'l',
'o',
'w',
'e',
'd',0 };
512 data->nStores = cStores;
513 data->stores = storeList;
514 for (
i = 0;
i < cStores;
i++)
566 for (
i = 0;
i < tabs;
i++)
664 static const WCHAR keyName[] = {
'S',
'o',
'f',
't',
'w',
'a',
'r',
'e',
'\\',
'M',
665 'i',
'c',
'r',
'o',
's',
'o',
'f',
't',
'\\',
'C',
'r',
'y',
'p',
't',
'o',
'g',
'r',
'a',
666 'p',
'h',
'y',
'\\',
'U',
'I',
'\\',
'C',
'e',
'r',
't',
'm',
'g',
'r',
'\\',
'P',
'u',
667 'r',
'p',
'o',
's',
'e',0 };
677 for (
i = 0;
i < purposes;
i++)
733 LPSTR disabledUsages;
758 ptr = comma ? comma + 1 :
NULL,
837 memset(&viewInfo, 0,
sizeof(viewInfo));
838 viewInfo.
dwSize =
sizeof(viewInfo);
882 if (
usage->cUsageIdentifier)
888 for (
i = 0;
i <
usage->cUsageIdentifier;
i++)
892 usage->rgpszUsageIdentifier[
i],
899 if (i < usage->cUsageIdentifier - 1)
909 usage->rgpszUsageIdentifier[
i],
925 if (i < usage->cUsageIdentifier - 1)
981 warningID =
data->stores[tabIndex].removePluralWarning;
983 warningID =
data->stores[tabIndex].removeWarning;
985 pTitle =
data->title;
1017 if (selectionCount == 1)
1039 else if (selectionCount > 1)
1051 info.dwSubjectChoice =
1053 info.u.hCertStore = store;
1081 item.pszText = buf1;
1082 item.iItem = index1;
1083 item.iSubItem = col;
1085 item.pszText = buf2;
1086 item.iItem = index2;
1106 &
cert2->pCertInfo->NotAfter);
1132 if (
data->imageList)
1174 if (numSelected == 1)
1299 TRACE(
"(%p)\n", pCryptUICertMgr);
1303 WARN(
"unexpected size %d\n", pCryptUICertMgr->
dwSize);
1331#define CRYPTUI_ENABLE_SHOW_PHYSICAL_STORE 0x00000001
1391 if (storeInfo->u.
name)
1610 WARN(
"unexpected size %d\n",
info->dwSize);
1616 return selectInfo.
store;
1632 WARN(
"unexpected size %d\n",
info->dwSize);
1666 TRACE(
"(%p, %p)\n", pCertViewInfo, pfPropertiesChanged);
1668 memcpy(&viewInfo, pCertViewInfo,
sizeof(viewInfo));
1689 FIXME(
"ignoring additional prop sheet pages\n");
1711 TRACE(
"(%p, %p, %d, %p)\n",
string,
buf,
cb, pcb);
1729 editstream.dwCookie = (
DWORD_PTR)&
string;
1730 editstream.dwError = 0;
1799 LPOLECACHE oleCache =
NULL;
1800 FORMATETC formatEtc;
1817 hr = IOleObject_GetUserClassID(
object, &
clsid);
1820 hr = IOleObject_QueryInterface(
object, &
IID_IOleCache, (
void**)&oleCache);
1824 formatEtc.ptd =
NULL;
1825 formatEtc.dwAspect = DVASPECT_CONTENT;
1826 formatEtc.lindex = -1;
1827 formatEtc.tymed = TYMED_GDI;
1828 hr = IOleCache_Cache(oleCache, &formatEtc, 0, &conn);
1832 (
void**)&dataObject);
1835 hr = IRichEditOle_GetClientSite(richEditOle, &clientSite);
1842 stgm.tymed = TYMED_GDI;
1844 stgm.pUnkForRelease =
NULL;
1845 hr = IDataObject_SetData(dataObject, &formatEtc, &stgm,
TRUE);
1849 reObject.
cbStruct =
sizeof(reObject);
1850 reObject.
cp = REO_CP_SELECTION;
1856 reObject.
dvaspect = DVASPECT_CONTENT;
1860 IRichEditOle_InsertObject(richEditOle, &reObject);
1864 IOleClientSite_Release(clientSite);
1866 IDataObject_Release(dataObject);
1868 IOleCache_Release(oleCache);
1870 IOleObject_Release(
object);
1872 IRichEditOle_Release(richEditOle);
1875#define MY_INDENT 200
1883 parFmt.
cbSize =
sizeof(parFmt);
1964 while (indexLow <= indexHigh)
1966 int cmp,
i = (indexLow + indexHigh) / 2;
1983 parFmt.
cbSize =
sizeof(parFmt);
2009 linebreak -
ptr, &parFmt);
2010 ptr = linebreak + 1;
2013 else if (multiline && *
ptr)
2020 }
while (linebreak);
2049 BOOL *anyUsageAdded)
2055 if (!*anyUsageAdded)
2059 parFmt.
cbSize =
sizeof(parFmt);
2065 *anyUsageAdded =
TRUE;
2067 memset(&charFmt, 0,
sizeof(charFmt));
2068 charFmt.
cbSize =
sizeof(charFmt);
2073 cert->pCertInfo->cExtension,
cert->pCertInfo->rgExtension)))
2091 pszPolicyQualifierId);
2101 BOOL *anyUsageAdded)
2119 if (!*anyUsageAdded)
2123 parFmt.
cbSize =
sizeof(parFmt);
2129 *anyUsageAdded =
TRUE;
2131 memset(&charFmt, 0,
sizeof(charFmt));
2132 charFmt.
cbSize =
sizeof(charFmt);
2137 if (!
usage->cUsageIdentifier)
2140 for (
i = 0;
i <
usage->cUsageIdentifier;
i++)
2142 usage->rgpszUsageIdentifier[
i]);
2169 includeCertUsages =
TRUE;
2172 includeAppUsages =
TRUE;
2178 includeAppUsages = includeCertUsages =
TRUE;
2179 if (includeAppUsages)
2181 if (includeCertUsages)
2188 parFmt.
cbSize =
sizeof(parFmt);
2208 pszPolicyQualifierId, policyOid))
2223 &qualifierValue, &
size))
2230 &qualifierValue->
Value, qualifierStr,
size);
2233 return qualifierStr;
2245 &qualifierValue, &
size))
2288 if (cps || userNotice)
2293 if (issuerStatement)
2295 issuerStatement->
cps =
cps;
2325 else if (!
root->fTrustedRoot)
2330 memset(&charFmt, 0,
sizeof(charFmt));
2331 charFmt.
cbSize =
sizeof(charFmt);
2336 parFmt.
cbSize =
sizeof(parFmt);
2352 else if (!
root->fTrustedRoot)
2369 DWORD nameFlags,
int heading)
2376 memset(&charFmt, 0,
sizeof(charFmt));
2377 charFmt.
cbSize =
sizeof(charFmt);
2381 parFmt.
cbSize =
sizeof(parFmt);
2414 memset(&charFmt, 0,
sizeof(charFmt));
2415 charFmt.
cbSize =
sizeof(charFmt);
2419 parFmt.
cbSize =
sizeof(parFmt);
2461 if (issuerStatement->
cps)
2481 HLNF_OPENINNEWWINDOW, 0);
2482 IBindCtx_Release(bctx);
2502 TRACE(
"(%p, %08x, %08lx, %08lx)\n",
hwnd,
msg, wp, lp);
2525 if (issuerStatement)
2529 else if (issuerStatement->
cps)
2536 IBindCtx_Release(bctx);
2557 if (issuerStatement)
2585 static const WCHAR fmt[] = {
'V',
'%',
'd',0 };
2599 static const WCHAR fmt[] = {
'%',
'0',
'2',
'x',
' ',0 };
2612 cert->pCertInfo->SerialNumber.cbData);
2689 cert->pCertInfo->SubjectPublicKeyInfo.Algorithm.pszObjId, 0);
2708 cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.cbData * 8;
2715 &
cert->pCertInfo->SubjectPublicKeyInfo);
2727 cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.pbData,
2728 cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.cbData);
2840 if (
cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.cbData)
2863 if (
ext->Value.cbData)
2891 static const WCHAR fmt[] = {
'%',
'0',
'2',
'x',
' ',0 };
2901 if (
j ==
ext->Value.cbData &&
j % 8)
2903 static const WCHAR pad[] = {
' ',
' ',
' ' };
2959 for (
i = 0;
i <=
len;
i++)
2960 oidW[
i] =
ext->pszObjId[
i];
2974 for (
i = 0;
i <
cert->pCertInfo->cExtension;
i++)
2983 for (
i = 0;
i <
cert->pCertInfo->cExtension;
i++)
2984 if (
cert->pCertInfo->rgExtension[
i].fCritical)
2986 &
cert->pCertInfo->rgExtension[
i]);
3005 ext.Value.pbData = pb;
3006 ext.Value.cbData =
cb;
3152 info->pszOID = oidCopy;
3159 item.pszText = oidCopy;
3171 if (oid[0] !=
'0' && oid[0] !=
'1' && oid[0] !=
'2')
3173 else if (oid[1] !=
'.')
3188 else if (*(
ptr + 1) ==
'.')
3195 else if (!(*(
ptr + 1)))
3211#define MAX_PURPOSE 255
3427 else if (
usage->cUsageIdentifier)
3442 else if (
usage->cUsageIdentifier)
3456 for (
i = 0;
i <
usage->cUsageIdentifier;
i++)