| /net/sunrpc/ |
| A D | auth.c | 235 if (IS_ERR(auth)) in rpcauth_create() 236 return auth; in rpcauth_create() 239 clnt->cl_auth = auth; in rpcauth_create() 242 return auth; in rpcauth_create() 251 auth->au_ops->destroy(auth); in rpcauth_release() 538 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache() 586 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred() 598 cred->cr_auth = auth; in rpcauth_init_cred() 617 ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_root_cred() 635 return auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_machine_cred() [all …]
|
| A D | auth_unix.c | 36 unx_destroy(struct rpc_auth *auth) in unx_destroy() argument 43 static struct rpc_cred *unx_lookup_cred(struct rpc_auth *auth, in unx_lookup_cred() argument 56 rpcauth_init_cred(ret, acred, auth, &unix_credops); in unx_lookup_cred() 175 struct rpc_auth *auth = task->tk_rqstp->rq_cred->cr_auth; in unx_validate() local 197 auth->au_verfsize = XDR_QUADLEN(size) + 2; in unx_validate() 198 auth->au_rslack = XDR_QUADLEN(size) + 2; in unx_validate() 199 auth->au_ralign = XDR_QUADLEN(size) + 2; in unx_validate()
|
| A 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
|
| A D | auth_tls.c | 80 static void tls_destroy(struct rpc_auth *auth) in tls_destroy() argument 84 static struct rpc_cred *tls_lookup_cred(struct rpc_auth *auth, in tls_lookup_cred() argument
|
| A D | Makefile | 12 auth.o auth_null.o auth_tls.o auth_unix.o \
|
| A D | clnt.c | 292 struct rpc_auth *auth; in rpc_client_register() local 310 auth = rpcauth_create(&auth_args, clnt); in rpc_client_register() 311 if (IS_ERR(auth)) { in rpc_client_register() 314 err = PTR_ERR(auth); in rpc_client_register() 1881 const struct rpc_auth *auth = task->tk_rqstp->rq_cred->cr_auth; in call_allocate() local 1898 req->rq_callsize = RPC_CALLHDRSIZE + (auth->au_cslack << 1) + in call_allocate() 1905 req->rq_rcvsize = RPC_REPHDRSIZE + auth->au_rslack + \ in call_allocate()
|
| /net/sctp/ |
| A D | output.c | 67 packet->auth = NULL; in sctp_packet_reset() 246 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local 261 if (!chunk->auth) in sctp_packet_bundle_auth() 265 if (!auth) in sctp_packet_bundle_auth() 268 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth() 274 sctp_chunk_free(auth); in sctp_packet_bundle_auth() 368 packet->auth = chunk; in __sctp_packet_append_chunk() 463 if (chunk == packet->auth) in sctp_packet_pack() 519 if (auth) { in sctp_packet_pack() 793 if ((packet->auth && chunk->shkey != packet->auth->shkey) || in sctp_packet_will_fit() [all …]
|
| A 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 = (u8 *)(&auth->auth_hdr + 1); in sctp_auth_calculate_hmac() 745 crypto_shash_tfm_digest(tfm, (u8 *)auth, end - (unsigned char *)auth, in sctp_auth_calculate_hmac()
|
| A D | Makefile | 14 output.o input.o debug.o stream.o auth.o \
|
| A D | endpointola.c | 370 chunk->auth = 1; in sctp_endpoint_bh_rcv() 390 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth) in sctp_endpoint_bh_rcv()
|
| A D | inqueue.c | 193 chunk->auth = 0; in sctp_inq_pop()
|
| /net/ceph/ |
| A 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()
|
| A 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 578 struct ceph_auth_handshake *auth, in ceph_auth_handle_svc_reply_more() argument 586 ret = ceph_auth_add_authorizer_challenge(ac, auth->authorizer, in ceph_auth_handle_svc_reply_more() [all …]
|
| A D | auth_x.c | 513 p = auth + 1; 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() 535 le64_to_cpu(auth->key)); in ceph_x_build_request() 736 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument 759 auth->authorizer_buf = au->buf->vec.iov_base; in ceph_x_create_authorizer() 760 auth->authorizer_buf_len = au->buf->vec.iov_len; in ceph_x_create_authorizer() 761 auth->authorizer_reply_buf = au->enc_buf; in ceph_x_create_authorizer() 763 auth->sign_message = ac->ops->sign_message; in ceph_x_create_authorizer() [all …]
|
| A D | mon_client.c | 198 ceph_auth_reset(monc->auth); in __close_session() 272 ret = ceph_auth_build_hello(monc->auth, in __open_session() 1179 if (IS_ERR(monc->auth)) { in ceph_monc_init() 1180 err = PTR_ERR(monc->auth); in ceph_monc_init() 1183 monc->auth->want_keys = in ceph_monc_init() 1232 ceph_auth_destroy(monc->auth); in ceph_monc_init() 1260 ceph_auth_destroy(monc->auth); in ceph_monc_stop() 1299 __func__, monc->auth->global_id); in finish_auth() 1303 cpu_to_le64(monc->auth->global_id); in finish_auth() 1320 was_authed = ceph_auth_is_authenticated(monc->auth); in handle_auth_reply() [all …]
|
| A D | messenger_v1.c | 330 struct ceph_auth_handshake *auth; in get_connect_authorizer() local 334 con->v1.auth = NULL; 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() 370 con->v1.auth->authorizer_buf); in __prepare_write_connect() 663 if (con->v1.auth) { in read_partial_connect() 674 con->v1.auth->authorizer_reply_buf); in read_partial_connect() [all …]
|
| A D | osd_client.c | 5550 struct ceph_auth_handshake *auth = &o->o_auth; in osd_get_authorizer() local 5558 return auth; in osd_get_authorizer() 5577 struct ceph_auth_handshake *auth = &o->o_auth; in osd_verify_authorizer_reply() local 5580 auth->authorizer_reply_buf, auth->authorizer_reply_buf_len, in osd_verify_authorizer_reply() 5600 struct ceph_auth_handshake *auth = &o->o_auth; in osd_get_auth_request() local 5608 *authorizer = auth->authorizer_buf; in osd_get_auth_request() 5609 *authorizer_len = auth->authorizer_buf_len; in osd_get_auth_request() 5620 struct ceph_auth_handshake *auth = &o->o_auth; in osd_handle_auth_reply_more() local 5628 *authorizer = auth->authorizer_buf; in osd_handle_auth_reply_more() 5629 *authorizer_len = auth->authorizer_buf_len; in osd_handle_auth_reply_more() [all …]
|
| A D | Makefile | 13 auth.o auth_none.o \
|
| /net/sunrpc/auth_gss/ |
| A D | auth_gss.c | 265 struct gss_auth *auth; member 309 gss_put_auth(gss_msg->auth); in gss_release_msg() 321 if (pos->auth->service != auth->service) in __gss_find_upcall() 514 gss_msg->auth->target_name, in gss_v1_upcall() 543 gss_msg->auth = gss_auth; in gss_alloc_msg() 1024 struct rpc_auth * auth; in gss_create_new() local 1050 auth = &gss_auth->rpc_auth; in gss_create_new() 1057 auth->au_ops = &authgss_ops; in gss_create_new() 1058 auth->au_flavor = flavor; in gss_create_new() 1961 auth->au_ralign = auth->au_verfsize + before; in gss_update_rslack() [all …]
|
| /net/xfrm/ |
| A D | xfrm_algo.c | 180 .auth = { 200 .auth = { 220 .auth = { 240 .auth = { 259 .auth = { 278 .auth = { 298 .auth = { 317 .auth = { 337 .auth = { 350 .auth = {
|
| A D | xfrm_user.c | 1209 strscpy_pad(algo->alg_name, auth->alg_name); in copy_to_user_auth() 1211 if (redact_secret && auth->alg_key_len) in copy_to_user_auth() 1214 memcpy(algo->alg_key, auth->alg_key, in copy_to_user_auth() 1215 (auth->alg_key_len + 7) / 8); in copy_to_user_auth() 1216 algo->alg_key_len = auth->alg_key_len; in copy_to_user_auth() 1222 strscpy_pad(ap->alg_name, auth->alg_name); in copy_to_user_auth() 1223 ap->alg_key_len = auth->alg_key_len; in copy_to_user_auth() 1224 ap->alg_trunc_len = auth->alg_trunc_len; in copy_to_user_auth() 1225 if (redact_secret && auth->alg_key_len) in copy_to_user_auth() 1228 memcpy(ap->alg_key, auth->alg_key, in copy_to_user_auth() [all …]
|
| /net/bluetooth/ |
| A D | smp.c | 1012 u8 stk[16], auth; in smp_random() local 1022 auth = 1; in smp_random() 1024 auth = 0; 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() 1934 u8 key_size, auth; in smp_cmd_pairing_rsp() local 2013 auth |= req->auth_req; in smp_cmd_pairing_rsp() 2056 u8 auth; in fixup_sc_false_positive() local 2316 u8 sec_level, auth; in smp_cmd_security_req() local [all …]
|
| /net/rxrpc/ |
| A D | rxgk.c | 1149 void *auth; in rxgk_verify_authenticator() local 1153 auth = kmalloc(auth_len, GFP_NOFS); in rxgk_verify_authenticator() 1154 if (!auth) in rxgk_verify_authenticator() 1157 ret = skb_copy_bits(skb, auth_offset, auth, auth_len); in rxgk_verify_authenticator() 1164 p = auth; in rxgk_verify_authenticator() 1167 kfree(auth); in rxgk_verify_authenticator()
|
| /net/ipv4/ |
| A D | ah4.c | 513 if (aalg_desc->uinfo.auth.icv_fullbits/8 != in ah_init_state() 519 ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8; in ah_init_state()
|
| /net/ipv6/ |
| A D | ah6.c | 708 if (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()
|