Added strtol_wrapper() libfko utility function for atoi() replacement (#21)
authorMichael Rash <mbr@cipherdyne.org>
Tue, 19 Feb 2013 00:32:53 +0000 (19:32 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 19 Feb 2013 00:32:53 +0000 (19:32 -0500)
commit1afc8db96a0e2cd8abdf2cd5994ab3ab385a4e73
tree41f94bac01362ec7af75fc6a795333d9a0756384
parent934e6760537b1438358dc5b12ae81543d2104843
Added strtol_wrapper() libfko utility function for atoi() replacement (#21)

This commit replaces most atoi() calls (which don't report errors) with a strtol()
wrapper function for stronger string -> integer conversion validation.
15 files changed:
client/config_init.c
client/fwknop.c
client/http_resolve_host.c
client/spa_comm.c
common/Makefile.am
lib/fko.h
lib/fko_decode.c
lib/fko_util.c
lib/fko_util.h
server/config_init.c
server/fw_util_iptables.c
server/fwknopd.c
server/incoming_spa.c
server/pcap_capture.c
server/tcp_server.c