/titanic_41/usr/src/lib/libsasl/lib/ |
H A D | config.c | 86 int sasl_config_init(_sasl_global_context_t *gctx, const char *filename) argument 100 gctx->nconfiglist=0; 110 result = _sasl_strdup(filename, &gctx->config_path, NULL); 149 if (gctx->nconfiglist == alloced) { 155 gctx->configlist=sasl_REALLOC((char *)gctx->configlist, 157 if (gctx->configlist==NULL) { 172 &(((struct configlist *)(gctx->configlist)) 173 [gctx->nconfiglist].key), 185 &(((struct configlist *)(gctx->configlist)) 186 [gctx->nconfiglist].value), [all …]
|
H A D | client.c | 86 static int init_mechlist(_sasl_global_context_t *gctx) argument 88 cmech_list_t *cmechlist = gctx->cmechlist; 99 _sasl_alloc_utils(gctx, NULL, &gctx->client_global_callbacks); 113 static int client_done(_sasl_global_context_t *gctx) { argument 114 cmech_list_t *cmechlist = gctx->cmechlist; 123 if(!gctx->sasl_client_active) 128 gctx->sasl_client_active--; 130 if(gctx->sasl_client_active) { 170 gctx->cmechlist = NULL; 171 p = gctx->cplug_path_info; [all …]
|
H A D | server.c | 94 int _is_sasl_server_active(_sasl_global_context_t *gctx) in _is_sasl_server_active() argument 96 return gctx->sasl_server_active; in _is_sasl_server_active() 162 _sasl_global_context_t *gctx = in sasl_setpass() local 163 (conn == NULL) ? _sasl_gbl_ctx() : conn->gctx; in sasl_setpass() 164 mech_list_t *mechlist = gctx == NULL ? NULL : gctx->mechlist; in sasl_setpass() 166 if (!gctx->sasl_server_active || !mechlist) return SASL_NOTINIT; in sasl_setpass() 248 _sasl_global_context_t *gctx = pconn->gctx; in server_dispose_mech_contexts() local 265 _sasl_global_context_t *gctx = pconn->gctx; in server_dispose() local 304 static int init_mechlist(_sasl_global_context_t *gctx) argument 306 mech_list_t *mechlist = gctx->mechlist; [all …]
|
H A D | saslint.h | 128 struct _sasl_global_context_s *gctx; member 152 typedef int add_plugin_t(struct _sasl_global_context_s *gctx, 213 struct _sasl_global_context_s *gctx; member 359 (struct _sasl_global_context_s *gctx); 373 (struct _sasl_global_context_s *gctx); 452 extern int _is_sasl_server_active(_sasl_global_context_t *gctx); 461 #define sasl_ALLOC(__size__) (gctx->sasl_allocation_utils.malloc((__size__))) 463 (gctx->sasl_allocation_utils.calloc((__nelem__), (__size__))) 465 (gctx->sasl_allocation_utils.realloc((__ptr__), (__size__))) 466 #define sasl_FREE(__ptr__) (gctx->sasl_allocation_utils.free((__ptr__))) [all …]
|
H A D | common.c | 198 _sasl_global_context_t *gctx = _sasl_gbl_ctx(); in sasl_set_mutex() local 200 gctx->sasl_mutex_utils.alloc=n; in sasl_set_mutex() 201 gctx->sasl_mutex_utils.lock=l; in sasl_set_mutex() 202 gctx->sasl_mutex_utils.unlock=u; in sasl_set_mutex() 203 gctx->sasl_mutex_utils.free=d; in sasl_set_mutex() 214 int __sasl_strdup(const _sasl_global_context_t *gctx, const char *in, in __sasl_strdup() argument 230 int __sasl_add_string(const _sasl_global_context_t *gctx, char **out, in __sasl_add_string() argument 339 result = _iovec_to_buf(conn->gctx, invec, numiov, &conn->encode_buf); in sasl_encodev() 367 const _sasl_global_context_t *gctx; in sasl_decode() local 375 gctx = conn->gctx; in sasl_decode() [all …]
|
H A D | dlopen.c | 238 static int _sasl_plugin_load(_sasl_global_context_t *gctx, in _sasl_plugin_load() argument 241 int (*add_plugin)(_sasl_global_context_t *gctx, in _sasl_plugin_load() argument 255 result = add_plugin(gctx, plugin, entry_point); in _sasl_plugin_load() 261 __sasl_log(gctx, gctx->server_global_callbacks.callbacks == NULL ? in _sasl_plugin_load() 262 gctx->client_global_callbacks.callbacks : in _sasl_plugin_load() 263 gctx->server_global_callbacks.callbacks, in _sasl_plugin_load() 382 int _sasl_get_plugin(_sasl_global_context_t *gctx, in _sasl_get_plugin() argument 413 __sasl_log(gctx, gctx->server_global_callbacks.callbacks == NULL ? in _sasl_get_plugin() 414 gctx->client_global_callbacks.callbacks : in _sasl_get_plugin() 415 gctx->server_global_callbacks.callbacks, in _sasl_get_plugin() [all …]
|
H A D | canonusr.c | 149 for(ptr = conn->gctx->canonuser_head; ptr; ptr = ptr->next) { 236 void _sasl_canonuser_free(_sasl_global_context_t *gctx) argument 239 const sasl_utils_t *sasl_global_utils = gctx->sasl_canonusr_global_utils; 241 for(ptr = (canonuser_plug_list_t *)gctx->canonuser_head; 251 gctx->canonuser_head = NULL; 290 _sasl_global_context_t *gctx = ctx == NULL ? _sasl_gbl_ctx() : ctx; local 295 for (l = gctx->canonuser_head; l != NULL; l = l->next) { 300 sasl_global_utils = gctx->sasl_canonusr_global_utils; 314 __sasl_log(gctx, gctx->server_global_callbacks.callbacks == NULL ? 315 gctx->client_global_callbacks.callbacks : [all …]
|
H A D | auxprop.c | 857 _sasl_global_context_t *gctx = ctx == NULL ? _sasl_gbl_ctx() : ctx; in _sasl_auxprop_add_plugin() local 862 auxprop_head = gctx->auxprop_head; in _sasl_auxprop_add_plugin() 863 sasl_global_utils = gctx->sasl_server_global_utils; in _sasl_auxprop_add_plugin() 878 __sasl_log(gctx, gctx->server_global_callbacks.callbacks, in _sasl_auxprop_add_plugin() 892 __sasl_log(gctx, gctx->server_global_callbacks.callbacks, in _sasl_auxprop_add_plugin() 911 gctx->auxprop_head = new_item; in _sasl_auxprop_add_plugin() 920 void _sasl_auxprop_free(_sasl_global_context_t *gctx) argument 927 const sasl_utils_t *sasl_global_utils = gctx->sasl_server_global_utils; 929 for(ptr = (auxprop_plug_list_t *)gctx->auxprop_head; ptr; ptr = ptr_next) { 945 gctx->auxprop_head = NULL; [all …]
|
H A D | seterror.c | 131 _sasl_global_context_t *gctx; in sasl_seterror() local 163 gctx = conn->gctx; in sasl_seterror()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | lucid_context.c | 59 krb5_gss_ctx_id_rec * gctx, 193 krb5_gss_ctx_id_rec * gctx, in make_external_lucid_ctx_v1() argument 210 lctx->initiate = gctx->initiate ? 1 : 0; in make_external_lucid_ctx_v1() 211 lctx->endtime = gctx->krb_times.endtime; in make_external_lucid_ctx_v1() 212 lctx->send_seq = gctx->seq_send; in make_external_lucid_ctx_v1() 213 lctx->recv_seq = gctx->seq_recv; in make_external_lucid_ctx_v1() 214 lctx->protocol = gctx->proto; in make_external_lucid_ctx_v1() 217 if (gctx->proto == 0) { in make_external_lucid_ctx_v1() 218 lctx->rfc1964_kd.sign_alg = gctx->signalg; in make_external_lucid_ctx_v1() 219 lctx->rfc1964_kd.seal_alg = gctx->sealalg; in make_external_lucid_ctx_v1() [all …]
|
/titanic_41/usr/src/cmd/nscd/ |
H A D | nscd_getentctx.c | 656 nscd_getent_context_t *gctx, *c; in reclaim_getent_ctx() local 673 gctx = ctx->ptr; in reclaim_getent_ctx() 679 if (gctx->pid != -1 && process_exited(gctx->pid)) { in reclaim_getent_ctx() 687 gctx->pid, gctx, gctx->dbi, in reclaim_getent_ctx() 688 gctx->cookie_num, gctx->seq_num); in reclaim_getent_ctx() 694 if (gctx == c) in reclaim_getent_ctx() 698 last->next_to_reclaim = gctx; in reclaim_getent_ctx() 699 last = gctx; in reclaim_getent_ctx() 702 first = gctx; in reclaim_getent_ctx() 703 last = gctx; in reclaim_getent_ctx() [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | sasl.c | 94 static void *gctx; /* intentially not freed - avoid libsasl re-inits */ variable 105 if ((gctx = (void *)sasl_create_context()) != NULL) { in nsldapi_sasl_init() 106 saslrc = _sasl_client_init(gctx, client_callbacks); in nsldapi_sasl_init() 599 if (gctx == NULL) { in nsldapi_sasl_open() 605 saslrc = _sasl_client_new(gctx, "ldap", host, in nsldapi_sasl_open()
|
/titanic_41/usr/src/uts/common/crypto/core/ |
H A D | kcf_sched.c | 819 crypto_ctx_t *gctx = &kcf_ctx->kc_glbl_ctx; in kcf_free_context() local 828 if (gctx->cc_provider_private != NULL) { in kcf_free_context() 839 (void) KCF_PROV_FREE_CONTEXT(pd, gctx); in kcf_free_context() 850 if ((gctx->cc_flags & CRYPTO_INIT_OPSTATE) && in kcf_free_context()
|