Home
last modified time | relevance | path

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

12

/net/sunrpc/
A Dauth.c235 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 Dauth_unix.c36 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 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
A Dauth_tls.c80 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 DMakefile12 auth.o auth_null.o auth_tls.o auth_unix.o \
A Dclnt.c292 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 Doutput.c67 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 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 = (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 DMakefile14 output.o input.o debug.o stream.o auth.o \
A Dendpointola.c370 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 Dinqueue.c193 chunk->auth = 0; in sctp_inq_pop()
/net/ceph/
A Dauth_none.c95 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 Dauth.c309 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 Dauth_x.c513 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 Dmon_client.c198 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 Dmessenger_v1.c330 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 Dosd_client.c5550 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 DMakefile13 auth.o auth_none.o \
/net/sunrpc/auth_gss/
A Dauth_gss.c265 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 Dxfrm_algo.c180 .auth = {
200 .auth = {
220 .auth = {
240 .auth = {
259 .auth = {
278 .auth = {
298 .auth = {
317 .auth = {
337 .auth = {
350 .auth = {
A Dxfrm_user.c1209 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 Dsmp.c1012 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 Drxgk.c1149 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 Dah4.c513 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 Dah6.c708 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()

Completed in 71 milliseconds

12