return code;
}
- type = ntohl(msg->type);
+ type = msg->type;
if (type == ccmsg_INIT) {
return TypeToOpMapping->operations[type] (NULL, auth_info, session_info, msg, resp_msg);
} else {
- header_len = ntohl(msg->header_len);
+ header_len = msg->header_len;
if (header_len < sizeof(ccmsg_ctx_only_t)) {
return ccErrBadParam;
}
*resp_msg = 0;
- header_len = ntohl(msg->header_len);
- if (header_len != sizeof(ccmsg_init_t)) {
+ header_len = msg->header_len;
+ if (ctx != NULL || header_len != sizeof(ccmsg_init_t)) {
return ccErrBadParam;
}
return code;
}
- code = ccs_context_list_append(AllContexts, ctx, &ctx_node);
+ code = ccs_context_list_append(AllContexts, new_ctx, &ctx_node);
if (code != ccNoError) {
ccs_context_destroy(new_ctx);
return code;
cc_msg_t *msg, cc_msg_t **resp_msg)
{
ccmsg_ctx_release_t* header = (ccmsg_ctx_release_t *)msg->header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_handle handle = ntohll(header->ctx);
cc_int32 code;
{
ccmsg_ctx_get_change_time_resp_t* resp_header;
ccmsg_ctx_get_change_time_t *header = (ccmsg_ctx_get_change_time_t *)msg->header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
*resp_msg = 0;
cc_server_context_t *ctx2;
ccmsg_ctx_compare_resp_t* resp_header;
ccmsg_ctx_compare_t* header = (ccmsg_ctx_compare_t *)msg->header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_ccache_iterate_t* ccache_iterator;
ccmsg_ctx_new_ccache_iterator_resp_t* resp_header;
ccmsg_ctx_new_ccache_iterator_t* header = (ccmsg_ctx_new_ccache_iterator_t*)msg->header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_server_ccache_t* ccache;
ccmsg_ccache_open_resp_t* resp_header;
ccmsg_ccache_open_t* header = (ccmsg_ccache_open_t*)msg->header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
ccmsg_ccache_open_default_t* header = (ccmsg_ccache_open_default_t*)msg->header;
ccmsg_ccache_open_resp_t* resp_header;
cc_server_ccache_t* ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
*resp_msg = 0;
cc_server_ccache_t* ccache;
char* principal;
char* name;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_server_ccache_t* ccache;
char* principal;
char* name;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_server_ccache_t* ccache;
char* principal;
char* name;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
{
ccmsg_ccache_release_t* header = (ccmsg_ccache_release_t*)msg->header;
cc_server_ccache_t* ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
ccmsg_ccache_set_default_t* header = (ccmsg_ccache_set_default_t*)msg->header;
cc_ccache_iterate_t* ccache_iterator;
cc_ccache_list_node_t* ccache_node;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
ccmsg_ccache_get_creds_version_t* header = (ccmsg_ccache_get_creds_version_t*)msg->header;
ccmsg_ccache_get_creds_version_resp_t* resp_header;
cc_server_ccache_t* ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
ccmsg_ccache_get_name_t* header = (ccmsg_ccache_get_name_t*)msg->header;
ccmsg_ccache_get_name_resp_t* resp_header;
cc_server_ccache_t* ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_uint32 name_offset;
cc_int32 code;
ccmsg_ccache_get_principal_resp_t* resp_header;
cc_server_ccache_t* ccache;
char * principal;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_uint32 principal_offset;
cc_int32 code;
ccmsg_ccache_set_principal_t* header = (ccmsg_ccache_set_principal_t*)msg->header;
cc_server_ccache_t* ccache;
char *principal;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_credentials_iterate_t* creds_iterator;
ccmsg_ccache_creds_iterator_t* header = (ccmsg_ccache_creds_iterator_t*)msg->header;
ccmsg_ccache_creds_iterator_resp_t* resp_header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_server_ccache_t* ccache;
char *flat_creds;
cc_credentials_union *creds;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
ccmsg_ccache_rem_creds_t* header = (ccmsg_ccache_rem_creds_t*)msg->header;
cc_server_ccache_t* ccache;
cc_credentials_union *creds;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
ccmsg_ccache_get_last_default_time_t* header = (ccmsg_ccache_get_last_default_time_t*)msg->header;
ccmsg_ccache_get_last_default_time_resp_t* resp_header;
cc_server_ccache_t* ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
ccmsg_ccache_get_change_time_resp_t* resp_header;
ccmsg_ccache_get_change_time_t *header = (ccmsg_ccache_get_change_time_t *)msg->header;
cc_server_ccache_t* ccache = (cc_server_ccache_t *)header->ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
*resp_msg = 0;
ccmsg_ccache_compare_t* header = (ccmsg_ccache_compare_t*)msg->header;
ccmsg_ccache_compare_resp_t* resp_header;
cc_server_ccache_t* ccache1, *ccache2;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_uint32 is_equal;
cc_int32 code;
ccmsg_ccache_get_kdc_time_offset_resp_t* resp_header;
cc_server_ccache_t* ccache;
cc_time64 offset;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
{
ccmsg_ccache_set_kdc_time_offset_t* header = (ccmsg_ccache_set_kdc_time_offset_t*)msg->header;
cc_server_ccache_t* ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
{
ccmsg_ccache_clear_kdc_time_offset_t* header = (ccmsg_ccache_clear_kdc_time_offset_t*)msg->header;
cc_server_ccache_t* ccache;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
{
cc_generic_list_node_t* gen_node;
ccmsg_ccache_iterator_release_t* header = (ccmsg_ccache_iterator_release_t*)msg->header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_generic_list_node_t* gen_node;
cc_ccache_iterate_t* ccache_iterator;
cc_ccache_list_node_t *ccache_node;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_generic_list_node_t* gen_node;
cc_server_ccache_t* ccache;
ccmsg_creds_iterator_release_t* header = (ccmsg_creds_iterator_release_t*)msg->header;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;
cc_server_ccache_t* ccache;
cc_server_credentials_t* stored_creds;
cc_credentials_union *creds_union;
- cc_uint32 header_len = ntohl(msg->header_len);
+ cc_uint32 header_len = msg->header_len;
cc_int32 code;
*resp_msg = 0;