void *hmacmd5_ctx;
int pwlen;
- hmacmd5_ctx = hmacmd5_make_context();
+ hmacmd5_ctx = hmacmd5_make_context(NULL);
pwlen = strlen(passwd);
if (pwlen>64) {
chapbuf[5] = '\x02'; /* Second attribute - username */
ulen = strlen(username);
- if (ulen > 255) ulen = 255; if (ulen < 1) ulen = 1;
+ if (ulen > 255) ulen = 255;
+ if (ulen < 1) ulen = 1;
chapbuf[6] = ulen;
memcpy(chapbuf+7, username, ulen);