radius_put_attr

(PECL radius >= 1.1.0) Attaches a binary attribute bool radius_put_attr ( resource $radius_handle, int $type, string $value [, int $options = 0 [, int $tag ]] ) Attaches a binary attribute to the current RADIUS request. Note: A request must be created via radius_create_request() before this function can be called. Parameters: radius_handle The RADIUS resource.

radius_put_string

(PECL radius >= 1.1.0) Attaches a string attribute bool radius_put_string ( resource $radius_handle, int $type, string $value [, int $options = 0 [, int $tag ]] ) Attaches a string attribute to the current RADIUS request. In general, radius_put_attr() is a more useful function for attaching string attributes, as it is binary safe. Note: A request must be created via radius_create_request() before this function can be

radius_put_int

(PECL radius >= 1.1.0) Attaches an integer attribute bool radius_put_int ( resource $radius_handle, int $type, int $value [, int $options = 0 [, int $tag ]] ) Attaches an integer attribute to the current RADIUS request. Note: A request must be created via radius_create_request() before this function can be called. Parameters: radius_handle The RADIUS resource.

radius_put_vendor_attr

(PECL radius >= 1.1.0) Attaches a vendor specific binary attribute bool radius_put_vendor_attr ( resource $radius_handle, int $vendor, int $type, string $value [, int $options = 0 [, int $tag ]] ) Attaches a vendor specific binary attribute to the current RADIUS request. Note: A request must be created via radius_create_request() before this function can be called. Parameters:

radius_get_tagged_attr_tag

(PECL radius >= 1.3.0) Extracts the tag from a tagged attribute integer radius_get_tagged_attr_tag ( string $data ) If a tagged attribute has been returned from radius_get_attr(), radius_get_tagged_attr_data() will return the tag from the attribute. Parameters: data The tagged attribute to be decoded. Returns: Returns the tag from the tagged a

radius_cvt_int

(PECL radius >= 1.1.0) Converts raw data to integer int radius_cvt_int ( string $data ) Examples: radius_cvt_int() example <?php while ($resa = radius_get_attr($res)) {     if (!is_array($resa)) {         printf ("Error getting attribute: %s\n",  radius_strerror($res));         exit;     }     $attr = $resa['attr'];     $data = $resa

radius_create_request

(PECL radius >= 1.1.0) Create accounting or authentication request bool radius_create_request ( resource $radius_handle, int $type ) A Radius request consists of a code specifying the kind of request, and zero or more attributes which provide additional information. To begin constructing a new request, call radius_create_request(). Note: Attention: You must call this function, before you can put any attribute!

radius_demangle_mppe_key

(PECL radius >= 1.2.0) Derives mppe-keys from mangled data string radius_demangle_mppe_key ( resource $radius_handle, string $mangled ) When using MPPE with MS-CHAPv2, the send- and recv-keys are mangled (see » RFC 2548), however this function is useless, because I don't think that there is or will be a PPTP-MPPE implementation in PHP. Returns: Returns the demangled string, or FALSE on error.

radius_get_tagged_attr_data

(PECL radius >= 1.3.0) Extracts the data from a tagged attribute string radius_get_tagged_attr_data ( string $data ) If a tagged attribute has been returned from radius_get_attr(), radius_get_tagged_attr_data() will return the data from the attribute. Parameters: data The tagged attribute to be decoded. Returns: Returns the data from the tagge

radius_get_attr

(PECL radius >= 1.1.0) Extracts an attribute mixed radius_get_attr ( resource $radius_handle ) Like Radius requests, each response may contain zero or more attributes. After a response has been received successfully by radius_send_request(), its attributes can be extracted one by one using radius_get_attr(). Each time radius_get_attr() is called, it gets the next attribute from the current response.