/net/sunrpc/ |
D | auth.c | 227 struct rpc_auth *auth = ERR_PTR(-EINVAL); in rpcauth_create() local 235 auth = ops->create(args, clnt); in rpcauth_create() 238 if (IS_ERR(auth)) in rpcauth_create() 239 return auth; in rpcauth_create() 242 clnt->cl_auth = auth; in rpcauth_create() 245 return auth; in rpcauth_create() 250 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument 252 if (!refcount_dec_and_test(&auth->au_count)) in rpcauth_release() 254 auth->au_ops->destroy(auth); in rpcauth_release() 291 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument [all …]
|
D | auth_unix.c | 36 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()
|
D | auth_null.c | 29 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
|
D | Makefile | 12 auth.o auth_null.o auth_unix.o \
|
D | clnt.c | 302 struct rpc_auth *auth; in rpc_client_register() local 320 auth = rpcauth_create(&auth_args, clnt); in rpc_client_register() 321 if (IS_ERR(auth)) { in rpc_client_register() 324 err = PTR_ERR(auth); in rpc_client_register() 1779 const struct rpc_auth *auth = task->tk_rqstp->rq_cred->cr_auth; in call_allocate() local 1802 req->rq_callsize = RPC_CALLHDRSIZE + (auth->au_cslack << 1) + in call_allocate() 1809 req->rq_rcvsize = RPC_REPHDRSIZE + auth->au_rslack + \ in call_allocate()
|
/net/sctp/ |
D | output.c | 67 packet->auth = NULL; in sctp_packet_reset() 245 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local 260 if (!chunk->auth) in sctp_packet_bundle_auth() 263 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth() 264 if (!auth) in sctp_packet_bundle_auth() 267 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth() 268 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth() 270 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth() 273 sctp_chunk_free(auth); in sctp_packet_bundle_auth() 367 packet->auth = chunk; in __sctp_packet_append_chunk() [all …]
|
D | auth.c | 416 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() 745 crypto_shash_tfm_digest(tfm, (u8 *)auth, end - (unsigned char *)auth, in sctp_auth_calculate_hmac()
|
D | Makefile | 14 output.o input.o debug.o stream.o auth.o \
|
D | endpointola.c | 365 chunk->auth = 1; in sctp_endpoint_bh_rcv() 385 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth) in sctp_endpoint_bh_rcv()
|
D | inqueue.c | 187 chunk->auth = 0; in sctp_inq_pop()
|
D | sm_statefuns.c | 637 struct sctp_chunk auth; in sctp_auth_chunk_verify() local 654 auth.skb = chunk->auth_chunk; in sctp_auth_chunk_verify() 655 auth.asoc = chunk->asoc; in sctp_auth_chunk_verify() 656 auth.sctp_hdr = chunk->sctp_hdr; in sctp_auth_chunk_verify() 657 auth.chunk_hdr = (struct sctp_chunkhdr *) in sctp_auth_chunk_verify() 661 auth.transport = chunk->transport; in sctp_auth_chunk_verify() 663 return sctp_sf_authenticate(asoc, &auth) == SCTP_IERROR_NO_ERROR; in sctp_auth_chunk_verify() 3886 (!net->sctp.addip_noauth && !chunk->auth)) in sctp_sf_do_asconf() 4029 (!net->sctp.addip_noauth && !asconf_ack->auth)) in sctp_sf_do_asconf_ack() 4410 chunk->auth = 1; in sctp_sf_authenticate()
|
/net/ceph/ |
D | auth_none.c | 95 struct ceph_auth_handshake *auth) in ceph_auth_none_create_authorizer() argument 112 auth->authorizer = (struct ceph_authorizer *) au; in ceph_auth_none_create_authorizer() 113 auth->authorizer_buf = au->buf; in ceph_auth_none_create_authorizer() 114 auth->authorizer_buf_len = au->buf_len; in ceph_auth_none_create_authorizer() 115 auth->authorizer_reply_buf = NULL; in ceph_auth_none_create_authorizer() 116 auth->authorizer_reply_buf_len = 0; in ceph_auth_none_create_authorizer()
|
D | auth.c | 309 struct ceph_auth_handshake *auth, in __ceph_auth_get_authorizer() argument 316 if (force_new && auth->authorizer) { in __ceph_auth_get_authorizer() 317 ceph_auth_destroy_authorizer(auth->authorizer); in __ceph_auth_get_authorizer() 318 auth->authorizer = NULL; in __ceph_auth_get_authorizer() 320 if (!auth->authorizer) in __ceph_auth_get_authorizer() 321 ret = ac->ops->create_authorizer(ac, peer_type, auth); in __ceph_auth_get_authorizer() 323 ret = ac->ops->update_authorizer(ac, peer_type, auth); in __ceph_auth_get_authorizer() 548 struct ceph_auth_handshake *auth, in ceph_auth_get_authorizer() argument 557 ret = __ceph_auth_get_authorizer(ac, auth, peer_type, true, &proto, in ceph_auth_get_authorizer() 568 ceph_encode_32_safe(&p, end, auth->authorizer_buf_len, e_range); in ceph_auth_get_authorizer() [all …]
|
D | auth_x.c | 507 struct ceph_x_authenticate *auth = (void *)(head + 1); in ceph_x_build_request() local 513 p = auth + 1; in ceph_x_build_request() 521 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request() 522 blob->client_challenge = auth->client_challenge; in ceph_x_build_request() 529 auth->struct_v = 3; /* nautilus+ */ in ceph_x_build_request() 530 auth->key = 0; in ceph_x_build_request() 532 auth->key ^= *(__le64 *)u; in ceph_x_build_request() 534 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request() 535 le64_to_cpu(auth->key)); in ceph_x_build_request() 736 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument [all …]
|
D | mon_client.c | 198 ceph_auth_reset(monc->auth); in __close_session() 272 ret = ceph_auth_build_hello(monc->auth, in __open_session() 1094 int is_auth = ceph_auth_is_authenticated(monc->auth); in delayed_work() 1170 monc->auth = ceph_auth_init(cl->options->name, cl->options->key, in ceph_monc_init() 1172 if (IS_ERR(monc->auth)) { in ceph_monc_init() 1173 err = PTR_ERR(monc->auth); in ceph_monc_init() 1176 monc->auth->want_keys = in ceph_monc_init() 1225 ceph_auth_destroy(monc->auth); in ceph_monc_init() 1251 ceph_auth_destroy(monc->auth); in ceph_monc_stop() 1288 if (!was_authed && ceph_auth_is_authenticated(monc->auth)) { in finish_auth() [all …]
|
D | messenger_v1.c | 330 struct ceph_auth_handshake *auth; in get_connect_authorizer() local 334 con->v1.auth = NULL; in get_connect_authorizer() 340 auth = con->ops->get_authorizer(con, &auth_proto, con->v1.auth_retry); in get_connect_authorizer() 341 if (IS_ERR(auth)) in get_connect_authorizer() 342 return PTR_ERR(auth); in get_connect_authorizer() 344 con->v1.auth = auth; in get_connect_authorizer() 347 cpu_to_le32(auth->authorizer_buf_len); in get_connect_authorizer() 368 if (con->v1.auth) in __prepare_write_connect() 369 con_out_kvec_add(con, con->v1.auth->authorizer_buf_len, in __prepare_write_connect() 370 con->v1.auth->authorizer_buf); in __prepare_write_connect() [all …]
|
D | osd_client.c | 5534 struct ceph_auth_client *ac = osdc->client->monc.auth; in osd_get_authorizer() 5535 struct ceph_auth_handshake *auth = &o->o_auth; in osd_get_authorizer() local 5538 ret = __ceph_auth_get_authorizer(ac, auth, CEPH_ENTITY_TYPE_OSD, in osd_get_authorizer() 5543 return auth; in osd_get_authorizer() 5551 struct ceph_auth_client *ac = osdc->client->monc.auth; in osd_add_authorizer_challenge() 5561 struct ceph_auth_client *ac = osdc->client->monc.auth; in osd_verify_authorizer_reply() 5562 struct ceph_auth_handshake *auth = &o->o_auth; in osd_verify_authorizer_reply() local 5564 return ceph_auth_verify_authorizer_reply(ac, auth->authorizer, in osd_verify_authorizer_reply() 5565 auth->authorizer_reply_buf, auth->authorizer_reply_buf_len, in osd_verify_authorizer_reply() 5573 struct ceph_auth_client *ac = osdc->client->monc.auth; in osd_invalidate_authorizer() [all …]
|
D | Makefile | 13 auth.o auth_none.o \
|
/net/sunrpc/auth_gss/ |
D | auth_gss.c | 248 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() 757 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall() [all …]
|
/net/xfrm/ |
D | xfrm_algo.c | 179 .auth = { 199 .auth = { 219 .auth = { 239 .auth = { 258 .auth = { 277 .auth = { 297 .auth = { 316 .auth = { 336 .auth = {
|
D | xfrm_user.c | 367 p->alg_trunc_len = algo->uinfo.auth.icv_truncbits; in attach_auth() 388 if (ualg->alg_trunc_len > algo->uinfo.auth.icv_fullbits) in attach_auth_trunc() 398 p->alg_trunc_len = algo->uinfo.auth.icv_truncbits; in attach_auth_trunc() 865 static int copy_to_user_auth(struct xfrm_algo_auth *auth, struct sk_buff *skb) in copy_to_user_auth() argument 873 sizeof(*algo) + (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 877 strncpy(algo->alg_name, auth->alg_name, sizeof(algo->alg_name)); in copy_to_user_auth() 879 if (redact_secret && auth->alg_key_len) in copy_to_user_auth() 880 memset(algo->alg_key, 0, (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 882 memcpy(algo->alg_key, auth->alg_key, in copy_to_user_auth() 883 (auth->alg_key_len + 7) / 8); in copy_to_user_auth() [all …]
|
/net/bluetooth/ |
D | smp.c | 849 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, in tk_request() argument 862 bt_dev_dbg(hcon->hdev, "auth:%u lcl:%u rem:%u", auth, local_io, in tk_request() 871 if (!(auth & SMP_AUTH_MITM)) in tk_request() 1010 u8 stk[16], auth; in smp_random() local 1020 auth = 1; in smp_random() 1022 auth = 0; in smp_random() 1029 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random() 1136 u8 key_type, auth; in sc_add_ltk() local 1144 auth = 1; in sc_add_ltk() 1146 auth = 0; in sc_add_ltk() [all …]
|
/net/ipv4/ |
D | ah4.c | 508 if (aalg_desc->uinfo.auth.icv_fullbits/8 != in ah_init_state() 513 aalg_desc->uinfo.auth.icv_fullbits / 8); in ah_init_state() 517 ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8; in ah_init_state()
|
/net/ipv6/ |
D | ah6.c | 706 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/ |
D | sme.c | 168 if (WARN_ON(!rdev->ops->auth)) in cfg80211_conn_do_work() 355 u16 status_code = le16_to_cpu(mgmt->u.auth.status_code); in cfg80211_sme_rx_auth() 557 if (!rdev->ops->auth || !rdev->ops->assoc) in cfg80211_sme_connect()
|