• Home
  • Raw
  • Download

Lines Matching refs:buf

59 static void encode_asn_tag(char *buf, unsigned int *ofs, char tag, char seq,  in encode_asn_tag()  argument
68 buf[index++] = tag; in encode_asn_tag()
71 buf[index++] = len; in encode_asn_tag()
73 buf[index++] = 0x80 | hdr_len; in encode_asn_tag()
75 buf[index++] = (len >> (i * 8)) & 0xFF; in encode_asn_tag()
80 buf[index++] = seq; in encode_asn_tag()
83 buf[index++] = len; in encode_asn_tag()
85 buf[index++] = 0x80 | hdr_len; in encode_asn_tag()
87 buf[index++] = (len >> (i * 8)) & 0xFF; in encode_asn_tag()
96 char *buf; in build_spnego_ntlmssp_neg_blob() local
107 buf = kmalloc(total_len, GFP_KERNEL); in build_spnego_ntlmssp_neg_blob()
108 if (!buf) in build_spnego_ntlmssp_neg_blob()
112 encode_asn_tag(buf, &ofs, 0xa1, 0x30, neg_result_len + oid_len + in build_spnego_ntlmssp_neg_blob()
116 encode_asn_tag(buf, &ofs, 0xa0, 0x0a, 1); in build_spnego_ntlmssp_neg_blob()
117 buf[ofs++] = 1; in build_spnego_ntlmssp_neg_blob()
120 encode_asn_tag(buf, &ofs, 0xa1, 0x06, NTLMSSP_OID_LEN); in build_spnego_ntlmssp_neg_blob()
121 memcpy(buf + ofs, NTLMSSP_OID_STR, NTLMSSP_OID_LEN); in build_spnego_ntlmssp_neg_blob()
125 encode_asn_tag(buf, &ofs, 0xa2, 0x04, ntlm_blob_len); in build_spnego_ntlmssp_neg_blob()
126 memcpy(buf + ofs, ntlm_blob, ntlm_blob_len); in build_spnego_ntlmssp_neg_blob()
129 *pbuffer = buf; in build_spnego_ntlmssp_neg_blob()
137 char *buf; in build_spnego_ntlmssp_auth_blob() local
143 buf = kmalloc(total_len, GFP_KERNEL); in build_spnego_ntlmssp_auth_blob()
144 if (!buf) in build_spnego_ntlmssp_auth_blob()
148 encode_asn_tag(buf, &ofs, 0xa1, 0x30, neg_result_len); in build_spnego_ntlmssp_auth_blob()
151 encode_asn_tag(buf, &ofs, 0xa0, 0x0a, 1); in build_spnego_ntlmssp_auth_blob()
153 buf[ofs++] = 2; in build_spnego_ntlmssp_auth_blob()
155 buf[ofs++] = 0; in build_spnego_ntlmssp_auth_blob()
157 *pbuffer = buf; in build_spnego_ntlmssp_auth_blob()
169 char buf[50]; in ksmbd_gssapi_this_mech() local
171 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_gssapi_this_mech()
172 ksmbd_debug(AUTH, "Unexpected OID: %s\n", buf); in ksmbd_gssapi_this_mech()
197 char buf[50]; in ksmbd_neg_token_init_mech_type() local
199 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_neg_token_init_mech_type()
200 ksmbd_debug(AUTH, "Unexpected OID: %s\n", buf); in ksmbd_neg_token_init_mech_type()