sprintf() and strtoul() are massive overkill for turning a string of hex
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 9 May 2008 16:15:22 +0000 (16:15 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 9 May 2008 16:15:22 +0000 (16:15 +0000)
commit72b76ec585891737438a002887b2e01e35d7dcb7
tree894a9dd16fd848b68a5cee968393f8d863683bce
parent99c49cff7c043bd937d226b18c55601493a1d9af
sprintf() and strtoul() are massive overkill for turning a string of hex
digits into a string of characters; use g_ascii_xdigit_value() to
convert individual hex digit characters to their hex value - and check
whether it succeeds or not, so we catch invalid hex digits! - and just
append the resulting byte value to the string.

Handle the case where compute_ascii_key() fails.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25265 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-ipsec.c