From 13f28c9253e2c2208fdce9db370c70dcef737aa2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 17 Jul 2016 18:04:37 +0200 Subject: php-pecl-krb5: 1.1.0 --- REFLECTION | 376 ++++++++++++++++++++++++++++++++++++++++++++++++++--- krb5-build.patch | 25 ---- php-pecl-krb5.spec | 29 ++--- 3 files changed, 369 insertions(+), 61 deletions(-) delete mode 100644 krb5-build.patch diff --git a/REFLECTION b/REFLECTION index f16fb44..2dd6b61 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,6 +1,6 @@ -Extension [ extension #99 krb5 version 1.0.0 ] { +Extension [ extension #93 krb5 version 1.1.0 ] { - - Constants [12] { + - Constants [13] { Constant [ integer GSS_C_DELEG_FLAG ] { 1 } Constant [ integer GSS_C_MUTUAL_FLAG ] { 2 } Constant [ integer GSS_C_REPLAY_FLAG ] { 4 } @@ -13,9 +13,10 @@ Extension [ extension #99 krb5 version 1.0.0 ] { Constant [ integer GSS_C_BOTH ] { 0 } Constant [ integer GSS_C_INITIATE ] { 1 } Constant [ integer GSS_C_ACCEPT ] { 2 } + Constant [ integer KRB5_TL_DB_ARGS ] { 32767 } } - - Classes [6] { + - Classes [7] { Class [ class KRB5CCache ] { - Constants [0] { @@ -32,39 +33,85 @@ Extension [ extension #99 krb5 version 1.0.0 ] { - Methods [12] { Method [ public method initPassword ] { + + - Parameters [3] { + Parameter #0 [ $principal ] + Parameter #1 [ $pass ] + Parameter #2 [ array $options ] + } } Method [ public method initKeytab ] { + + - Parameters [3] { + Parameter #0 [ $principal ] + Parameter #1 [ $keytab ] + Parameter #2 [ array $options ] + } } Method [ public method getName ] { + + - Parameters [0] { + } } Method [ public method getPrincipal ] { + + - Parameters [0] { + } } Method [ public method getRealm ] { + + - Parameters [0] { + } } Method [ public method getLifetime ] { + + - Parameters [0] { + } } Method [ public method getEntries ] { + + - Parameters [0] { + } } Method [ public method open ] { + + - Parameters [1] { + Parameter #0 [ $src ] + } } Method [ public method save ] { + + - Parameters [1] { + Parameter #0 [ $dest ] + } } Method [ public method isValid ] { + + - Parameters [1] { + Parameter #0 [ $timeRemain ] + } } Method [ public method getTktAttrs ] { + + - Parameters [1] { + Parameter #0 [ $prefix ] + } } Method [ public method renew ] { + + - Parameters [0] { + } } } } @@ -85,24 +132,57 @@ Extension [ extension #99 krb5 version 1.0.0 ] { - Methods [7] { Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $principal ] + Parameter #1 [ $credentials ] + Parameter #2 [ $use_keytab ] + Parameter #3 [ array $config ] + } } Method [ public method getPrincipal ] { + + - Parameters [2] { + Parameter #0 [ $principal ] + Parameter #1 [ $noload ] + } } Method [ public method getPrincipals ] { + + - Parameters [1] { + Parameter #0 [ $filter ] + } } Method [ public method createPrincipal ] { + + - Parameters [2] { + Parameter #0 [ KADM5Principal $principal ] + Parameter #1 [ $password ] + } } Method [ public method getPolicy ] { + + - Parameters [1] { + Parameter #0 [ $policy ] + } } Method [ public method createPolicy ] { + + - Parameters [1] { + Parameter #0 [ KADM5Policy $policy ] + } } Method [ public method getPolicies ] { + + - Parameters [1] { + Parameter #0 [ $filter ] + } } } } @@ -121,92 +201,223 @@ Extension [ extension #99 krb5 version 1.0.0 ] { - Properties [0] { } - - Methods [29] { + - Methods [34] { Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $principal ] + Parameter #1 [ KADM5 $connection ] + Parameter #2 [ $noload ] + } } Method [ public method load ] { + + - Parameters [0] { + } } Method [ public method save ] { + + - Parameters [0] { + } } Method [ public method delete ] { + + - Parameters [0] { + } } Method [ public method rename ] { + + - Parameters [2] { + Parameter #0 [ $dst_name ] + Parameter #1 [ $dst_pw ] + } } Method [ public method changePassword ] { + + - Parameters [1] { + Parameter #0 [ $password ] + } } Method [ public method getPropertyArray ] { + + - Parameters [0] { + } } Method [ public method getName ] { + + - Parameters [0] { + } } Method [ public method getExpiryTime ] { + + - Parameters [0] { + } } Method [ public method setExpiryTime ] { + + - Parameters [1] { + Parameter #0 [ $time ] + } } Method [ public method getLastPasswordChange ] { + + - Parameters [0] { + } } Method [ public method getPasswordExpiryTime ] { + + - Parameters [0] { + } } Method [ public method setPasswordExpiryTime ] { + + - Parameters [1] { + Parameter #0 [ $time ] + } } Method [ public method getMaxTicketLifetime ] { + + - Parameters [0] { + } } Method [ public method setMaxTicketLifetime ] { + + - Parameters [1] { + Parameter #0 [ $time ] + } + } + + Method [ public method getMaxRenewableLifetime ] { + + - Parameters [0] { + } + } + + Method [ public method setMaxRenewableLifetime ] { + + - Parameters [1] { + Parameter #0 [ $time ] + } } Method [ public method getLastModifier ] { + + - Parameters [0] { + } } Method [ public method getLastModificationDate ] { + + - Parameters [0] { + } } Method [ public method getKeyVNO ] { + + - Parameters [0] { + } } Method [ public method setKeyVNO ] { + + - Parameters [1] { + Parameter #0 [ $kvno ] + } } Method [ public method getMasterKeyVNO ] { + + - Parameters [0] { + } + } + + Method [ public method setAttributes ] { + + - Parameters [1] { + Parameter #0 [ $attrs ] + } } Method [ public method getAttributes ] { + + - Parameters [0] { + } } Method [ public method getAuxAttributes ] { + + - Parameters [0] { + } } Method [ public method getPolicy ] { + + - Parameters [0] { + } } Method [ public method setPolicy ] { + + - Parameters [1] { + Parameter #0 [ $policy ] + } } Method [ public method clearPolicy ] { + + - Parameters [0] { + } } Method [ public method getLastSuccess ] { + + - Parameters [0] { + } } Method [ public method getLastFailed ] { + + - Parameters [0] { + } } Method [ public method getFailedAuthCount ] { + + - Parameters [0] { + } } Method [ public method resetFailedAuthCount ] { + + - Parameters [0] { + } + } + + Method [ public method setTLData ] { + + - Parameters [1] { + Parameter #0 [ $tldata ] + } + } + + Method [ public method getTLData ] { + + - Parameters [0] { + } } } } @@ -227,54 +438,147 @@ Extension [ extension #99 krb5 version 1.0.0 ] { - Methods [17] { Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $policy ] + Parameter #1 [ KADM5 $conn ] + } } Method [ public method load ] { + + - Parameters [0] { + } } Method [ public method save ] { + + - Parameters [0] { + } } Method [ public method delete ] { + + - Parameters [0] { + } } Method [ public method getPropertyArray ] { + + - Parameters [0] { + } } Method [ public method getName ] { + + - Parameters [0] { + } } Method [ public method getMinPasswordLife ] { + + - Parameters [0] { + } } Method [ public method setMinPasswordLife ] { + + - Parameters [1] { + Parameter #0 [ $min_life ] + } } Method [ public method getMaxPasswordLife ] { + + - Parameters [0] { + } } Method [ public method setMaxPasswordLife ] { + + - Parameters [1] { + Parameter #0 [ $max_life ] + } } Method [ public method getMinPasswordLength ] { + + - Parameters [0] { + } } Method [ public method setMinPasswordLength ] { + + - Parameters [1] { + Parameter #0 [ $min_length ] + } } Method [ public method getMinPasswordClasses ] { + + - Parameters [0] { + } } Method [ public method setMinPasswordClasses ] { + + - Parameters [1] { + Parameter #0 [ $min_classes ] + } } Method [ public method getHistoryNum ] { + + - Parameters [0] { + } } Method [ public method setHistoryNum ] { + + - Parameters [1] { + Parameter #0 [ $history_num ] + } } Method [ public method getReferenceCount ] { + + - Parameters [0] { + } + } + } + } + + Class [ class KADM5TLData ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [3] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method getType ] { + + - Parameters [0] { + } + } + + Method [ public method getData ] { + + - Parameters [0] { + } } } } @@ -293,26 +597,39 @@ Extension [ extension #99 krb5 version 1.0.0 ] { - Properties [0] { } - - Methods [9] { + - Methods [10] { Method [ public method registerAcceptorIdentity ] { + + - Parameters [1] { + Parameter #0 [ $keytab ] + } } Method [ public method acquireCredentials ] { + + - Parameters [3] { + Parameter #0 [ KRB5CCache $ccache ] + Parameter #1 [ $name ] + Parameter #2 [ $type ] + } } Method [ public method inquireCredentials ] { + + - Parameters [0] { + } } Method [ public method initSecContext ] { - Parameters [7] { Parameter #0 [ $target ] - Parameter #1 [ $input_token ] - Parameter #2 [ $reqflags ] - Parameter #3 [ $timereq ] - Parameter #4 [ &$output_token ] - Parameter #5 [ &$ret_flags ] - Parameter #6 [ &$time_rec ] + Parameter #1 [ $input_token ] + Parameter #2 [ $reqflags ] + Parameter #3 [ $timereq ] + Parameter #4 [ &$output_token ] + Parameter #5 [ &$ret_flags ] + Parameter #6 [ &$time_rec ] } } @@ -320,15 +637,19 @@ Extension [ extension #99 krb5 version 1.0.0 ] { - Parameters [6] { Parameter #0 [ $input_token ] - Parameter #1 [ &$output_token ] - Parameter #2 [ &$src_name ] - Parameter #3 [ &$ret_flags ] - Parameter #4 [ &$time_rec ] - Parameter #5 [ &$deleg ] + Parameter #1 [ &$output_token ] + Parameter #2 [ &$src_name ] + Parameter #3 [ &$ret_flags ] + Parameter #4 [ &$time_rec ] + Parameter #5 [ KRB5CCache $deleg ] } } Method [ public method getMic ] { + + - Parameters [1] { + Parameter #0 [ $message ] + } } Method [ public method verifyMic ] { @@ -341,9 +662,10 @@ Extension [ extension #99 krb5 version 1.0.0 ] { Method [ public method wrap ] { - - Parameters [2] { + - Parameters [3] { Parameter #0 [ $input ] Parameter #1 [ &$output ] + Parameter #2 [ $encrypt ] } } @@ -354,6 +676,12 @@ Extension [ extension #99 krb5 version 1.0.0 ] { Parameter #1 [ &$output ] } } + + Method [ public method getTimeRemaining ] { + + - Parameters [0] { + } + } } } @@ -373,15 +701,29 @@ Extension [ extension #99 krb5 version 1.0.0 ] { - Methods [4] { Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $keytab ] + } } Method [ public method doAuthentication ] { + + - Parameters [0] { + } } Method [ public method getDelegatedCredentials ] { + + - Parameters [1] { + Parameter #0 [ KRB5CCache $ccache ] + } } Method [ public method getAuthenticatedUser ] { + + - Parameters [0] { + } } } } diff --git a/krb5-build.patch b/krb5-build.patch deleted file mode 100644 index fe4d5da..0000000 --- a/krb5-build.patch +++ /dev/null @@ -1,25 +0,0 @@ -Index: php_krb5_kadm.h -=================================================================== ---- php_krb5_kadm.h (révision 333125) -+++ php_krb5_kadm.h (copie de travail) -@@ -25,15 +25,13 @@ - - #include "config.h" - --#ifdef SUCCESS --#define OLD_SUCC SUCCESS --#endif -+/* will be used in gssrpc/rpc_msg.h enum accept_stat */ -+#undef SUCCESS - #define SUCCESS KRB5_SUCCESS - #include --#undef SUCCESS --#ifdef OLD_SUCC --#define SUCCESS OLD_SUCC --#endif -+#undef SUCCESS -+/* default value in PHP and Kerberos */ -+#define SUCCESS 0 - - /* KADM5 Object */ - zend_class_entry *krb5_ce_kadm5; diff --git a/php-pecl-krb5.spec b/php-pecl-krb5.spec index acd9ecc..0d73f30 100644 --- a/php-pecl-krb5.spec +++ b/php-pecl-krb5.spec @@ -31,17 +31,13 @@ Summary: Kerberos authentification extension Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 1.0.0 -Release: 9%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 1.1.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz -# http://svn.php.net/viewvc?view=revision&revision=333127 -Patch0: krb5-build.patch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: krb5-devel >= 1.8 BuildRequires: pkgconfig(com_err) BuildRequires: %{?scl_prefix}php-devel > 5.2 @@ -78,6 +74,10 @@ Obsoletes: php56w-pecl-%{pecl_name} <= %{version} Obsoletes: php70u-pecl-%{pecl_name} <= %{version} Obsoletes: php70w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -115,13 +115,9 @@ mv %{pecl_name}-%{version} NTS %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS -%patch0 -p0 -b .build - -# http://svn.php.net/viewvc?view=revision&revision=333126 -chmod -x php_krb5_gssapi.h # Sanity check, really often broken -extver=$(sed -n '/#define PHP_KRB5_EXT_VERSION/{s/.* "//;s/".*$//;p}' php_krb5.h) +extver=$(sed -n '/#define PHP_KRB5_VERSION/{s/.* "//;s/".*$//;p}' php_krb5.h) if test "x${extver}" != "x%{version}"; then : Error: Upstream extension version is ${extver}, expecting %{version}. exit 1 @@ -164,8 +160,6 @@ peclbuild %{_bindir}/zts-php-config %install -rm -rf %{buildroot} - make -C NTS install INSTALL_ROOT=%{buildroot} # install config file @@ -225,12 +219,7 @@ cd ../ZTS %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %{?_licensedir:%license NTS/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -245,7 +234,6 @@ rm -rf %{buildroot} %files devel -%defattr(-,root,root,-) %doc %{pecl_testdir}/%{pecl_name} %{php_incldir}/ext/%{pecl_name} @@ -256,6 +244,9 @@ rm -rf %{buildroot} %changelog +* Sun Jul 17 2016 Remi Collet - 1.1.0-1 +- Update to 1.1.0 (PHP 5 and 7, stable) + * Thu Jun 23 2016 Remi Collet - 1.0.0-9 - rebuild for krb5 1.14 (F23+) -- cgit