/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPReg.c | 156 if ((err = find_SAscopes(&pcScopeList)) != SLP_OK) { in SLPReg() 160 if ((err = slp_start_call(hSLP)) != SLP_OK) in SLPReg() 166 pcScopeList, pcAttrs, fresh, &msg)) != SLP_OK) { in SLPReg() 172 if ((err = reg_common(hSLP, msg, pvUser, callback)) == SLP_OK && in SLPReg() 180 if (err == SLP_OK) { in SLPReg() 246 != SLP_OK) in packSrvReg() 254 if ((err = slp_add_sht(m, msgLen, lifetime, &len)) != SLP_OK) in packSrvReg() 261 if ((err = slp_add_string(m, msgLen, url, &len)) != SLP_OK) in packSrvReg() 272 if (err != SLP_OK) { in packSrvReg() 279 if ((err = slp_add_string(m, msgLen, type, &len)) != SLP_OK) in packSrvReg() [all …]
|
H A D | DAAdvert.c | 41 SLPError err = SLP_OK; in slp_unpackDAAdvert() 53 if ((err = slp_get_sht(reply, len, &off, &protoErrCode)) != SLP_OK) in slp_unpackDAAdvert() 57 if (*errCode != SLP_OK) { in slp_unpackDAAdvert() 58 return (SLP_OK); in slp_unpackDAAdvert() 64 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert() 67 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert() 75 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackDAAdvert() 83 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { in slp_unpackDAAdvert() 91 if ((err = slp_get_string(reply, len, &off, attrs)) != SLP_OK) { in slp_unpackDAAdvert() 99 if ((err = slp_get_string(reply, len, &off, spis)) != SLP_OK) { in slp_unpackDAAdvert() [all …]
|
H A D | SLPFindSrvs.c | 77 if ((err = slp_start_call(hSLP)) != SLP_OK) in SLPFindSrvs() 94 if (err == SLP_OK) in SLPFindSrvs() 97 if (err != SLP_OK) in SLPFindSrvs() 126 if (slp_get_sht(reply, len, &off, &protoErrCode) != SLP_OK) in slp_unpackSrvReply() 129 if ((errCode = slp_map_err(protoErrCode)) != SLP_OK) { in slp_unpackSrvReply() 134 if (slp_get_sht(reply, len, &off, &urlCount) != SLP_OK) in slp_unpackSrvReply() 148 if (slp_get_sht(reply, len, &off, &sLifetime) != SLP_OK) in slp_unpackSrvReply() 153 if (slp_get_string(reply, len, &off, &pcSrvURL) != SLP_OK) in slp_unpackSrvReply() 158 if (slp_get_byte(reply, len, &off, &nURLAuthBlocks) != SLP_OK) in slp_unpackSrvReply() 174 &abLen) != SLP_OK) { in slp_unpackSrvReply() [all …]
|
H A D | slp_auth.c | 139 SLPError err = SLP_OK; in slp_sign() 148 return (SLP_OK); in slp_sign() 171 if (!(err = get_security_backend()) == SLP_OK) { in slp_sign() 195 } else if (err != SLP_OK) { in slp_sign() 206 if (err != SLP_OK) { in slp_sign() 245 return (SLP_OK); in slp_verify() 250 return (SLP_OK); in slp_verify() 264 if (get_security_backend() != SLP_OK || n == 0) { in slp_verify() 278 if ((err = slp_get_sht(authblocks, len, &off, &bsd)) != SLP_OK) { in slp_verify() 284 if ((err = slp_get_sht(authblocks, len, &off, &ablen)) != SLP_OK) { in slp_verify() [all …]
|
H A D | SLPFindAttrs.c | 73 if ((err = slp_start_call(hSLP)) != SLP_OK) in SLPFindAttrs() 92 if (err == SLP_OK) in SLPFindAttrs() 96 if (err != SLP_OK) in SLPFindAttrs() 122 cb(hp, pcAttrList, SLP_OK, cookie); in slp_UnpackAttrReply() 133 if (slp_get_sht(reply, len, &off, &protoErrCode) != SLP_OK) in slp_UnpackAttrReply() 136 if ((errCode = slp_map_err(protoErrCode)) != SLP_OK) { in slp_UnpackAttrReply() 143 if (slp_get_string(reply, len, &off, &pcAttrList) != SLP_OK) in slp_UnpackAttrReply() 148 if (slp_get_byte(reply, len, &off, &auth_cnt) != SLP_OK) { in slp_UnpackAttrReply() 164 &abLen) != SLP_OK) { in slp_UnpackAttrReply() 208 cb(hp, attrs, SLP_OK, cookie); in unpackDAAdvert_attr() [all …]
|
H A D | SAAdvert.c | 40 SLPError err = SLP_OK; in slp_unpackSAAdvert() 56 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackSAAdvert() 64 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { in slp_unpackSAAdvert() 72 if ((err = slp_get_string(reply, len, &off, attrs)) != SLP_OK) { in slp_unpackSAAdvert() 78 if ((err = slp_get_byte(reply, len, &off, &auth_cnt)) != SLP_OK) { in slp_unpackSAAdvert() 86 &abLen)) != SLP_OK) { in slp_unpackSAAdvert() 91 return (SLP_OK); in slp_unpackSAAdvert()
|
H A D | SLPUtils.c | 74 != SLP_OK) { in SLPFindScopes() 80 return (SLP_OK); in SLPFindScopes() 84 if ((err = slp_find_das("", &reply)) != SLP_OK && in SLPFindScopes() 119 return (SLP_OK); in SLPFindScopes() 127 == SLP_OK) { in SLPFindScopes() 160 return (SLP_OK); in slp_administrative_scopes() 168 return (SLP_OK); in slp_administrative_scopes() 181 if (err != SLP_OK) { in saadvert_callback() 249 if ((err = slp_start_call(hp)) != SLP_OK) in SAAdvert_for_scopes() 254 if (err == SLP_OK) { in SAAdvert_for_scopes() [all …]
|
H A D | slp_utils.c | 111 return (SLP_OK); in slp_start_call() 133 case 0: return (SLP_OK); in slp_map_err() 303 return (SLP_OK); in slp_add_header() 374 if (slp_get_sht(msg, msglen, &off, &errcode) != SLP_OK) in slp_get_errcode() 391 return (SLP_OK); in slp_add_byte() 401 return (SLP_OK); in slp_add_sht() 414 return (SLP_OK); in slp_add_int32() 429 != SLP_OK) in slp_add_string() 434 return (SLP_OK); in slp_add_string() 449 return (SLP_OK); in slp_get_byte() [all …]
|
H A D | SLPFindSrvTypes.c | 53 if ((err = slp_start_call(hSLP)) != SLP_OK) in SLPFindSrvTypes() 59 if (err == SLP_OK) in SLPFindSrvTypes() 64 if (err != SLP_OK) in SLPFindSrvTypes() 88 cb(hp, pcSrvTypes, SLP_OK, cookie); in UnpackSrvTypesReply() 99 if (slp_get_sht(reply, len, &off, &protoErrCode) != SLP_OK) in UnpackSrvTypesReply() 102 if ((errCode = slp_map_err(protoErrCode)) != SLP_OK) { in UnpackSrvTypesReply() 107 if (slp_get_string(reply, len, &off, &pcSrvTypes) != SLP_OK) in UnpackSrvTypesReply() 201 if (err == SLP_OK) { in slp_packSrvTypeRqst() 202 return (SLP_OK); in slp_packSrvTypeRqst()
|
H A D | slp_net.c | 153 if (start_tcp_thr() != SLP_OK) in slp_uc_tcp_send() 204 if (make_header(hp, header, scopes) != SLP_OK) in slp_uc_udp_send() 345 if (make_header(hp, header, scopes) != SLP_OK) in slp_mc_send() 349 if (make_mc_target(hp, sin, header, &pfd, &nfds, &bcifs) != SLP_OK) in slp_mc_send() 373 if (mc_sendmsg(pfd, msg, &bcifs) != SLP_OK) { in slp_mc_send() 414 return (SLP_OK); in start_tcp_thr() 433 return (SLP_OK); in start_tcp_thr() 495 if (make_header(hp, header, scopes) != SLP_OK) { in tcp_thread() 537 if ((slp_tcp_read(tcp_sockfd, &reply)) == SLP_OK) { in tcp_thread() 623 return (SLP_OK); in slp_tcp_read() [all …]
|
H A D | slp_ua_common.c | 62 if ((err = slp_new_target_list(hp, scopes, &targets)) != SLP_OK) in slp_ua_common() 64 if ((err = check_message_fit(hp, targets)) != SLP_OK) { in slp_ua_common() 84 if (err != SLP_OK) in slp_ua_common() 111 return (SLP_OK); in slp_ua_common() 165 return ((void *)SLP_OK); in consumer() 242 return (SLP_OK); /* no mc targets to worry about */ in check_message_fit() 252 return (SLP_OK); in check_message_fit()
|
H A D | SLPGetRefreshInterval.c | 53 if ((err = SLPOpen("en", SLP_FALSE, (void **)&hp)) != SLP_OK) { in SLPGetRefreshInterval() 68 &msg, "en") != SLP_OK) { in SLPGetRefreshInterval() 72 if (slp_send2slpd(msg, &reply) != SLP_OK) { in SLPGetRefreshInterval() 98 if (err != SLP_OK) { in refresh_interval_cb()
|
H A D | slp_ipc.c | 71 return (SLP_OK); in open_ipc() 128 return (SLP_OK); in open_ipc() 167 if ((err = open_ipc()) != SLP_OK) { in slp_send2slpd_iov() 214 if (open_ipc() == SLP_OK) { in slp_send2slpd_iov() 232 if (err == SLP_OK && slp_get_errcode(*reply) != 0) { in slp_send2slpd_iov()
|
H A D | SLPParseSrvURL.c | 86 if (parseType(r, type) != SLP_OK) in SLPParseSrvURL() 107 return (SLP_OK); in SLPParseSrvURL() 117 return (SLP_OK); in SLPParseSrvURL() 135 return (SLP_OK); in SLPParseSrvURL() 197 return (SLP_OK); in parseType()
|
H A D | slp_net_utils.c | 87 if ((err = get_all_interfaces(ifinfo)) != SLP_OK) { in slp_broadcast_addrs() 134 return (SLP_OK); in slp_broadcast_addrs() 153 if (get_all_interfaces(ifinfo) != SLP_OK) { in slp_on_subnet() 195 if (get_all_interfaces(ifinfo) != SLP_OK) { in slp_on_localhost() 230 SLPError err = SLP_OK; in get_all_interfaces() 342 return (SLP_OK); in slp_surl2sin()
|
H A D | slp_targets.c | 188 return (SLP_OK); in slp_new_target_list() 208 if ((err = slp_find_das(query, &reply)) != SLP_OK && in slp_new_target_list() 245 return (SLP_OK); in slp_new_target_list() 476 if (errCode != SLP_OK) in collect_DAs() 486 if (SLPParseSrvURL(url, &surl) != SLP_OK) { in collect_DAs() 491 if (slp_surl2sin(surl, sin) != SLP_OK) { in collect_DAs()
|
H A D | slp_da_cache.c | 106 if (start_cache_thr() != SLP_OK) { in slp_find_das_cached() 153 if (start_cache_thr() != SLP_OK) { in slp_put_das_cached() 218 SLPError err = SLP_OK; in start_cache_thr()
|
H A D | slp_queue.c | 79 *err = SLP_OK; in slp_new_queue() 138 return (SLP_OK); in slp_enqueue() 163 return (SLP_OK); in slp_enqueue_at_head()
|
H A D | SLPOpen.c | 93 return (SLP_OK); in SLPOpen() 132 if (slp_enqueue_at_head(hp->q, NULL) != SLP_OK) { in SLPClose()
|
H A D | slp.h | 90 SLP_OK = 0, enumerator
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr_discovery.c | 247 if (errin != SLP_OK) { in aggregate_attrs() 258 if ((err = SLPUnescape(tag, &unesc_tag, SLP_TRUE)) != SLP_OK) { in aggregate_attrs() 269 != SLP_OK) { in aggregate_attrs() 310 if (errin != SLP_OK) { in foreach_server() 320 if ((err = SLPParseSrvURL(url, &surl)) != SLP_OK) { in foreach_server() 336 if (err != SLP_OK) { in foreach_server() 367 if ((err = SLPUnescape(context, &unesc_domain, SLP_FALSE)) != SLP_OK) { in update_config() 379 if ((err = SLPOpen(getlocale(), SLP_FALSE, &persrv_h)) != SLP_OK) { in update_config() 404 if ((err = SLPOpen(getlocale(), SLP_FALSE, &h)) != SLP_OK) { in update_config() 414 if (err != SLP_OK) { in update_config() [all …]
|