Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a3a165fc
Commit
a3a165fc
authored
Jan 06, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jan 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement CryptFindLocalizedName.
parent
29b8c35b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
1 deletion
+50
-1
crypt32_En.rc
dlls/crypt32/crypt32_En.rc
+8
-0
crypt32_No.rc
dlls/crypt32/crypt32_No.rc
+8
-0
cryptres.h
dlls/crypt32/cryptres.h
+5
-0
oid.c
dlls/crypt32/oid.c
+29
-1
No files found.
dlls/crypt32/crypt32_En.rc
View file @
a3a165fc
...
...
@@ -164,3 +164,11 @@ STRINGTABLE DISCARDABLE
IDS_LIFETIME_SIGNING "Lifetime Signing"
IDS_ANY_CERT_POLICY "All issuance policies"
}
STRINGTABLE DISCARDABLE
{
IDS_LOCALIZEDNAME_ROOT "Trusted Root Certification Authorities"
IDS_LOCALIZEDNAME_MY "Personal"
IDS_LOCALIZEDNAME_CA "Intermediate Certification Authorities"
IDS_LOCALIZEDNAME_ADDRESSBOOK "Other People"
}
dlls/crypt32/crypt32_No.rc
View file @
a3a165fc
...
...
@@ -164,3 +164,11 @@ STRINGTABLE DISCARDABLE
IDS_LIFETIME_SIGNING "Livstidsignering"
IDS_ANY_CERT_POLICY "Alle framgangsmter for utsteding"
}
STRINGTABLE DISCARDABLE
{
IDS_LOCALIZEDNAME_ROOT "Klarerte rotsertifiseringsinstanser"
IDS_LOCALIZEDNAME_MY "Personlig"
IDS_LOCALIZEDNAME_CA "Mellomliggende sertifiseringsinstanser"
IDS_LOCALIZEDNAME_ADDRESSBOOK "Andre personer"
}
dlls/crypt32/cryptres.h
View file @
a3a165fc
...
...
@@ -160,4 +160,9 @@
#define IDS_LIFETIME_SIGNING 1139
#define IDS_ANY_CERT_POLICY 1140
#define IDS_LOCALIZEDNAME_ROOT 1141
#define IDS_LOCALIZEDNAME_MY 1142
#define IDS_LOCALIZEDNAME_CA 1143
#define IDS_LOCALIZEDNAME_ADDRESSBOOK 1144
#endif
/* ndef __WINE_CRYPTRES_H__ */
dlls/crypt32/oid.c
View file @
a3a165fc
...
...
@@ -77,6 +77,13 @@ struct OIDFunction
struct
list
next
;
};
static
const
WCHAR
ROOT
[]
=
{
'R'
,
'O'
,
'O'
,
'T'
,
0
};
static
const
WCHAR
MY
[]
=
{
'M'
,
'Y'
,
0
};
static
const
WCHAR
CA
[]
=
{
'C'
,
'A'
,
0
};
static
const
WCHAR
ADDRESSBOOK
[]
=
{
'A'
,
'D'
,
'D'
,
'R'
,
'E'
,
'S'
,
'S'
,
'B'
,
'O'
,
'O'
,
'K'
,
0
};
static
const
LPCWSTR
LocalizedKeys
[]
=
{
ROOT
,
MY
,
CA
,
ADDRESSBOOK
};
static
WCHAR
LocalizedNames
[
4
][
256
];
static
void
free_function_sets
(
void
)
{
struct
OIDFunctionSet
*
setCursor
,
*
setNext
;
...
...
@@ -987,12 +994,32 @@ BOOL WINAPI CryptUnregisterDefaultOIDFunction(DWORD dwEncodingType,
return
ret
;
}
static
void
oid_init_localizednames
(
HINSTANCE
hInstance
)
{
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
LocalizedKeys
)
/
sizeof
(
LPCWSTR
);
i
++
)
{
LoadStringW
(
hInstance
,
IDS_LOCALIZEDNAME_ROOT
+
i
,
LocalizedNames
[
i
],
256
);
}
}
/********************************************************************
* CryptFindLocalizedName (CRYPT32.@)
*/
LPCWSTR
WINAPI
CryptFindLocalizedName
(
LPCWSTR
pwszCryptName
)
{
FIXME
(
" %s - stub
\n
"
,
debugstr_w
(
pwszCryptName
));
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
LocalizedKeys
)
/
sizeof
(
LPCWSTR
);
i
++
)
{
if
(
!
lstrcmpiW
(
LocalizedKeys
[
i
],
pwszCryptName
))
{
return
LocalizedNames
[
i
];
}
}
FIXME
(
"No name for: %s - stub
\n
"
,
debugstr_w
(
pwszCryptName
));
return
NULL
;
}
...
...
@@ -1345,6 +1372,7 @@ static void init_oid_info(HINSTANCE hinst)
{
DWORD
i
;
oid_init_localizednames
(
hinst
);
for
(
i
=
0
;
i
<
sizeof
(
oidInfoConstructors
)
/
sizeof
(
oidInfoConstructors
[
0
]);
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment