Changeset 478 for vendor/current/nsswitch/libwbclient
- Timestamp:
- Aug 2, 2010, 6:40:21 PM (15 years ago)
- Location:
- vendor/current/nsswitch/libwbclient
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/nsswitch/libwbclient/wbc_idmap.c
r414 r478 224 224 /* Make request */ 225 225 226 wbc_status = wbcRequestResponse (WINBINDD_ALLOCATE_UID,227 &request, &response);226 wbc_status = wbcRequestResponsePriv(WINBINDD_ALLOCATE_UID, 227 &request, &response); 228 228 BAIL_ON_WBC_ERROR(wbc_status); 229 229 … … 254 254 /* Make request */ 255 255 256 wbc_status = wbcRequestResponse (WINBINDD_ALLOCATE_GID,257 &request, &response);256 wbc_status = wbcRequestResponsePriv(WINBINDD_ALLOCATE_GID, 257 &request, &response); 258 258 BAIL_ON_WBC_ERROR(wbc_status); 259 259 … … 300 300 wbcFreeMemory(sid_string); 301 301 302 wbc_status = wbcRequestResponse (WINBINDD_SET_MAPPING,303 &request, &response);302 wbc_status = wbcRequestResponsePriv(WINBINDD_SET_MAPPING, 303 &request, &response); 304 304 BAIL_ON_WBC_ERROR(wbc_status); 305 305 … … 337 337 wbcFreeMemory(sid_string); 338 338 339 wbc_status = wbcRequestResponse (WINBINDD_SET_MAPPING,340 &request, &response);339 wbc_status = wbcRequestResponsePriv(WINBINDD_SET_MAPPING, 340 &request, &response); 341 341 BAIL_ON_WBC_ERROR(wbc_status); 342 342 … … 374 374 wbcFreeMemory(sid_string); 375 375 376 wbc_status = wbcRequestResponse (WINBINDD_REMOVE_MAPPING,377 &request, &response);376 wbc_status = wbcRequestResponsePriv(WINBINDD_REMOVE_MAPPING, 377 &request, &response); 378 378 BAIL_ON_WBC_ERROR(wbc_status); 379 379 … … 411 411 wbcFreeMemory(sid_string); 412 412 413 wbc_status = wbcRequestResponse (WINBINDD_REMOVE_MAPPING,414 &request, &response);413 wbc_status = wbcRequestResponsePriv(WINBINDD_REMOVE_MAPPING, 414 &request, &response); 415 415 BAIL_ON_WBC_ERROR(wbc_status); 416 416 … … 436 436 request.data.dual_idmapset.type = _ID_TYPE_UID; 437 437 438 wbc_status = wbcRequestResponse (WINBINDD_SET_HWM,439 &request, &response);438 wbc_status = wbcRequestResponsePriv(WINBINDD_SET_HWM, 439 &request, &response); 440 440 BAIL_ON_WBC_ERROR(wbc_status); 441 441 … … 461 461 request.data.dual_idmapset.type = _ID_TYPE_GID; 462 462 463 wbc_status = wbcRequestResponse (WINBINDD_SET_HWM,464 &request, &response);465 BAIL_ON_WBC_ERROR(wbc_status); 466 467 done: 468 return wbc_status; 469 } 463 wbc_status = wbcRequestResponsePriv(WINBINDD_SET_HWM, 464 &request, &response); 465 BAIL_ON_WBC_ERROR(wbc_status); 466 467 done: 468 return wbc_status; 469 } -
vendor/current/nsswitch/libwbclient/wbc_pam.c
r414 r478 464 464 } 465 465 466 wbc_status = wbcRequestResponse(cmd, 467 &request, 468 &response); 466 if (cmd == WINBINDD_PAM_AUTH_CRAP) { 467 wbc_status = wbcRequestResponsePriv(cmd, &request, &response); 468 } else { 469 wbc_status = wbcRequestResponse(cmd, &request, &response); 470 } 469 471 if (response.data.auth.nt_status != 0) { 470 472 if (error) { … … 514 516 /* Send request */ 515 517 516 wbc_status = wbcRequestResponse(WINBINDD_CHECK_MACHACC, 517 &request, 518 &response); 518 wbc_status = wbcRequestResponsePriv(WINBINDD_CHECK_MACHACC, 519 &request, &response); 519 520 if (response.data.auth.nt_status != 0) { 520 521 if (error) { … … 552 553 /* Send request */ 553 554 554 wbc_status = wbcRequestResponse(WINBINDD_CHANGE_MACHACC, 555 &request, 556 &response); 555 wbc_status = wbcRequestResponsePriv(WINBINDD_CHANGE_MACHACC, 556 &request, &response); 557 557 if (response.data.auth.nt_status != 0) { 558 558 if (error) { -
vendor/current/nsswitch/libwbclient/wbclient.c
r414 r478 33 33 struct winbindd_request *request, 34 34 struct winbindd_response *response); 35 NSS_STATUS winbindd_priv_request_response(int req_type, 36 struct winbindd_request *request, 37 struct winbindd_response *response); 35 38 36 39 /** @brief Wrapper around Winbind's send/receive API call … … 56 59 **********************************************************************/ 57 60 58 wbcErr wbcRequestResponse(int cmd, 59 struct winbindd_request *request, 60 struct winbindd_response *response) 61 static wbcErr wbcRequestResponseInt( 62 int cmd, 63 struct winbindd_request *request, 64 struct winbindd_response *response, 65 NSS_STATUS (*fn)(int req_type, 66 struct winbindd_request *request, 67 struct winbindd_response *response)) 61 68 { 62 69 wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE; … … 65 72 /* for some calls the request and/or response can be NULL */ 66 73 67 nss_status = winbindd_request_response(cmd, request, response);74 nss_status = fn(cmd, request, response); 68 75 69 76 switch (nss_status) { … … 83 90 84 91 return wbc_status; 92 } 93 94 wbcErr wbcRequestResponse(int cmd, 95 struct winbindd_request *request, 96 struct winbindd_response *response) 97 { 98 return wbcRequestResponseInt(cmd, request, response, 99 winbindd_request_response); 100 } 101 102 wbcErr wbcRequestResponsePriv(int cmd, 103 struct winbindd_request *request, 104 struct winbindd_response *response) 105 { 106 return wbcRequestResponseInt(cmd, request, response, 107 winbindd_priv_request_response); 85 108 } 86 109 -
vendor/current/nsswitch/libwbclient/wbclient_internal.h
r414 r478 29 29 struct winbindd_response *response); 30 30 31 wbcErr wbcRequestResponsePriv(int cmd, 32 struct winbindd_request *request, 33 struct winbindd_response *response); 34 31 35 #endif /* _WBCLIENT_INTERNAL_H */
Note:
See TracChangeset
for help on using the changeset viewer.