HomeSort by: relevance | last modified time | path
    Searched defs:cred (Results 1 - 25 of 206) sorted by relevancy

1 2 3 4 5 6 7 8 9

  /src/crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/
release_cred.c 43 ntlm_cred cred; local
51 cred = (ntlm_cred)*cred_handle;
54 if (cred->username)
55 free(cred->username);
56 if (cred->domain)
57 free(cred->domain);
58 if (cred->key.data) {
59 memset(cred->key.data, 0, cred->key.length);
60 free(cred->key.data)
    [all...]
delete_sec_context.c 46 gss_cred_id_t cred = (gss_cred_id_t)ctx->client; local
53 _gss_ntlm_release_cred(NULL, &cred);
acquire_cred.c 77 ntlm_cred cred; local
79 *min_stat = _gss_ntlm_get_user_cred(name, &cred);
82 cred->usage = cred_usage;
84 *output_cred_handle = (gss_cred_id_t)cred;
  /src/lib/libc/net/
getpeereid.c 47 struct unpcbid cred; local
59 len = sizeof(cred);
60 if (getsockopt(s, SOL_LOCAL, LOCAL_PEEREID, &cred, &len) == -1)
64 *euid = cred.unp_euid;
66 *egid = cred.unp_egid;
  /src/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/
release_cred.c 44 gsskrb5_cred cred; local
52 cred = (gsskrb5_cred)*cred_handle;
57 HEIMDAL_MUTEX_lock(&cred->cred_id_mutex);
59 if (cred->principal != NULL)
60 krb5_free_principal(context, cred->principal);
61 if (cred->keytab != NULL)
62 krb5_kt_close(context, cred->keytab);
63 if (cred->ccache != NULL) {
64 if (cred->cred_flags & GSS_CF_DESTROY_CRED_ON_RELEASE)
65 krb5_cc_destroy(context, cred->ccache)
    [all...]
inquire_cred_by_oid.c 44 gsskrb5_cred cred = (gsskrb5_cred)cred_handle; local
56 HEIMDAL_MUTEX_lock(&cred->cred_id_mutex);
58 if (cred->ccache == NULL) {
59 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
64 ret = krb5_cc_get_full_name(context, cred->ccache, &str);
65 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
add_cred.c 53 gsskrb5_cred cred, handle; local
57 cred = (gsskrb5_cred)input_cred_handle;
60 if (cred == NULL && output_cred_handle == NULL) {
73 if (cred == NULL) {
96 HEIMDAL_MUTEX_lock(&cred->cred_id_mutex);
99 if (cred->usage != cred_usage && cred->usage != GSS_C_BOTH) {
100 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
108 cred->principal) != FALSE) {
109 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex)
    [all...]
store_cred.c 50 gsskrb5_cred cred; local
68 cred = (gsskrb5_cred)input_cred_handle;
69 if (cred == NULL)
74 HEIMDAL_MUTEX_lock(&cred->cred_id_mutex);
75 if (cred->usage != cred_usage && cred->usage != GSS_C_BOTH) {
76 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
81 ret = krb5_cc_get_lifetime(context, cred->ccache, &exp_new);
83 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
88 if (cred->principal == NULL)
    [all...]
inquire_cred.c 50 gsskrb5_cred cred = (gsskrb5_cred)cred_handle; local
174 HEIMDAL_MUTEX_lock(&cred->cred_id_mutex);
177 if (cred->principal != NULL) {
178 gss_name_t name = (gss_name_t)cred->principal;
182 } else if (cred->usage == GSS_C_ACCEPT) {
203 cred->endtime,
209 *cred_usage = cred->usage;
215 &cred->mechanisms->elements[0],
223 HEIMDAL_MUTEX_unlock(&cred->cred_id_mutex);
  /src/crypto/external/bsd/heimdal/dist/lib/gssapi/mech/
gss_release_cred.c 43 * gss_cred_id_t cred = GSS_C_NO_CREDENTIAL;
44 * major = gss_release_cred(&minor, &cred);
58 struct _gss_cred *cred = (struct _gss_cred *) *cred_handle; local
64 while (HEIM_SLIST_FIRST(&cred->gc_mc)) {
65 mc = HEIM_SLIST_FIRST(&cred->gc_mc);
66 HEIM_SLIST_REMOVE_HEAD(&cred->gc_mc, gmc_link);
70 free(cred);
gss_set_cred_option.c 43 struct _gss_cred *cred = (struct _gss_cred *) *cred_handle; local
52 if (cred == NULL) {
55 cred = malloc(sizeof(*cred));
56 if (cred == NULL)
59 HEIM_SLIST_INIT(&cred->gc_mc);
68 *cred_handle = (gss_cred_id_t)cred;
86 HEIM_SLIST_INSERT_HEAD(&cred->gc_mc, mc, gmc_link);
88 *cred_handle = (gss_cred_id_t)cred;
96 HEIM_SLIST_FOREACH(mc, &cred->gc_mc, gmc_link)
    [all...]
gss_store_cred.c 48 struct _gss_cred *cred = (struct _gss_cred *) input_cred_handle; local
61 if (cred == NULL)
70 HEIM_SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
gss_inquire_cred_by_mech.c 64 struct _gss_cred *cred = (struct _gss_cred *) cred_handle; local
65 HEIM_SLIST_FOREACH(mcp, &cred->gc_mc, gmc_link)
gss_inquire_cred_by_oid.c 43 struct _gss_cred *cred = (struct _gss_cred *) cred_handle; local
52 if (cred == NULL)
55 HEIM_SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
gss_acquire_cred.c 48 struct _gss_cred *cred; local
88 cred = malloc(sizeof(struct _gss_cred));
89 if (!cred) {
95 HEIM_SLIST_INIT(&cred->gc_mc);
150 HEIM_SLIST_INSERT_HEAD(&cred->gc_mc, mc, gmc_link);
157 if (!HEIM_SLIST_FIRST(&cred->gc_mc)) {
158 free(cred);
167 *output_cred_handle = (gss_cred_id_t) cred;
gss_acquire_cred_ext.c 131 struct _gss_cred *cred; local
155 cred = calloc(1, sizeof(*cred));
156 if (cred == NULL) {
161 HEIM_SLIST_INIT(&cred->gc_mc);
188 HEIM_SLIST_INSERT_HEAD(&cred->gc_mc, mc, gmc_link);
195 if (!HEIM_SLIST_FIRST(&cred->gc_mc)) {
196 free(cred);
202 *output_cred_handle = (gss_cred_id_t) cred;
gss_add_cred_with_password.c 49 struct _gss_cred *cred = (struct _gss_cred *) input_cred_handle; local
80 if (cred) {
81 HEIM_SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
gss_cred.c 43 * cred-len: int32
44 * cred-data char * (not alligned)
52 struct _gss_cred *cred = (struct _gss_cred *)cred_handle; local
62 if (cred == NULL) {
67 HEIM_SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
80 HEIM_SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
119 struct _gss_cred *cred; local
137 cred = calloc(1, sizeof(struct _gss_cred));
138 if (cred == NULL) {
143 HEIM_SLIST_INIT(&cred->gc_mc)
    [all...]
  /src/crypto/external/bsd/openssh/dist/
getpeereid.c 37 struct ucred cred; local
38 socklen_t len = sizeof(cred);
40 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cred, &len) < 0)
42 *euid = cred.uid;
43 *gid = cred.gid;
  /src/external/bsd/openldap/dist/libraries/libldap/
sbind.c 71 struct berval cred; local
79 cred.bv_val = (char *) passwd;
80 cred.bv_len = strlen( passwd );
82 cred.bv_val = "";
83 cred.bv_len = 0;
86 rc = ldap_sasl_bind( ld, dn, LDAP_SASL_SIMPLE, &cred,
106 struct berval cred; local
111 cred.bv_val = (char *) passwd;
112 cred.bv_len = strlen( passwd );
114 cred.bv_val = ""
    [all...]
  /src/crypto/external/bsd/heimdal/dist/kcm/
acquire.c 48 krb5_creds cred; local
56 memset(&cred, 0, sizeof(cred));
105 &cred,
114 &cred,
133 ret = kcm_ccache_store_cred_internal(context, ccache, &cred, 0, credp);
139 krb5_free_cred_contents(context, &cred);
  /src/crypto/external/bsd/heimdal/dist/lib/krb5/
mk_req.c 48 krb5_creds this_cred, *cred; local
67 ret = krb5_get_credentials (context, 0, ccache, &this_cred, &cred);
76 cred,
78 krb5_free_creds(context, cred);
  /src/sys/fs/sysvbfs/
bfs_sysvbfs.c 47 kauth_cred_t cred; member in struct:bc_io_ops
72 bio->cred = NOCRED; /* sysvbfs layer check cred. */
  /src/sys/rump/librump/rumpkern/
accessors.c 105 kauth_cred_t cred; local
108 cred = kauth_cred_alloc();
109 kauth_cred_setuid(cred, uid);
110 kauth_cred_seteuid(cred, uid);
111 kauth_cred_setsvuid(cred, uid);
112 kauth_cred_setgid(cred, gid);
113 kauth_cred_setgid(cred, gid);
114 kauth_cred_setegid(cred, gid);
115 kauth_cred_setsvgid(cred, gid);
116 rv = kauth_cred_setgroups(cred, groups, ngroups, 0, UIO_SYSSPACE)
    [all...]
  /src/crypto/external/bsd/heimdal/dist/kuser/
kverify.c 61 krb5_creds cred; local
110 &cred,
122 &cred,
129 krb5_free_cred_contents (context, &cred);

Completed in 57 milliseconds

1 2 3 4 5 6 7 8 9