Lines Matching refs:ofs
59 static void encode_asn_tag(char *buf, unsigned int *ofs, char tag, char seq, in encode_asn_tag() argument
63 int index = *ofs; in encode_asn_tag()
79 len = len - (index - *ofs); in encode_asn_tag()
90 *ofs += (index - *ofs); in encode_asn_tag()
97 unsigned int ofs = 0; in build_spnego_ntlmssp_neg_blob() local
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()
122 ofs += 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()
127 ofs += ntlm_blob_len; in build_spnego_ntlmssp_neg_blob()
138 unsigned int ofs = 0; in build_spnego_ntlmssp_auth_blob() local
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()