Commit: c70a4afe4328053f462d8e30a0a787245aa7b948
Parent: 90e0b59b9779ad51391e1c20754cce9822e22c21
Author: David Herrmann <dh.herrmann@googlemail.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-05-15 02:14:44
Tree: 9b938e5fb7ce965c02335335b4fb50876b527f66

Parse pin codes starting with '$' as hexadecimal encoded strings If a pin code is retrieved from an agent and the first character is a dollar sign '$', then the pin is decoded as following: - The first character (dollar sign) is stripped from the pin - The rest is parsed as hexadecimal numbers, where each two characters will be converted into a one byte integer. If an odd number of characters follows, then the last character is stripped. Parser is case insensitive. Pins not starting with '$' are parsed as usual. For instance: pin: $0A3e005067 is decoded into a 5 byte pin: decoded: 0x0a 0x3e 0x00 0x50 0x67

Diffstat

M src/event.c | 35 ++++++++++++++++++++++++++++++++- - -

1 files changed, 32 insertions(+), 3 deletions(-)

View Full Diff | Patch