refactor freeradius module to support control sockets
pull enc fix