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
d8094382
Commit
d8094382
authored
Nov 03, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Implement CertAddEncodedCertificateToSystemStoreA/W.
parent
5df2626a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
2 deletions
+47
-2
cert.c
dlls/crypt32/cert.c
+38
-0
crypt32.spec
dlls/crypt32/crypt32.spec
+2
-2
wincrypt.h
include/wincrypt.h
+7
-0
No files found.
dlls/crypt32/cert.c
View file @
d8094382
...
...
@@ -71,6 +71,44 @@ BOOL WINAPI CertAddEncodedCertificateToStore(HCERTSTORE hCertStore,
return
ret
;
}
BOOL
WINAPI
CertAddEncodedCertificateToSystemStoreA
(
LPCSTR
pszCertStoreName
,
const
BYTE
*
pbCertEncoded
,
DWORD
cbCertEncoded
)
{
HCERTSTORE
store
;
BOOL
ret
=
FALSE
;
TRACE
(
"(%s, %p, %d)
\n
"
,
debugstr_a
(
pszCertStoreName
),
pbCertEncoded
,
cbCertEncoded
);
store
=
CertOpenSystemStoreA
(
0
,
pszCertStoreName
);
if
(
store
)
{
ret
=
CertAddEncodedCertificateToStore
(
store
,
X509_ASN_ENCODING
,
pbCertEncoded
,
cbCertEncoded
,
CERT_STORE_ADD_USE_EXISTING
,
NULL
);
CertCloseStore
(
store
,
0
);
}
return
ret
;
}
BOOL
WINAPI
CertAddEncodedCertificateToSystemStoreW
(
LPCWSTR
pszCertStoreName
,
const
BYTE
*
pbCertEncoded
,
DWORD
cbCertEncoded
)
{
HCERTSTORE
store
;
BOOL
ret
=
FALSE
;
TRACE
(
"(%s, %p, %d)
\n
"
,
debugstr_w
(
pszCertStoreName
),
pbCertEncoded
,
cbCertEncoded
);
store
=
CertOpenSystemStoreW
(
0
,
pszCertStoreName
);
if
(
store
)
{
ret
=
CertAddEncodedCertificateToStore
(
store
,
X509_ASN_ENCODING
,
pbCertEncoded
,
cbCertEncoded
,
CERT_STORE_ADD_USE_EXISTING
,
NULL
);
CertCloseStore
(
store
,
0
);
}
return
ret
;
}
BOOL
WINAPI
CertAddCertificateLinkToStore
(
HCERTSTORE
hCertStore
,
PCCERT_CONTEXT
pCertContext
,
DWORD
dwAddDisposition
,
PCCERT_CONTEXT
*
ppCertContext
)
...
...
dlls/crypt32/crypt32.spec
View file @
d8094382
...
...
@@ -5,8 +5,8 @@
@ stdcall CertAddEncodedCRLToStore(ptr long ptr long long ptr)
@ stdcall CertAddEncodedCTLToStore(ptr long ptr long long ptr)
@ stdcall CertAddEncodedCertificateToStore(ptr long ptr long long ptr)
@ st
ub CertAddEncodedCertificateToSystemStoreA
@ st
ub CertAddEncodedCertificateToSystemStoreW
@ st
dcall CertAddEncodedCertificateToSystemStoreA(str ptr long)
@ st
dcall CertAddEncodedCertificateToSystemStoreW(wstr ptr long)
@ stdcall CertAddEnhancedKeyUsageIdentifier(ptr str)
@ stdcall CertAddSerializedElementToStore(ptr ptr long long long long ptr ptr)
@ stdcall CertAddStoreToCollection(ptr ptr long long)
...
...
include/wincrypt.h
View file @
d8094382
...
...
@@ -4054,6 +4054,13 @@ BOOL WINAPI CertAddEncodedCertificateToStore(HCERTSTORE hCertStore,
DWORD
dwCertEncodingType
,
const
BYTE
*
pbCertEncoded
,
DWORD
cbCertEncoded
,
DWORD
dwAddDisposition
,
PCCERT_CONTEXT
*
ppCertContext
);
BOOL
WINAPI
CertAddEncodedCertificateToSystemStoreA
(
LPCSTR
pszCertStoreName
,
const
BYTE
*
pbCertEncoded
,
DWORD
cbCertEncoded
);
BOOL
WINAPI
CertAddEncodedCertificateToSystemStoreW
(
LPCWSTR
pszCertStoreName
,
const
BYTE
*
pbCertEncoded
,
DWORD
cbCertEncoded
);
#define CertAddEncodedCertificateToSystemStore \
WINELIB_NAME_AW(CertAddEncodedCertificateToSystemStore)
BOOL
WINAPI
CertAddEncodedCRLToStore
(
HCERTSTORE
hCertStore
,
DWORD
dwCertEncodingType
,
const
BYTE
*
pbCrlEncoded
,
DWORD
cbCrlEncoded
,
DWORD
dwAddDisposition
,
PCCRL_CONTEXT
*
ppCrlContext
);
...
...
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