Merge pull request #719 from nchaigne/v3.0.x

3.0.x - Make EAP-SIM work again - proper encoding of EAP-SIM attributes ...
Fixed adding attributes with multiple values to rlm_perl

Without this fix, the array in Perl would start with the value of the
first attribute in the packet, combined with the actual values of the
attribute.

The debug log would look like this:

$RAD_REPLY{'User-Name'}[0] = &reply:User-Name -> 'anonymous'
$RAD_REPLY{'h323-credit-amount'}[1] = &reply:h323-credit-amount -> '100'
$RAD_REPLY{'h323-credit-amount'}[2] = &reply:h323-credit-amount -> '101'

The actual value of $RAD_REPLY{'h323-credit-amount'} is
['anonymous','100','101']
Fix cursor initialization bugs in eap_chbind_vp2packet
Don't call free on talloc'ed channel bindings packet
Channel bindings fixes

-fix size calculation
-skip unwanted attrs when copying
-add safety check to copy code in case size is wrong
-add cast to get correct result from talloc_array_length()
rad_vp2attr() returns -1 on error, 0 on "not enough room"
No need for casting in talloc_array_length()
Use correct type for length
Update redhat spec file to reflect the fact rlm_host is no longer experimental.
In redhat spec file, update dependency on json-c to version 0.10 as 0.11 only exists for fedora and 0.10 builds ok
Merge pull request #725 from nchaigne/v3.0.x

radeapclient - fix send_packet
As posted to the list
Formatting
Use enums instead of define lists in rlm_eap_peap

But only for the values that are only used internally.
Changed integer type for rlm_eap_{ttls,peap} tunnel types to bool where applicable
Remove reply:User-Name only if there's a reply:CUI
Try and make dlopen library search messages clearer
Update cui

Updated comments to clarify the dual purpose of the unlang fragment.
Fixup Sqlite schema
Formatting