Lines Matching refs:buf
412 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);}
413 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);}
416 kerberos4_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
421 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
426 strncpy((char *)buf, " REJECT ", buflen);
430 strncpy((char *)buf, " ACCEPT ", buflen);
432 BUMP(buf, buflen);
435 ADDC(buf, buflen, '"');
437 ADDC(buf, buflen, data[i]);
438 ADDC(buf, buflen, '"');
439 ADDC(buf, buflen, '\0');
443 strncpy((char *)buf, " AUTH", buflen);
447 strncpy((char *)buf, " CHALLENGE", buflen);
451 strncpy((char *)buf, " RESPONSE", buflen);
456 strncpy((char *)buf, lbuf, buflen);
458 BUMP(buf, buflen);
461 strncpy((char *)buf, lbuf, buflen);
462 BUMP(buf, buflen);