Home
last modified time | relevance | path

Searched refs:auth (Results 1 – 25 of 41) sorted by relevance

12

/net/sunrpc/
Dauth.c276 struct rpc_auth *auth = ERR_PTR(-EINVAL); in rpcauth_create() local
284 auth = ops->create(args, clnt); in rpcauth_create()
287 if (IS_ERR(auth)) in rpcauth_create()
288 return auth; in rpcauth_create()
291 clnt->cl_auth = auth; in rpcauth_create()
294 return auth; in rpcauth_create()
299 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
301 if (!refcount_dec_and_test(&auth->au_count)) in rpcauth_release()
303 auth->au_ops->destroy(auth); in rpcauth_release()
340 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
[all …]
Dauth_unix.c36 unx_destroy(struct rpc_auth *auth) in unx_destroy() argument
44 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
48 rpcauth_init_cred(ret, acred, auth, &unix_credops); in unx_lookup_cred()
167 struct rpc_auth *auth = task->tk_rqstp->rq_cred->cr_auth; in unx_validate() local
189 auth->au_verfsize = XDR_QUADLEN(size) + 2; in unx_validate()
190 auth->au_rslack = XDR_QUADLEN(size) + 2; in unx_validate()
191 auth->au_ralign = XDR_QUADLEN(size) + 2; in unx_validate()
Dauth_null.c29 nul_destroy(struct rpc_auth *auth) in nul_destroy() argument
37 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in nul_lookup_cred() argument
DMakefile12 auth.o auth_null.o auth_unix.o \
Dclnt.c301 struct rpc_auth *auth; in rpc_client_register() local
319 auth = rpcauth_create(&auth_args, clnt); in rpc_client_register()
320 if (IS_ERR(auth)) { in rpc_client_register()
323 err = PTR_ERR(auth); in rpc_client_register()
1787 const struct rpc_auth *auth = task->tk_rqstp->rq_cred->cr_auth; in call_allocate() local
1812 req->rq_callsize = RPC_CALLHDRSIZE + (auth->au_cslack << 1) + in call_allocate()
1819 req->rq_rcvsize = RPC_REPHDRSIZE + auth->au_rslack + \ in call_allocate()
/net/sctp/
Doutput.c67 packet->auth = NULL; in sctp_packet_reset()
220 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local
235 if (!chunk->auth) in sctp_packet_bundle_auth()
238 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
239 if (!auth) in sctp_packet_bundle_auth()
242 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()
243 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()
245 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
248 sctp_chunk_free(auth); in sctp_packet_bundle_auth()
342 packet->auth = chunk; in __sctp_packet_append_chunk()
[all …]
Dauth.c416 chunk->auth = 1; in sctp_auth_asoc_init_active_key()
708 struct sk_buff *skb, struct sctp_auth_chunk *auth, in sctp_auth_calculate_hmac() argument
722 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()
723 hmac_id = ntohs(auth->auth_hdr.hmac_id); in sctp_auth_calculate_hmac()
741 digest = auth->auth_hdr.hmac; in sctp_auth_calculate_hmac()
749 crypto_shash_digest(desc, (u8 *)auth, in sctp_auth_calculate_hmac()
750 end - (unsigned char *)auth, digest); in sctp_auth_calculate_hmac()
DMakefile14 output.o input.o debug.o stream.o auth.o \
Dendpointola.c365 chunk->auth = 1; in sctp_endpoint_bh_rcv()
385 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth) in sctp_endpoint_bh_rcv()
Dinqueue.c187 chunk->auth = 0; in sctp_inq_pop()
Dsm_statefuns.c630 struct sctp_chunk auth; in sctp_auth_chunk_verify() local
647 auth.skb = chunk->auth_chunk; in sctp_auth_chunk_verify()
648 auth.asoc = chunk->asoc; in sctp_auth_chunk_verify()
649 auth.sctp_hdr = chunk->sctp_hdr; in sctp_auth_chunk_verify()
650 auth.chunk_hdr = (struct sctp_chunkhdr *) in sctp_auth_chunk_verify()
654 auth.transport = chunk->transport; in sctp_auth_chunk_verify()
656 return sctp_sf_authenticate(asoc, &auth) == SCTP_IERROR_NO_ERROR; in sctp_auth_chunk_verify()
3787 (!net->sctp.addip_noauth && !chunk->auth)) in sctp_sf_do_asconf()
3930 (!net->sctp.addip_noauth && !asconf_ack->auth)) in sctp_sf_do_asconf_ack()
4311 chunk->auth = 1; in sctp_sf_authenticate()
/net/sunrpc/auth_gss/
Dauth_gss.c248 struct gss_auth *auth; member
284 struct net *net = gss_msg->auth->net; in gss_release_msg()
292 gss_put_auth(gss_msg->auth); in gss_release_msg()
298 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
304 if (pos->auth->service != auth->service) in __gss_find_upcall()
323 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
419 struct gss_api_mech *mech = gss_msg->auth->mech; in gss_encode_v1_msg()
497 gss_msg->auth->target_name, in gss_v1_upcall()
526 gss_msg->auth = gss_auth; in gss_alloc_msg()
755 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall()
[all …]
/net/ceph/
Dauth_none.c92 struct ceph_auth_handshake *auth) in ceph_auth_none_create_authorizer() argument
109 auth->authorizer = (struct ceph_authorizer *) au; in ceph_auth_none_create_authorizer()
110 auth->authorizer_buf = au->buf; in ceph_auth_none_create_authorizer()
111 auth->authorizer_buf_len = au->buf_len; in ceph_auth_none_create_authorizer()
112 auth->authorizer_reply_buf = au->reply_buf; in ceph_auth_none_create_authorizer()
113 auth->authorizer_reply_buf_len = sizeof (au->reply_buf); in ceph_auth_none_create_authorizer()
Dauth_x.c502 struct ceph_x_authenticate *auth = (void *)(head + 1); in ceph_x_build_request() local
503 void *p = auth + 1; in ceph_x_build_request()
516 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request()
517 blob->client_challenge = auth->client_challenge; in ceph_x_build_request()
524 auth->struct_v = 1; in ceph_x_build_request()
525 auth->key = 0; in ceph_x_build_request()
527 auth->key ^= *(__le64 *)u; in ceph_x_build_request()
529 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request()
530 le64_to_cpu(auth->key)); in ceph_x_build_request()
628 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument
[all …]
Dmon_client.c131 ceph_auth_reset(monc->auth); in __close_session()
199 ret = ceph_auth_build_hello(monc->auth, in __open_session()
984 int is_auth = ceph_auth_is_authenticated(monc->auth); in delayed_work()
1055 monc->auth = ceph_auth_init(cl->options->name, in ceph_monc_init()
1057 if (IS_ERR(monc->auth)) { in ceph_monc_init()
1058 err = PTR_ERR(monc->auth); in ceph_monc_init()
1061 monc->auth->want_keys = in ceph_monc_init()
1110 ceph_auth_destroy(monc->auth); in ceph_monc_init()
1136 ceph_auth_destroy(monc->auth); in ceph_monc_stop()
1167 was_auth = ceph_auth_is_authenticated(monc->auth); in handle_auth_reply()
[all …]
Dmessenger.c1414 struct ceph_auth_handshake *auth; in get_connect_authorizer() local
1418 con->auth = NULL; in get_connect_authorizer()
1424 auth = con->ops->get_authorizer(con, &auth_proto, con->auth_retry); in get_connect_authorizer()
1425 if (IS_ERR(auth)) in get_connect_authorizer()
1426 return PTR_ERR(auth); in get_connect_authorizer()
1428 con->auth = auth; in get_connect_authorizer()
1430 con->out_connect.authorizer_len = cpu_to_le32(auth->authorizer_buf_len); in get_connect_authorizer()
1450 if (con->auth) in __prepare_write_connect()
1451 con_out_kvec_add(con, con->auth->authorizer_buf_len, in __prepare_write_connect()
1452 con->auth->authorizer_buf); in __prepare_write_connect()
[all …]
DMakefile13 auth.o auth_none.o \
Dauth.c286 struct ceph_auth_handshake *auth) in ceph_auth_create_authorizer() argument
292 ret = ac->ops->create_authorizer(ac, peer_type, auth); in ceph_auth_create_authorizer()
Dosd_client.c5591 struct ceph_auth_client *ac = osdc->client->monc.auth; in get_authorizer()
5592 struct ceph_auth_handshake *auth = &o->o_auth; in get_authorizer() local
5594 if (force_new && auth->authorizer) { in get_authorizer()
5595 ceph_auth_destroy_authorizer(auth->authorizer); in get_authorizer()
5596 auth->authorizer = NULL; in get_authorizer()
5598 if (!auth->authorizer) { in get_authorizer()
5600 auth); in get_authorizer()
5605 auth); in get_authorizer()
5611 return auth; in get_authorizer()
5619 struct ceph_auth_client *ac = osdc->client->monc.auth; in add_authorizer_challenge()
[all …]
/net/xfrm/
Dxfrm_algo.c179 .auth = {
199 .auth = {
219 .auth = {
239 .auth = {
258 .auth = {
277 .auth = {
297 .auth = {
316 .auth = {
336 .auth = {
Dxfrm_user.c363 p->alg_trunc_len = algo->uinfo.auth.icv_truncbits; in attach_auth()
384 if (ualg->alg_trunc_len > algo->uinfo.auth.icv_fullbits) in attach_auth_trunc()
394 p->alg_trunc_len = algo->uinfo.auth.icv_truncbits; in attach_auth_trunc()
851 static int copy_to_user_auth(struct xfrm_algo_auth *auth, struct sk_buff *skb) in copy_to_user_auth() argument
857 sizeof(*algo) + (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
862 strncpy(algo->alg_name, auth->alg_name, sizeof(algo->alg_name)); in copy_to_user_auth()
863 memcpy(algo->alg_key, auth->alg_key, (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
864 algo->alg_key_len = auth->alg_key_len; in copy_to_user_auth()
/net/bluetooth/
Dsmp.c856 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, in tk_request() argument
869 BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io); in tk_request()
877 if (!(auth & SMP_AUTH_MITM)) in tk_request()
1008 u8 stk[16], auth; in smp_random() local
1018 auth = 1; in smp_random()
1020 auth = 0; in smp_random()
1027 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1127 u8 key_type, auth; in sc_add_ltk() local
1135 auth = 1; in sc_add_ltk()
1137 auth = 0; in sc_add_ltk()
[all …]
/net/ipv4/
Dah4.c507 if (aalg_desc->uinfo.auth.icv_fullbits/8 != in ah_init_state()
512 aalg_desc->uinfo.auth.icv_fullbits / 8); in ah_init_state()
516 ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8; in ah_init_state()
/net/ipv6/
Dah6.c706 if (aalg_desc->uinfo.auth.icv_fullbits/8 != in ah6_init_state()
710 aalg_desc->uinfo.auth.icv_fullbits/8); in ah6_init_state()
714 ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8; in ah6_init_state()
/net/wireless/
Dsme.c168 if (WARN_ON(!rdev->ops->auth)) in cfg80211_conn_do_work()
340 u16 status_code = le16_to_cpu(mgmt->u.auth.status_code); in cfg80211_sme_rx_auth()
528 if (!rdev->ops->auth || !rdev->ops->assoc) in cfg80211_sme_connect()

12