diff options
author | 2007-10-18 09:47:57 +0000 | |
---|---|---|
committer | 2007-10-18 09:47:57 +0000 | |
commit | d1c9c1455846af78987fbd98cf109637b15c8436 (patch) | |
tree | 4f3871cd51d9c3a3c05e4468cbb54444a8c503fb /usr.sbin/ripd/interface.c | |
parent | Add missing bits for auth crypt and cleanup a bit. OK deraadt@ (diff) | |
download | wireguard-openbsd-d1c9c1455846af78987fbd98cf109637b15c8436.tar.xz wireguard-openbsd-d1c9c1455846af78987fbd98cf109637b15c8436.zip |
Massive cleanup in the authentication code. the simple auth_key and the crypt
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@
Diffstat (limited to 'usr.sbin/ripd/interface.c')
0 files changed, 0 insertions, 0 deletions