Lines Matching refs:ofs
59 static void encode_asn_tag(char *buf, unsigned int *ofs, char tag, char seq,
63 int index = *ofs;
79 len = len - (index - *ofs);
90 *ofs += (index - *ofs);
97 unsigned int ofs = 0;
112 encode_asn_tag(buf, &ofs, 0xa1, 0x30, neg_result_len + oid_len +
116 encode_asn_tag(buf, &ofs, 0xa0, 0x0a, 1);
117 buf[ofs++] = 1;
120 encode_asn_tag(buf, &ofs, 0xa1, 0x06, NTLMSSP_OID_LEN);
121 memcpy(buf + ofs, NTLMSSP_OID_STR, NTLMSSP_OID_LEN);
122 ofs += NTLMSSP_OID_LEN;
125 encode_asn_tag(buf, &ofs, 0xa2, 0x04, ntlm_blob_len);
126 memcpy(buf + ofs, ntlm_blob, ntlm_blob_len);
127 ofs += ntlm_blob_len;
138 unsigned int ofs = 0;
148 encode_asn_tag(buf, &ofs, 0xa1, 0x30, neg_result_len);
151 encode_asn_tag(buf, &ofs, 0xa0, 0x0a, 1);
153 buf[ofs++] = 2;
155 buf[ofs++] = 0;