radius.c (c42627ffffa34588e9dc2f74bad5d17749a56a6c) | radius.c (5284761414ce1ef5f00cb7e3f93076682b591a5e) |
---|---|
1/* 2 * Copyright 1999 Internet Business Solutions Ltd., Switzerland 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 359 unchanged lines hidden (view full) --- 368 */ 369void 370radius_Authenticate(struct radius *r, struct authinfo *authp, const char *name, 371 const char *key, const char *challenge) 372{ 373 struct ttyent *ttyp; 374 struct timeval tv; 375 int got, slot; | 1/* 2 * Copyright 1999 Internet Business Solutions Ltd., Switzerland 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 359 unchanged lines hidden (view full) --- 368 */ 369void 370radius_Authenticate(struct radius *r, struct authinfo *authp, const char *name, 371 const char *key, const char *challenge) 372{ 373 struct ttyent *ttyp; 374 struct timeval tv; 375 int got, slot; |
376 char hostname[MAXHOSTNAMELEN]; | 376 char hostname[MAXHOSTNAMELEN + 1]; |
377 struct hostent *hp; 378 struct in_addr hostaddr; 379 380 if (!*r->cfg.file) 381 return; 382 383 if (r->cx.fd != -1) 384 /* --- 103 unchanged lines hidden (view full) --- 488void 489radius_Account(struct radius *r, struct radacct *ac, struct datalink *dl, 490 int acct_type, struct in_addr *peer_ip, struct in_addr *netmask, 491 struct pppThroughput *stats) 492{ 493 struct ttyent *ttyp; 494 struct timeval tv; 495 int got, slot; | 377 struct hostent *hp; 378 struct in_addr hostaddr; 379 380 if (!*r->cfg.file) 381 return; 382 383 if (r->cx.fd != -1) 384 /* --- 103 unchanged lines hidden (view full) --- 488void 489radius_Account(struct radius *r, struct radacct *ac, struct datalink *dl, 490 int acct_type, struct in_addr *peer_ip, struct in_addr *netmask, 491 struct pppThroughput *stats) 492{ 493 struct ttyent *ttyp; 494 struct timeval tv; 495 int got, slot; |
496 char hostname[MAXHOSTNAMELEN]; | 496 char hostname[MAXHOSTNAMELEN + 1]; |
497 struct hostent *hp; 498 struct in_addr hostaddr; 499 500 if (!*r->cfg.file) 501 return; 502 503 if (r->cx.fd != -1) 504 /* --- 151 unchanged lines hidden --- | 497 struct hostent *hp; 498 struct in_addr hostaddr; 499 500 if (!*r->cfg.file) 501 return; 502 503 if (r->cx.fd != -1) 504 /* --- 151 unchanged lines hidden --- |