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,
841 memset(&viewInfo, 0,
sizeof(viewInfo));
842 viewInfo.
dwSize =
sizeof(viewInfo);
886 if (
usage->cUsageIdentifier)
892 for (
i = 0;
i <
usage->cUsageIdentifier;
i++)
896 usage->rgpszUsageIdentifier[
i],
903 if (i < usage->cUsageIdentifier - 1)
913 usage->rgpszUsageIdentifier[
i],
929 if (i < usage->cUsageIdentifier - 1)
985 warningID =
data->stores[tabIndex].removePluralWarning;
987 warningID =
data->stores[tabIndex].removeWarning;
989 pTitle =
data->title;
1021 if (selectionCount == 1)
1043 else if (selectionCount > 1)
1055 info.dwSubjectChoice =
1057 info.u.hCertStore = store;
1085 item.pszText = buf1;
1086 item.iItem = index1;
1087 item.iSubItem = col;
1089 item.pszText = buf2;
1090 item.iItem = index2;
1110 &
cert2->pCertInfo->NotAfter);
1136 if (
data->imageList)
1186 if (numSelected == 1)
1313 TRACE(
"(%p)\n", pCryptUICertMgr);
1317 WARN(
"unexpected size %d\n", pCryptUICertMgr->
dwSize);
1345#define CRYPTUI_ENABLE_SHOW_PHYSICAL_STORE 0x00000001
1405 if (storeInfo->u.
name)
1624 WARN(
"unexpected size %d\n",
info->dwSize);
1630 return selectInfo.
store;
1646 WARN(
"unexpected size %d\n",
info->dwSize);
1680 TRACE(
"(%p, %p)\n", pCertViewInfo, pfPropertiesChanged);
1682 memcpy(&viewInfo, pCertViewInfo,
sizeof(viewInfo));
1703 FIXME(
"ignoring additional prop sheet pages\n");
1725 TRACE(
"(%p, %p, %d, %p)\n",
string,
buf,
cb, pcb);
1743 editstream.dwCookie = (
DWORD_PTR)&
string;
1744 editstream.dwError = 0;
1813 LPOLECACHE oleCache =
NULL;
1814 FORMATETC formatEtc;
1831 hr = IOleObject_GetUserClassID(
object, &
clsid);
1834 hr = IOleObject_QueryInterface(
object, &
IID_IOleCache, (
void**)&oleCache);
1838 formatEtc.ptd =
NULL;
1839 formatEtc.dwAspect = DVASPECT_CONTENT;
1840 formatEtc.lindex = -1;
1841 formatEtc.tymed = TYMED_GDI;
1842 hr = IOleCache_Cache(oleCache, &formatEtc, 0, &conn);
1846 (
void**)&dataObject);
1849 hr = IRichEditOle_GetClientSite(richEditOle, &clientSite);
1856 stgm.tymed = TYMED_GDI;
1858 stgm.pUnkForRelease =
NULL;
1859 hr = IDataObject_SetData(dataObject, &formatEtc, &stgm,
TRUE);
1863 reObject.
cbStruct =
sizeof(reObject);
1864 reObject.
cp = REO_CP_SELECTION;
1870 reObject.
dvaspect = DVASPECT_CONTENT;
1874 IRichEditOle_InsertObject(richEditOle, &reObject);
1878 IOleClientSite_Release(clientSite);
1880 IDataObject_Release(dataObject);
1882 IOleCache_Release(oleCache);
1884 IOleObject_Release(
object);
1886 IRichEditOle_Release(richEditOle);
1889#define MY_INDENT 200
1897 parFmt.
cbSize =
sizeof(parFmt);
1978 while (indexLow <= indexHigh)
1980 int cmp,
i = (indexLow + indexHigh) / 2;
1997 parFmt.
cbSize =
sizeof(parFmt);
2023 linebreak -
ptr, &parFmt);
2024 ptr = linebreak + 1;
2027 else if (multiline && *
ptr)
2034 }
while (linebreak);
2063 BOOL *anyUsageAdded)
2069 if (!*anyUsageAdded)
2073 parFmt.
cbSize =
sizeof(parFmt);
2079 *anyUsageAdded =
TRUE;
2081 memset(&charFmt, 0,
sizeof(charFmt));
2082 charFmt.
cbSize =
sizeof(charFmt);
2087 cert->pCertInfo->cExtension,
cert->pCertInfo->rgExtension)))
2105 pszPolicyQualifierId);
2115 BOOL *anyUsageAdded)
2133 if (!*anyUsageAdded)
2137 parFmt.
cbSize =
sizeof(parFmt);
2143 *anyUsageAdded =
TRUE;
2145 memset(&charFmt, 0,
sizeof(charFmt));
2146 charFmt.
cbSize =
sizeof(charFmt);
2151 if (!
usage->cUsageIdentifier)
2154 for (
i = 0;
i <
usage->cUsageIdentifier;
i++)
2156 usage->rgpszUsageIdentifier[
i]);
2183 includeCertUsages =
TRUE;
2186 includeAppUsages =
TRUE;
2192 includeAppUsages = includeCertUsages =
TRUE;
2193 if (includeAppUsages)
2195 if (includeCertUsages)
2202 parFmt.
cbSize =
sizeof(parFmt);
2222 pszPolicyQualifierId, policyOid))
2237 &qualifierValue, &
size))
2244 &qualifierValue->
Value, qualifierStr,
size);
2247 return qualifierStr;
2259 &qualifierValue, &
size))
2302 if (cps || userNotice)
2307 if (issuerStatement)
2309 issuerStatement->
cps =
cps;
2339 else if (!
root->fTrustedRoot)
2344 memset(&charFmt, 0,
sizeof(charFmt));
2345 charFmt.
cbSize =
sizeof(charFmt);
2350 parFmt.
cbSize =
sizeof(parFmt);
2366 else if (!
root->fTrustedRoot)
2383 DWORD nameFlags,
int heading)
2390 memset(&charFmt, 0,
sizeof(charFmt));
2391 charFmt.
cbSize =
sizeof(charFmt);
2395 parFmt.
cbSize =
sizeof(parFmt);
2428 memset(&charFmt, 0,
sizeof(charFmt));
2429 charFmt.
cbSize =
sizeof(charFmt);
2433 parFmt.
cbSize =
sizeof(parFmt);
2475 if (issuerStatement->
cps)
2495 HLNF_OPENINNEWWINDOW, 0);
2496 IBindCtx_Release(bctx);
2516 TRACE(
"(%p, %08x, %08lx, %08lx)\n",
hwnd,
msg, wp, lp);
2539 if (issuerStatement)
2543 else if (issuerStatement->
cps)
2550 IBindCtx_Release(bctx);
2571 if (issuerStatement)
2599 static const WCHAR fmt[] = {
'V',
'%',
'd',0 };
2613 static const WCHAR fmt[] = {
'%',
'0',
'2',
'x',
' ',0 };
2626 cert->pCertInfo->SerialNumber.cbData);
2703 cert->pCertInfo->SubjectPublicKeyInfo.Algorithm.pszObjId, 0);
2722 cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.cbData * 8;
2729 &
cert->pCertInfo->SubjectPublicKeyInfo);
2741 cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.pbData,
2742 cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.cbData);
2854 if (
cert->pCertInfo->SubjectPublicKeyInfo.PublicKey.cbData)
2877 if (
ext->Value.cbData)
2905 static const WCHAR fmt[] = {
'%',
'0',
'2',
'x',
' ',0 };
2915 if (
j ==
ext->Value.cbData &&
j % 8)
2917 static const WCHAR pad[] = {
' ',
' ',
' ' };
2973 for (
i = 0;
i <=
len;
i++)
2974 oidW[
i] =
ext->pszObjId[
i];
2988 for (
i = 0;
i <
cert->pCertInfo->cExtension;
i++)
2997 for (
i = 0;
i <
cert->pCertInfo->cExtension;
i++)
2998 if (
cert->pCertInfo->rgExtension[
i].fCritical)
3000 &
cert->pCertInfo->rgExtension[
i]);
3019 ext.Value.pbData = pb;
3020 ext.Value.cbData =
cb;
3166 info->pszOID = oidCopy;
3173 item.pszText = oidCopy;
3185 if (oid[0] !=
'0' && oid[0] !=
'1' && oid[0] !=
'2')
3187 else if (oid[1] !=
'.')
3202 else if (*(
ptr + 1) ==
'.')
3209 else if (!(*(
ptr + 1)))
3225#define MAX_PURPOSE 255
3441 else if (
usage->cUsageIdentifier)
3456 else if (
usage->cUsageIdentifier)
3470 for (
i = 0;
i <
usage->cUsageIdentifier;
i++)