Lines Matching refs:cp
95 unsigned char *cp, *end;
213 #define BOUNDS_CHECK(cp, end, n) do { if ((end) - (cp) < (n)) goto fail_name; } while (0)
214 cp = (unsigned char *)tmp;
215 end = cp + input_name_buffer->length;
217 BOUNDS_CHECK(cp, end, 2);
218 if (*cp++ != 0x04)
220 switch (*cp++) {
230 BOUNDS_CHECK(cp, end, 2);
231 if (*cp++ != 0x00)
233 length = *cp++;
237 BOUNDS_CHECK(cp, end, 2);
238 if (*cp++ != 0x06)
240 length = *cp++;
244 BOUNDS_CHECK(cp, end, length);
245 if (memcmp(cp, gss_mech_krb5->elements, length) != 0)
247 cp += length;
249 BOUNDS_CHECK(cp, end, 4);
250 length = *cp++;
251 length = (length << 8) | *cp++;
252 length = (length << 8) | *cp++;
253 length = (length << 8) | *cp++;
255 BOUNDS_CHECK(cp, end, length);
263 strncpy(tmp2, (char *)cp, length);
266 cp += length;
269 BOUNDS_CHECK(cp, end, 4);
270 length = *cp++;
271 length = (length << 8) | *cp++;
272 length = (length << 8) | *cp++;
273 length = (length << 8) | *cp++;
275 BOUNDS_CHECK(cp, end, length);
277 cp, length,
281 cp += length;
285 * length of the exported name object (cp points to the end of it)
288 /* assert(cp == end); */