gck: Fix warnings printed by p11-kit during tests
authorStef Walter <stefw@gnome.org>
Thu, 20 Sep 2012 13:26:53 +0000 (15:26 +0200)
committerStef Walter <stefw@gnome.org>
Tue, 25 Sep 2012 13:51:51 +0000 (15:51 +0200)
 * Don't pass invalid data to the mutex functions in an effort
   to test them, while running other tests.

https://bugzilla.gnome.org/show_bug.cgi?id=684476

gck/gck-mock.c

index 2fd6518..23f4c4d 100644 (file)
@@ -1781,7 +1781,7 @@ gck_mock_unsupported_C_GenerateRandom (CK_SESSION_HANDLE hSession, CK_BYTE_PTR p
 
 static CK_FUNCTION_LIST functionList = {
        { 2, 11 },      /* version */
-       gck_mock_validate_and_C_Initialize,
+       gck_mock_C_Initialize,
        gck_mock_C_Finalize,
        gck_mock_C_GetInfo,
        gck_mock_C_GetFunctionList,