Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fa10a299
Commit
fa10a299
authored
May 24, 2007
by
Juan Lang
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove wrong test and parameter check.
parent
3c9e7a7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
34 deletions
+0
-34
store.c
dlls/crypt32/store.c
+0
-6
store.c
dlls/crypt32/tests/store.c
+0
-28
No files found.
dlls/crypt32/store.c
View file @
fa10a299
...
...
@@ -1920,12 +1920,6 @@ static PWINECRYPT_CERTSTORE CRYPT_FileNameOpenStoreW(HCRYPTPROV hCryptProv,
SetLastError
(
ERROR_PATH_NOT_FOUND
);
return
NULL
;
}
if
(
!
(
dwFlags
&
(
CERT_FILE_STORE_COMMIT_ENABLE_FLAG
|
CERT_STORE_READONLY_FLAG
)))
{
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
NULL
;
}
access
=
GENERIC_READ
;
if
(
dwFlags
&
CERT_FILE_STORE_COMMIT_ENABLE_FLAG
)
...
...
dlls/crypt32/tests/store.c
View file @
fa10a299
...
...
@@ -1230,34 +1230,6 @@ static void testFileNameStore(void)
checkFileStoreFailure
(
filename
,
0
,
CERT_FILE_STORE_COMMIT_ENABLE_FLAG
|
CERT_STORE_READONLY_FLAG
,
E_INVALIDARG
);
/* Without an encoding type, these all fail */
checkFileStoreFailure
(
filename
,
0
,
0
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
0
,
CERT_STORE_OPEN_EXISTING_FLAG
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
0
,
CERT_STORE_CREATE_NEW_FLAG
,
ERROR_FILE_NOT_FOUND
);
/* Without a message encoding type, these still fail */
checkFileStoreFailure
(
filename
,
X509_ASN_ENCODING
,
0
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
X509_ASN_ENCODING
,
CERT_STORE_OPEN_EXISTING_FLAG
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
X509_ASN_ENCODING
,
CERT_STORE_CREATE_NEW_FLAG
,
ERROR_FILE_NOT_FOUND
);
/* Without a cert encoding type, they still fail */
checkFileStoreFailure
(
filename
,
PKCS_7_ASN_ENCODING
,
0
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
PKCS_7_ASN_ENCODING
,
CERT_STORE_OPEN_EXISTING_FLAG
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
PKCS_7_ASN_ENCODING
,
CERT_STORE_CREATE_NEW_FLAG
,
ERROR_FILE_NOT_FOUND
);
/* With both a message and cert encoding type, but without commit enabled,
* they still fail
*/
checkFileStoreFailure
(
filename
,
X509_ASN_ENCODING
|
PKCS_7_ASN_ENCODING
,
0
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
X509_ASN_ENCODING
|
PKCS_7_ASN_ENCODING
,
CERT_STORE_OPEN_EXISTING_FLAG
,
ERROR_FILE_NOT_FOUND
);
checkFileStoreFailure
(
filename
,
X509_ASN_ENCODING
|
PKCS_7_ASN_ENCODING
,
CERT_STORE_CREATE_NEW_FLAG
,
ERROR_FILE_NOT_FOUND
);
/* In all of the following tests, the encoding type seems to be ignored */
if
(
initFileFromData
(
filename
,
bigCert
,
sizeof
(
bigCert
)))
...
...
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