summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/auth.c
AgeCommit message (Collapse)Author
2007-10-24Make the packet buffer u_int8_t * everywhere. This is binary data and notClaudio Jeker
a string.
2007-10-18spacingTheo de Raadt
2007-10-18Massive cleanup in the authentication code. the simple auth_key and the cryptClaudio Jeker
keys are not strings so a) use u_int8_t instead of char and b) uses memcpy to copy the full MAX_SIMPLE_AUTH_LEN resp. MD5_DIGEST_LENGTH bytes around. The parser needs some special code to ensure that the string is not to long and if it is shorter then the buffer the rest needs to be zero padded. Avoid to use strncpy() instead use a bzero(); memcpy() combo. with and OK deraadt@
2007-10-17wrong type for digest; ok claudioTheo de Raadt
2007-03-31Some code cleanups. Added one lint command, removed one unused function andMichele Marchetto
some other cosmetics.
2006-11-27use correct function name in error message; ok henning@Kevin Steves
2006-10-31Time is not a secret.Ryan Thomas McBride
Modulate the timer with an MD5 hash of the key to generate the sequence number. Ensure that the most significant bit of the modulated value is 0 to prevent wrapping of the sequence number. ok michele@
2006-10-19Correct function name in log_debug() messagesRyan Thomas McBride
2006-10-18Welcome ripdEsben Norby
started by Michele Marchetto some time ago by using the imsg/three process framework of ospfd. He implemented most of the daemon with a little help and guidance from Claudio and I. Currently the daemon is more or less complete, with the exception of key lifetime and rollover. Not yet connected to the builds. OK claudio@