Author: dchapyshev
Date: Wed Dec 31 02:11:43 2008
New Revision: 38483
URL:
http://svn.reactos.org/svn/reactos?rev=38483&view=rev
Log:
- Add check of params
Modified:
trunk/reactos/dll/win32/secur32/sspi.c
Modified: trunk/reactos/dll/win32/secur32/sspi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/secur32/sspi.c?r…
==============================================================================
--- trunk/reactos/dll/win32/secur32/sspi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/secur32/sspi.c [iso-8859-1] Wed Dec 31 02:11:43 2008
@@ -182,7 +182,14 @@
PVOID Bar)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (Handle)
+ {
+ Bar = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+
+ return SEC_E_INVALID_HANDLE;
}
SECURITY_STATUS
@@ -192,7 +199,14 @@
PVOID Bar)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (Handle)
+ {
+ Bar = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+
+ return SEC_E_INVALID_HANDLE;
}
SECURITY_STATUS
@@ -210,7 +224,15 @@
)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (pszPackage)
+ {
+ phCred = NULL;
+ pExpires = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+
+ return SEC_E_SECPKG_NOT_FOUND;
}
SECURITY_STATUS
@@ -228,7 +250,15 @@
)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (pszPackage)
+ {
+ phCred = NULL;
+ pExpires = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+
+ return SEC_E_SECPKG_NOT_FOUND;
}
SECURITY_STATUS
@@ -309,7 +339,13 @@
)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (pszPackageName)
+ {
+ *ppPackageInfo = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+ return SEC_E_SECPKG_NOT_FOUND;
}
SECURITY_STATUS
@@ -320,7 +356,13 @@
)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (pszPackageName)
+ {
+ *ppPackageInfo = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+ return SEC_E_SECPKG_NOT_FOUND;
}
SECURITY_STATUS
@@ -433,7 +475,14 @@
)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (phCredential)
+ {
+ pBuffer = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+
+ return SEC_E_INVALID_HANDLE;
}
SECURITY_STATUS
@@ -445,7 +494,14 @@
)
{
UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+
+ if (phCredential)
+ {
+ pBuffer = NULL;
+ return ERROR_CALL_NOT_IMPLEMENTED;
+ }
+
+ return SEC_E_INVALID_HANDLE;
}
SECURITY_STATUS