Lines Matching defs:buf
416 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);}
417 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);}
420 kerberos4_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen)
425 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
430 strncpy((char *)buf, " REJECT ", buflen);
434 strncpy((char *)buf, " ACCEPT ", buflen);
436 BUMP(buf, buflen);
439 ADDC(buf, buflen, '"');
441 ADDC(buf, buflen, data[i]);
442 ADDC(buf, buflen, '"');
443 ADDC(buf, buflen, '\0');
447 strncpy((char *)buf, " AUTH", buflen);
451 strncpy((char *)buf, " CHALLENGE", buflen);
455 strncpy((char *)buf, " RESPONSE", buflen);
460 strncpy((char *)buf, lbuf, buflen);
462 BUMP(buf, buflen);
465 strncpy((char *)buf, lbuf, buflen);
466 BUMP(buf, buflen);