summaryrefslogtreecommitdiffstats
path: root/src/lib/ccapi/server/rpc_auth.c
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2006-05-21 03:48:39 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2006-05-21 03:48:39 +0000
commitd68adb389e9c1926f4f8c9a0e6132e6dd97ed32b (patch)
treefcf2723965ead9a912557f6edfeb24850e3f7e0b /src/lib/ccapi/server/rpc_auth.c
parent4e824737afa8bb05db07d92a04855149c2fba5d8 (diff)
downloadkrb5-d68adb389e9c1926f4f8c9a0e6132e6dd97ed32b.tar.gz
krb5-d68adb389e9c1926f4f8c9a0e6132e6dd97ed32b.tar.xz
krb5-d68adb389e9c1926f4f8c9a0e6132e6dd97ed32b.zip
Construct an outline of a sample platform specific main.c
Add ccs_serv_cleanup() routine. Currently does nothing. Correct field names used within the authorization check. git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18025 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/ccapi/server/rpc_auth.c')
-rw-r--r--src/lib/ccapi/server/rpc_auth.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/ccapi/server/rpc_auth.c b/src/lib/ccapi/server/rpc_auth.c
index dd338e010c..66bc6aee9c 100644
--- a/src/lib/ccapi/server/rpc_auth.c
+++ b/src/lib/ccapi/server/rpc_auth.c
@@ -49,10 +49,13 @@
#include "rpc_auth.h"
cc_int32
-cci_rpc_is_authorized( cc_auth_info_t* msg_auth, cc_session_info_t* msg_session, cc_auth_info_t* stored_auth,
+ccs_rpc_is_authorized( cc_auth_info_t* msg_auth, cc_session_info_t* msg_session, cc_auth_info_t* stored_auth,
cc_session_info_t* stored_session, cc_uint32 * authorizedp)
{
- if (msg_auth == stored_auth && msg_session == stored_session)
+ if (msg_auth->len == stored_auth->len &&
+ !memcmp(msg_auth->info, stored_auth->info, msg_auth->len) &&
+ msg_session->len == stored_session->len &&
+ !memcmp(msg_session->info, stored_session->info, msg_session->len))
*authorizedp = 1;
else
*authorizedp = 0;