summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE28
-rw-r--r--REFLECTION-DEV252
-rw-r--r--php-pecl-radius-dev.spec20
3 files changed, 266 insertions, 34 deletions
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 18492fb..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,28 +0,0 @@
-Copyright (c) 2003, Michael Bretterklieber <michael@bretterklieber.com>
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-3. The names of the authors may not be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-This code cannot simply be copied and put under the GNU Public License or
-any other GPL-like (LGPL, GPL2) License.
diff --git a/REFLECTION-DEV b/REFLECTION-DEV
new file mode 100644
index 0000000..66971ec
--- /dev/null
+++ b/REFLECTION-DEV
@@ -0,0 +1,252 @@
+Extension [ <persistent> extension #147 radius version 1.4.0b1 ] {
+
+ - Constants [187] {
+ Constant [ integer RADIUS_ACCESS_REQUEST ] { 1 }
+ Constant [ integer RADIUS_ACCESS_ACCEPT ] { 2 }
+ Constant [ integer RADIUS_ACCESS_REJECT ] { 3 }
+ Constant [ integer RADIUS_ACCOUNTING_REQUEST ] { 4 }
+ Constant [ integer RADIUS_ACCOUNTING_RESPONSE ] { 5 }
+ Constant [ integer RADIUS_ACCESS_CHALLENGE ] { 11 }
+ Constant [ integer RADIUS_DISCONNECT_REQUEST ] { 40 }
+ Constant [ integer RADIUS_DISCONNECT_ACK ] { 41 }
+ Constant [ integer RADIUS_DISCONNECT_NAK ] { 42 }
+ Constant [ integer RADIUS_COA_REQUEST ] { 43 }
+ Constant [ integer RADIUS_COA_ACK ] { 44 }
+ Constant [ integer RADIUS_COA_NAK ] { 45 }
+ Constant [ integer RADIUS_USER_NAME ] { 1 }
+ Constant [ integer RADIUS_USER_PASSWORD ] { 2 }
+ Constant [ integer RADIUS_CHAP_PASSWORD ] { 3 }
+ Constant [ integer RADIUS_NAS_IP_ADDRESS ] { 4 }
+ Constant [ integer RADIUS_NAS_PORT ] { 5 }
+ Constant [ integer RADIUS_SERVICE_TYPE ] { 6 }
+ Constant [ integer RADIUS_LOGIN ] { 1 }
+ Constant [ integer RADIUS_FRAMED ] { 2 }
+ Constant [ integer RADIUS_CALLBACK_LOGIN ] { 3 }
+ Constant [ integer RADIUS_CALLBACK_FRAMED ] { 4 }
+ Constant [ integer RADIUS_OUTBOUND ] { 5 }
+ Constant [ integer RADIUS_ADMINISTRATIVE ] { 6 }
+ Constant [ integer RADIUS_NAS_PROMPT ] { 7 }
+ Constant [ integer RADIUS_AUTHENTICATE_ONLY ] { 8 }
+ Constant [ integer RADIUS_CALLBACK_NAS_PROMPT ] { 9 }
+ Constant [ integer RADIUS_FRAMED_PROTOCOL ] { 7 }
+ Constant [ integer RADIUS_PPP ] { 1 }
+ Constant [ integer RADIUS_SLIP ] { 2 }
+ Constant [ integer RADIUS_ARAP ] { 3 }
+ Constant [ integer RADIUS_GANDALF ] { 4 }
+ Constant [ integer RADIUS_XYLOGICS ] { 5 }
+ Constant [ integer RADIUS_FRAMED_IP_ADDRESS ] { 8 }
+ Constant [ integer RADIUS_FRAMED_IP_NETMASK ] { 9 }
+ Constant [ integer RADIUS_FRAMED_ROUTING ] { 10 }
+ Constant [ integer RADIUS_FILTER_ID ] { 11 }
+ Constant [ integer RADIUS_FRAMED_MTU ] { 12 }
+ Constant [ integer RADIUS_FRAMED_COMPRESSION ] { 13 }
+ Constant [ integer RADIUS_COMP_NONE ] { 0 }
+ Constant [ integer RADIUS_COMP_VJ ] { 1 }
+ Constant [ integer RADIUS_COMP_IPXHDR ] { 2 }
+ Constant [ integer RADIUS_LOGIN_IP_HOST ] { 14 }
+ Constant [ integer RADIUS_LOGIN_SERVICE ] { 15 }
+ Constant [ integer RADIUS_LOGIN_TCP_PORT ] { 16 }
+ Constant [ integer RADIUS_REPLY_MESSAGE ] { 18 }
+ Constant [ integer RADIUS_CALLBACK_NUMBER ] { 19 }
+ Constant [ integer RADIUS_CALLBACK_ID ] { 20 }
+ Constant [ integer RADIUS_FRAMED_ROUTE ] { 22 }
+ Constant [ integer RADIUS_FRAMED_IPX_NETWORK ] { 23 }
+ Constant [ integer RADIUS_STATE ] { 24 }
+ Constant [ integer RADIUS_CLASS ] { 25 }
+ Constant [ integer RADIUS_VENDOR_SPECIFIC ] { 26 }
+ Constant [ integer RADIUS_SESSION_TIMEOUT ] { 27 }
+ Constant [ integer RADIUS_IDLE_TIMEOUT ] { 28 }
+ Constant [ integer RADIUS_TERMINATION_ACTION ] { 29 }
+ Constant [ integer RADIUS_CALLED_STATION_ID ] { 30 }
+ Constant [ integer RADIUS_CALLING_STATION_ID ] { 31 }
+ Constant [ integer RADIUS_NAS_IDENTIFIER ] { 32 }
+ Constant [ integer RADIUS_PROXY_STATE ] { 33 }
+ Constant [ integer RADIUS_LOGIN_LAT_SERVICE ] { 34 }
+ Constant [ integer RADIUS_LOGIN_LAT_NODE ] { 35 }
+ Constant [ integer RADIUS_LOGIN_LAT_GROUP ] { 36 }
+ Constant [ integer RADIUS_FRAMED_APPLETALK_LINK ] { 37 }
+ Constant [ integer RADIUS_FRAMED_APPLETALK_NETWORK ] { 38 }
+ Constant [ integer RADIUS_FRAMED_APPLETALK_ZONE ] { 39 }
+ Constant [ integer RADIUS_CHAP_CHALLENGE ] { 60 }
+ Constant [ integer RADIUS_NAS_PORT_TYPE ] { 61 }
+ Constant [ integer RADIUS_ASYNC ] { 0 }
+ Constant [ integer RADIUS_SYNC ] { 1 }
+ Constant [ integer RADIUS_ISDN_SYNC ] { 2 }
+ Constant [ integer RADIUS_ISDN_ASYNC_V120 ] { 3 }
+ Constant [ integer RADIUS_ISDN_ASYNC_V110 ] { 4 }
+ Constant [ integer RADIUS_VIRTUAL ] { 5 }
+ Constant [ integer RADIUS_PIAFS ] { 6 }
+ Constant [ integer RADIUS_HDLC_CLEAR_CHANNEL ] { 7 }
+ Constant [ integer RADIUS_X_25 ] { 8 }
+ Constant [ integer RADIUS_X_75 ] { 9 }
+ Constant [ integer RADIUS_G_3_FAX ] { 10 }
+ Constant [ integer RADIUS_SDSL ] { 11 }
+ Constant [ integer RADIUS_ADSL_CAP ] { 12 }
+ Constant [ integer RADIUS_ADSL_DMT ] { 13 }
+ Constant [ integer RADIUS_IDSL ] { 14 }
+ Constant [ integer RADIUS_ETHERNET ] { 15 }
+ Constant [ integer RADIUS_XDSL ] { 16 }
+ Constant [ integer RADIUS_CABLE ] { 17 }
+ Constant [ integer RADIUS_WIRELESS_OTHER ] { 18 }
+ Constant [ integer RADIUS_WIRELESS_IEEE_802_11 ] { 19 }
+ Constant [ integer RADIUS_PORT_LIMIT ] { 62 }
+ Constant [ integer RADIUS_LOGIN_LAT_PORT ] { 63 }
+ Constant [ integer RADIUS_CONNECT_INFO ] { 77 }
+ Constant [ integer RADIUS_NAS_IPV6_ADDRESS ] { 95 }
+ Constant [ integer RADIUS_FRAMED_INTERFACE_ID ] { 96 }
+ Constant [ integer RADIUS_FRAMED_IPV6_PREFIX ] { 97 }
+ Constant [ integer RADIUS_LOGIN_IPV6_HOST ] { 98 }
+ Constant [ integer RADIUS_FRAMED_IPV6_ROUTE ] { 99 }
+ Constant [ integer RADIUS_FRAMED_IPV6_POOL ] { 100 }
+ Constant [ integer RADIUS_ERROR_CAUSE ] { 101 }
+ Constant [ integer RADIUS_ERROR_CAUSE_RESIDUAL_SESSION_CONTEXT_REMOVED ] { 201 }
+ Constant [ integer RADIUS_ERROR_CAUSE_INVALID_EAP_PACKET ] { 202 }
+ Constant [ integer RADIUS_ERROR_CAUSE_UNSUPPORTED_ATTRIBUTE ] { 401 }
+ Constant [ integer RADIUS_ERROR_CAUSE_MISSING_ATTRIBUTE ] { 402 }
+ Constant [ integer RADIUS_ERROR_CAUSE_NAS_IDENTIFICATION_MISMATCH ] { 403 }
+ Constant [ integer RADIUS_ERROR_CAUSE_INVALID_REQUEST ] { 404 }
+ Constant [ integer RADIUS_ERROR_CAUSE_UNSUPPORTED_SERVICE ] { 405 }
+ Constant [ integer RADIUS_ERROR_CAUSE_UNSUPPORTED_EXCEPTION ] { 406 }
+ Constant [ integer RADIUS_ERROR_CAUSE_ADMINISTRATIVELY_PROHIBITED ] { 501 }
+ Constant [ integer RADIUS_ERROR_CAUSE_REQUEST_NOT_ROUTABLE ] { 502 }
+ Constant [ integer RADIUS_ERROR_CAUSE_SESSION_CONTEXT_NOT_FOUND ] { 503 }
+ Constant [ integer RADIUS_ERROR_CAUSE_SESSION_CONTEXT_NOT_REMOVABLE ] { 504 }
+ Constant [ integer RADIUS_ERROR_CAUSE_OTHER_PROXY_PROCESSING_ERROR ] { 505 }
+ Constant [ integer RADIUS_ERROR_CAUSE_RESOURCES_UNAVAILABLE ] { 506 }
+ Constant [ integer RADIUS_ERROR_CAUSE_REQUEST_INITIATED ] { 507 }
+ Constant [ integer RADIUS_ACCT_STATUS_TYPE ] { 40 }
+ Constant [ integer RADIUS_START ] { 1 }
+ Constant [ integer RADIUS_STOP ] { 2 }
+ Constant [ integer RADIUS_ACCOUNTING_ON ] { 7 }
+ Constant [ integer RADIUS_ACCOUNTING_OFF ] { 8 }
+ Constant [ integer RADIUS_ACCT_DELAY_TIME ] { 41 }
+ Constant [ integer RADIUS_ACCT_INPUT_OCTETS ] { 42 }
+ Constant [ integer RADIUS_ACCT_OUTPUT_OCTETS ] { 43 }
+ Constant [ integer RADIUS_ACCT_SESSION_ID ] { 44 }
+ Constant [ integer RADIUS_ACCT_AUTHENTIC ] { 45 }
+ Constant [ integer RADIUS_AUTH_RADIUS ] { 1 }
+ Constant [ integer RADIUS_AUTH_LOCAL ] { 2 }
+ Constant [ integer RADIUS_AUTH_REMOTE ] { 3 }
+ Constant [ integer RADIUS_ACCT_SESSION_TIME ] { 46 }
+ Constant [ integer RADIUS_ACCT_INPUT_PACKETS ] { 47 }
+ Constant [ integer RADIUS_ACCT_OUTPUT_PACKETS ] { 48 }
+ Constant [ integer RADIUS_ACCT_TERMINATE_CAUSE ] { 49 }
+ Constant [ integer RADIUS_TERM_USER_REQUEST ] { 1 }
+ Constant [ integer RADIUS_TERM_LOST_CARRIER ] { 2 }
+ Constant [ integer RADIUS_TERM_LOST_SERVICE ] { 3 }
+ Constant [ integer RADIUS_TERM_IDLE_TIMEOUT ] { 4 }
+ Constant [ integer RADIUS_TERM_SESSION_TIMEOUT ] { 5 }
+ Constant [ integer RADIUS_TERM_ADMIN_RESET ] { 6 }
+ Constant [ integer RADIUS_TERM_ADMIN_REBOOT ] { 7 }
+ Constant [ integer RADIUS_TERM_PORT_ERROR ] { 8 }
+ Constant [ integer RADIUS_TERM_NAS_ERROR ] { 9 }
+ Constant [ integer RADIUS_TERM_NAS_REQUEST ] { 10 }
+ Constant [ integer RADIUS_TERM_NAS_REBOOT ] { 11 }
+ Constant [ integer RADIUS_TERM_PORT_UNNEEDED ] { 12 }
+ Constant [ integer RADIUS_TERM_PORT_PREEMPTED ] { 13 }
+ Constant [ integer RADIUS_TERM_PORT_SUSPENDED ] { 14 }
+ Constant [ integer RADIUS_TERM_SERVICE_UNAVAILABLE ] { 15 }
+ Constant [ integer RADIUS_TERM_CALLBACK ] { 16 }
+ Constant [ integer RADIUS_TERM_USER_ERROR ] { 17 }
+ Constant [ integer RADIUS_TERM_HOST_REQUEST ] { 18 }
+ Constant [ integer RADIUS_ACCT_MULTI_SESSION_ID ] { 50 }
+ Constant [ integer RADIUS_ACCT_LINK_COUNT ] { 51 }
+ Constant [ integer RADIUS_VENDOR_MICROSOFT ] { 311 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_RESPONSE ] { 1 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_ERROR ] { 2 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_PW_1 ] { 3 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_PW_2 ] { 4 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_LM_ENC_PW ] { 5 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_NT_ENC_PW ] { 6 }
+ Constant [ integer RADIUS_MICROSOFT_MS_MPPE_ENCRYPTION_POLICY ] { 7 }
+ Constant [ integer RADIUS_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES ] { 8 }
+ Constant [ integer RADIUS_MICROSOFT_MS_RAS_VENDOR ] { 9 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_DOMAIN ] { 10 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_CHALLENGE ] { 11 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP_MPPE_KEYS ] { 12 }
+ Constant [ integer RADIUS_MICROSOFT_MS_BAP_USAGE ] { 13 }
+ Constant [ integer RADIUS_MICROSOFT_MS_LINK_UTILIZATION_THRESHOLD ] { 14 }
+ Constant [ integer RADIUS_MICROSOFT_MS_LINK_DROP_TIME_LIMIT ] { 15 }
+ Constant [ integer RADIUS_MICROSOFT_MS_MPPE_SEND_KEY ] { 16 }
+ Constant [ integer RADIUS_MICROSOFT_MS_MPPE_RECV_KEY ] { 17 }
+ Constant [ integer RADIUS_MICROSOFT_MS_RAS_VERSION ] { 18 }
+ Constant [ integer RADIUS_MICROSOFT_MS_OLD_ARAP_PASSWORD ] { 19 }
+ Constant [ integer RADIUS_MICROSOFT_MS_NEW_ARAP_PASSWORD ] { 20 }
+ Constant [ integer RADIUS_MICROSOFT_MS_ARAP_PASSWORD_CHANGE_REASON ] { 21 }
+ Constant [ integer RADIUS_MICROSOFT_MS_FILTER ] { 22 }
+ Constant [ integer RADIUS_MICROSOFT_MS_ACCT_AUTH_TYPE ] { 23 }
+ Constant [ integer RADIUS_MICROSOFT_MS_ACCT_EAP_TYPE ] { 24 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP2_RESPONSE ] { 25 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP2_SUCCESS ] { 26 }
+ Constant [ integer RADIUS_MICROSOFT_MS_CHAP2_PW ] { 27 }
+ Constant [ integer RADIUS_MICROSOFT_MS_PRIMARY_DNS_SERVER ] { 28 }
+ Constant [ integer RADIUS_MICROSOFT_MS_SECONDARY_DNS_SERVER ] { 29 }
+ Constant [ integer RADIUS_MICROSOFT_MS_PRIMARY_NBNS_SERVER ] { 30 }
+ Constant [ integer RADIUS_MICROSOFT_MS_SECONDARY_NBNS_SERVER ] { 31 }
+ Constant [ integer RADIUS_MICROSOFT_MS_ARAP_CHALLENGE ] { 33 }
+ Constant [ integer RADIUS_OPTION_NONE ] { 0 }
+ Constant [ integer RADIUS_OPTION_TAGGED ] { 1 }
+ Constant [ integer RADIUS_OPTION_SALT ] { 2 }
+ Constant [ integer RADIUS_MPPE_KEY_LEN ] { 16 }
+ }
+
+ - Functions {
+ Function [ <internal:radius> function radius_auth_open ] {
+ }
+ Function [ <internal:radius> function radius_acct_open ] {
+ }
+ Function [ <internal:radius> function radius_close ] {
+ }
+ Function [ <internal:radius> function radius_strerror ] {
+ }
+ Function [ <internal:radius> function radius_config ] {
+ }
+ Function [ <internal:radius> function radius_add_server ] {
+ }
+ Function [ <internal:radius> function radius_create_request ] {
+ }
+ Function [ <internal:radius> function radius_put_string ] {
+ }
+ Function [ <internal:radius> function radius_put_int ] {
+ }
+ Function [ <internal:radius> function radius_put_attr ] {
+ }
+ Function [ <internal:radius> function radius_put_addr ] {
+ }
+ Function [ <internal:radius> function radius_put_vendor_string ] {
+ }
+ Function [ <internal:radius> function radius_put_vendor_int ] {
+ }
+ Function [ <internal:radius> function radius_put_vendor_attr ] {
+ }
+ Function [ <internal:radius> function radius_put_vendor_addr ] {
+ }
+ Function [ <internal:radius> function radius_send_request ] {
+ }
+ Function [ <internal:radius> function radius_get_attr ] {
+ }
+ Function [ <internal:radius> function radius_get_tagged_attr_data ] {
+ }
+ Function [ <internal:radius> function radius_get_tagged_attr_tag ] {
+ }
+ Function [ <internal:radius> function radius_get_vendor_attr ] {
+ }
+ Function [ <internal:radius> function radius_cvt_addr ] {
+ }
+ Function [ <internal:radius> function radius_cvt_int ] {
+ }
+ Function [ <internal:radius> function radius_cvt_string ] {
+ }
+ Function [ <internal:radius> function radius_salt_encrypt_attr ] {
+ }
+ Function [ <internal:radius> function radius_request_authenticator ] {
+ }
+ Function [ <internal:radius> function radius_server_secret ] {
+ }
+ Function [ <internal:radius> function radius_demangle ] {
+ }
+ Function [ <internal:radius> function radius_demangle_mppe_key ] {
+ }
+ }
+}
+
diff --git a/php-pecl-radius-dev.spec b/php-pecl-radius-dev.spec
index 9f6498a..7119540 100644
--- a/php-pecl-radius-dev.spec
+++ b/php-pecl-radius-dev.spec
@@ -28,16 +28,17 @@
%else
%global ini_name 40-%{pecl_name}.ini
%endif
+%global prever b1
Name: %{?sub_prefix}php-pecl-radius
-Version: 1.3.0
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.4.0
+Release: 0.1.%{prever}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Summary: Radius client library
License: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/radius
-Source0: http://pecl.php.net/get/radius-%{version}.tgz
+Source0: http://pecl.php.net/get/radius-%{version}%{?prever}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel
@@ -71,6 +72,10 @@ Obsoletes: php55w-pecl-%{pecl_name}
Obsoletes: php56u-pecl-%{pecl_name}
Obsoletes: php56w-pecl-%{pecl_name}
%endif
+%if "%{php_version}" > "7.0"
+Obsoletes: php70u-pecl-%{pecl_name}
+Obsoletes: php70w-pecl-%{pecl_name}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -98,12 +103,12 @@ sed -e 's/role="test"/role="src"/' \
%{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
-i package.xml
-mv %{pecl_name}-%{version} NTS
+mv %{pecl_name}-%{version}%{?prever} NTS
cd NTS
extver=$(sed -n '/#define PHP_RADIUS_VERSION/{s/.* "//;s/".*$//;p}' php_radius.h)
-if test "x${extver}" != "x%{version}"; then
- : Error: Upstream version is ${extver}, expecting %{version}.
+if test "x${extver}" != "x%{version}%{?prever}"; then
+ : Error: Upstream version is ${extver}, expecting %{version}%{?prever}.
exit 1
fi
cd ..
@@ -235,6 +240,9 @@ rm -rf %{buildroot}
%changelog
+* Mon Feb 15 2016 Remi Collet <remi@fedoraproject.org> - 1.4.0-0.1.b1
+- Update to 1.4.0b1 (beta)
+
* Mon Feb 15 2016 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
- Update to 1.3.0 (stable)