crypt32.dll conformance tests

Mark Louie mrjizzo at mailsnare.net
Mon Mar 21 23:53:06 CST 2005


Hello,

We've created a conformance test for CryptRegisterOIDFunction() and CryptSIPAddProvider(), the crypt32 functions that are currently implemented in dlls/crypt32/main.c

The test for CryptSIPAddProvider() found that Wine's implementation properly adds a Subject Interface Package (SIP) to the system's registry for most of the SIP's functions; however, when CryptSIPAddProvider() attempts to extract and save the function name that determines whether the file contents are supported by this SIP, specified by pwszIsFunctionName in the ADD_NEW_PROVIDER structure argument, the function name from pwszIsFunctionNameFmt2 is erroneously stored instead.  Also, it appears that adding the SIP function specified by pwszIsFunctionNameFmt2 has not yet been implemented.  These tests have been grouped using the todo_wine construct.

The test for CryptRegisterOIDFunction() was successful when the object identifier (OID) is specified as a NULL-terminated string; however, the test fails/crashes when the OID is specified as a numeric identifier.  Upon further investigation, we discovered that the conformance test crashes because the current implementation of CryptRegisterOIDFunction() assumes that all OIDs are specifed as NULL-terminated string and does not check for the possibility of numeric identifiers.  The test for numeric OIDs has been commented out.

-Mark Louie


Changelog:
 * dlls/crypt32/tests/crypt32_reg.c
   * code of the tests for the functions CryptRegisterOIDFunction and CryptSIPAddProvider
 * dlls/crypt32/tests/Makefile.in
   * added standard Makefile.in
 * dlls/crypt32/Makefile.in
   * updated to recognize 'tests' subdirectory
 * configure.ac
   * updated to include crypt32 conformance tests

-------------- next part --------------
A non-text attachment was scrubbed...
Name: crypt32_test.patch
Type: application/octet-stream
Size: 20260 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050322/0ed021da/crypt32_test.obj


More information about the wine-patches mailing list