/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | byteorder.c | 40 byteorder_destroy(struct byteorder_ctx *ctx) argument 42 if (ctx != NULL) 43 (void) free((char *)ctx); 47 byteorder_banner(struct byteorder_ctx *ctx, FILE *filep) argument 49 if ((! ctx->initialized) || (filep == NULL)) 52 if (ctx->Bcvt) 109 checksum(struct byteorder_ctx *ctx, int *b, int size) argument 113 if (! ctx->initialized) 125 if (!ctx->Bcvt) { 147 * ctx i 158 normspcl(struct byteorder_ctx *ctx, struct s_spcl *sp, int *cs, int css, int magic) argument 266 normacls(struct byteorder_ctx *ctx, ufs_acl_t *acl, int n) argument [all...] |
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 656 MD5_CTX ctx; local 658 MD5Init(&ctx); 668 MD5Update(&ctx, buf, amtread); 672 MD5Final(hash, &ctx);
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | device.c | 310 LibHalContext *ctx = NULL; local 322 if ((ctx = attach_to_hald()) == NULL) 325 if ((udi = libhal_manager_find_device_string_match(ctx, 331 if ((p = libhal_device_get_property_string(ctx, udi[i], 343 detach_from_hald(ctx, HAL_INITIALIZED); 355 LibHalContext *ctx = NULL; local 375 if ((ctx = attach_to_hald()) == NULL) 378 if ((udi = libhal_manager_find_device_string_match(ctx, 388 if ((path = libhal_device_get_property_string(ctx, 400 detach_from_hald(ctx, HAL_INITIALIZE [all...] |
H A D | main.c | 114 LibHalContext *ctx = NULL; local 128 if ((ctx = libhal_ctx_new()) == NULL) 133 if (!libhal_ctx_set_dbus_connection(ctx, con)) 138 if (!libhal_ctx_init(ctx, &error)) { 143 return (ctx); 147 detach_from_hald(ctx, state); 153 detach_from_hald(LibHalContext *ctx, hal_state_t state) argument 156 DBusConnection *con = libhal_ctx_get_dbus_connection(ctx); 162 if (libhal_ctx_shutdown(ctx, &error) == FALSE) 167 (void) libhal_ctx_free(ctx); 186 LibHalContext *ctx; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | CryptoAlg.c | 94 AlgContext *ctx; local 122 ctx = mDNSPlatformMemAllocate(sizeof(AlgContext)); 123 if (!ctx) return mDNSNULL; 124 // Create expects ctx->alg to be initialized 125 ctx->alg = alg; 126 err = func->Create(ctx); 129 ctx->type = type; 130 return ctx; 132 mDNSPlatformMemFree(ctx); 137 mDNSexport mStatus AlgDestroy(AlgContext *ctx) argument 162 AlgLength(AlgContext *ctx) argument 186 AlgAdd(AlgContext *ctx, const void *data, mDNSu32 len) argument 210 AlgVerify(AlgContext *ctx, mDNSu8 *key, mDNSu32 keylen, mDNSu8 *signature, mDNSu32 siglen) argument 234 AlgEncode(AlgContext *ctx) argument 258 AlgFinal(AlgContext *ctx, void *data, mDNSu32 len) argument [all...] |
H A D | DNSCommon.c | 271 AlgContext *ctx; local 275 ctx = AlgCreate(ENC_ALG, encAlg); 276 if (!ctx) 281 AlgAdd(ctx, data, len); 282 outputBuffer = AlgEncode(ctx); 291 AlgDestroy(ctx); 1167 AlgContext *ctx; local 1188 ctx = AlgCreate(DIGEST_ALG, nsec3->alg); 1189 if (!ctx) 1195 AlgAdd(ctx, diges [all...] |
H A D | dnssec.h | 118 AlgContext *ctx; member in struct:DNSSECVerifier_struct
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/hmac/ |
H A D | hmac.c | 59 SHA1_CTX ctx; local 67 HMACInit(&ctx, hmac_key, ka->ka_len); 73 HMACUpdate(&ctx, buf, i); 83 HMACFinal(&ctx, hmac_key, ka->ka_len, digest);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keygen/ |
H A D | keygen.c | 365 SHA1_CTX ctx; local 450 HMACInit(&ctx, mas_key, WANBOOT_HMAC_KEY_SIZE); 451 HMACUpdate(&ctx, (uint8_t *)cid_buf, strlen(cid_buf)); 452 HMACFinal(&ctx, mas_key, WANBOOT_HMAC_KEY_SIZE, cli_key);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa.c | 1769 wpa_supplicant_rx_eapol(void *ctx, unsigned char *src_addr, argument 1772 struct wpa_supplicant *wpa_s = ctx;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ldap.c | 63 struct ctx { struct
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | ns_fnmount.c | 436 FN_ctx_t *ctx; local 443 ctx = fn_ctx_handle_from_ref(ref, XFN2(0) status); 444 if (ctx == NULL) { 451 bindings = fn_ctx_list_bindings(ctx, empty_cname, status); 452 fn_ctx_handle_destroy(ctx); 576 FN_ctx_t *ctx; local 579 ctx = fn_ctx_handle_from_ref(ref, XFN2(0) status); 580 if (ctx == NULL) { 584 attr = fn_attr_get(ctx, empty_cname, &attr_exported, XFN2(1) status); 585 fn_ctx_handle_destroy(ctx); 843 equiv_name(FN_ctx_t *ctx, const char *cname, FN_status_t *status) argument [all...] |
H A D | ns_fnreaddir.c | 83 list_ctx_and_or_nns(FN_ctx_t *ctx, FN_ctx_t *prefix_ctx, struct dir_entry **, 92 need_nns_only(FN_ctx_t *ctx, FN_ctx_t *prefix_ctx, FN_status_t *); 184 FN_ctx_t *ctx; local 205 * Contents of initial ctx is user-relative 225 ctx = lookup_ctx(init_ctx, name, TRUE, status); 226 if (ctx != NULL) { 227 *error = list_ctx_and_or_nns(ctx, init_ctx, 229 fn_ctx_handle_destroy(ctx); 236 *error = get_contexts(name, &ctx, &prefix_ctx, 239 *error = list_ctx_and_or_nns(ctx, prefix_ct 321 list_ctx_and_or_nns(FN_ctx_t *ctx, FN_ctx_t *prefix_ctx, struct dir_entry **entries_p, FN_status_t *status) argument 351 need_nns_only(FN_ctx_t *ctx, FN_ctx_t *prefix_ctx, FN_status_t *status) argument 378 need_ctx_and_nns(FN_ctx_t *ctx, FN_status_t *status) argument 394 list_ctx(FN_ctx_t *ctx, struct dir_entry **entries_p, FN_status_t *status) argument 424 list_ctx_aux(FN_ctx_t *ctx, FN_compound_name_t *name, const FN_attrset_t *syntax, struct dir_entry **entries_p, FN_status_t *status) argument 604 lookup_ctx(FN_ctx_t *ctx, const FN_composite_name_t *name, bool_t log, FN_status_t *status) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/mount/ |
H A D | mount.c | 66 /* This needs to know ctx->ct_dev_fd, etc. */ 170 struct smb_ctx *ctx = NULL; local 227 error = smb_ctx_alloc(&ctx); 237 error = smb_ctx_parseunc(ctx, argv[argc - 2], 242 error = smb_ctx_readrc(ctx); 271 ret = setsubopt(ctx, &mdata, sopt); 303 ctx->ct_fullserver, ctx->ct_origshare); 337 ctx->ct_ssn.ssn_owner = SMBM_ANY_OWNER; 339 ctx 409 setsubopt(smb_ctx_t *ctx, struct smbfs_args *mdatap, char *subopt) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbiod/ |
H A D | smbiod.c | 269 smb_ctx_t *ctx; local 279 err = smb_ctx_alloc(&ctx); 282 bcopy(clnt_ssn, &ctx->ct_iod_ssn, sizeof (ctx->ct_iod_ssn)); 298 if ((err = smb_ctx_gethandle(ctx)) != 0) 300 if (ioctl(ctx->ct_dev_fd, SMBIOC_SSN_CREATE, &ctx->ct_ssn) < 0) { 311 err = smb_iod_connect(ctx); 316 err = thr_create(NULL, 0, iod_work, ctx, THR_DETACHED, &tid); 322 ctx 342 smb_ctx_t *ctx = arg; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | lookup.c | 67 struct nb_ctx *ctx; local 74 error = nb_ctx_create(&ctx); 80 if (nb_ctx_readrcsection(NULL, ctx, "default", 0) != 0) 84 if ((ctx->nb_flags & NBCF_NS_ENABLE) == 0) { 92 nb_ctx_setns(ctx, optarg); 101 if (nb_ctx_resolve(ctx) != 0) 104 error = nbns_resolvename(hostname, ctx, &sap); 110 inet_ntoa(ctx->nb_lastns.sin_addr));
|
H A D | print.c | 74 struct smb_ctx *ctx = NULL; local 83 error = smb_ctx_alloc(&ctx); 87 error = smb_ctx_scan_argv(ctx, argc-1, argv, 92 error = smb_ctx_readrc(ctx); 99 error = smb_ctx_opt(ctx, opt, optarg); 122 error = smb_ctx_resolve(ctx); 131 error = smb_ctx_get_ssn(ctx); 133 int err2 = smb_get_authentication(ctx); 139 error, ctx->ct_fullserver); 143 error = smb_ctx_get_tree(ctx); 186 print_file(smb_ctx_t *ctx, char *title, int file) argument [all...] |
H A D | status.c | 67 struct nb_ctx *ctx; local 76 error = nb_ctx_create(&ctx); 82 if (nb_ctx_readrcsection(NULL, ctx, "default", 0) != 0) 103 if ((ctx->nb_flags & NBCF_NS_ENABLE) == 0) { 110 error = nbns_getnodestatus(ctx, &ina, servername, workgroupname);
|
H A D | view.c | 69 struct smb_ctx *ctx; local 75 error = smb_ctx_alloc(&ctx); 79 error = smb_ctx_scan_argv(ctx, argc, argv, 84 error = smb_ctx_readrc(ctx); 91 error = smb_ctx_opt(ctx, opt, optarg); 96 smb_ctx_setshare(ctx, "IPC$", USE_IPC); 102 error = smb_ctx_resolve(ctx); 112 error = smb_ctx_get_ssn(ctx); 114 err2 = smb_get_authentication(ctx); 120 error, ctx 162 enum_shares(smb_ctx_t *ctx) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/test/ |
H A D | srvenum.c | 113 struct smb_ctx *ctx = NULL; local 152 error = smb_ctx_alloc(&ctx); 160 * (in the ctx handle). 162 smb_ctx_setfullserver(ctx, server); 163 smb_ctx_setshare(ctx, "IPC$", USE_IPC); 165 smb_ctx_setdomain(ctx, dom, B_TRUE); 167 smb_ctx_setuser(ctx, usr, B_TRUE); 169 smb_ctx_setpassword(ctx, pw, NULL); 177 error = smb_ctx_readrc(ctx); 188 error = smb_ctx_resolve(ctx); 404 pipetest(struct smb_ctx *ctx) argument [all...] |
H A D | srvinfo.c | 106 struct smb_ctx *ctx = NULL; local 145 error = smb_ctx_alloc(&ctx); 153 * (in the ctx handle). 155 smb_ctx_setfullserver(ctx, server); 156 smb_ctx_setshare(ctx, "IPC$", USE_IPC); 158 smb_ctx_setdomain(ctx, dom, B_TRUE); 160 smb_ctx_setuser(ctx, usr, B_TRUE); 162 smb_ctx_setpassword(ctx, pw, NULL); 170 error = smb_ctx_readrc(ctx); 181 error = smb_ctx_resolve(ctx); 383 pipetest(struct smb_ctx *ctx) argument [all...] |
H A D | tconn.c | 60 struct smb_ctx *ctx = NULL; local 105 error = smb_ctx_alloc(&ctx); 113 * (in the ctx handle). 115 smb_ctx_setfullserver(ctx, server); 116 smb_ctx_setshare(ctx, "IPC$", USE_IPC); 118 smb_ctx_setdomain(ctx, dom, B_TRUE); 120 smb_ctx_setuser(ctx, usr, B_TRUE); 122 smb_ctx_setpassword(ctx, pw, NULL); 136 smb_ctx_setauthflags(ctx, aflags); 143 error = smb_ctx_resolve(ctx); [all...] |
/illumos-gate/usr/src/cmd/gss/gssd/ |
H A D | gssd_proc.c | 60 gss_ctx_id_t ctx; member in struct:gssd_ctx_slot 192 gssd_alloc_slot(gss_ctx_id_t ctx) argument 210 if (lru->ctx != GSS_C_NO_CONTEXT) 212 &lru->ctx, NULL); 238 lru->ctx = ctx; 330 *context_handle = slot->ctx; 1024 if (slot == NULL || slot->ctx != context_handle) { 1026 * Note that gssd_alloc_slot() will delete ctx's as long 1278 if (slot == NULL || slot->ctx ! [all...] |
/illumos-gate/usr/src/cmd/hal/addons/acpi/ |
H A D | addon-acpi.c | 35 LibHalContext *ctx = NULL; local 44 if ((ctx = libhal_ctx_init_direct(&error)) == NULL) { 49 if (!libhal_device_addon_is_ready(ctx, getenv("UDI"), &error)) { 53 g_timeout_add(BATTERY_POLL_TIMER, update_devices, ctx);
|
/illumos-gate/usr/src/cmd/hal/addons/cpufreq/ |
H A D | addon-cpufreq.c | 1343 LibHalContext *ctx = NULL; local 1362 if ((ctx = libhal_ctx_init_direct (&error)) == NULL) { 1367 if (!libhal_device_addon_is_ready (ctx, getenv ("UDI"), &error)) { 1378 if (!libhal_device_claim_interface (ctx, 1388 conn = libhal_ctx_get_dbus_connection (ctx); 1393 if (!libhal_device_add_capability (ctx,
|