[tac_plus] Re: tacacs+ 64 bit fix

Stephen Hemminger shemminger at vyatta.com
Thu Nov 5 21:25:21 UTC 2009


On Thu, 5 Nov 2009 19:39:18 +0000
john heasley <heas at shrubbery.net> wrote:

> Thu, Nov 05, 2009 at 11:22:04AM -0800, Stephen Hemminger:
> > If tacacs+ server is compiled and run on 64 bit machine (common now).
> > On these machines sizeof(int) == 8 bytes, which is not same as uint32.
> > It will fail because the session_id which is declared as int will encrypted
> > as a 64 bit value. 
> 
> thats not right.  int should be 4 bytes on all machines as defined by
> spec.  long should be 8 bytes on 64bit machines.
> 
> what o/s and what version of tacacs?

Depends on the OS. I was just being paranoid.
For Linux:
  char 1
  short 2
  int 4
  long 8

So all is okay.


More information about the tac_plus mailing list