refresh patch for #542868 from trunk

This commit is contained in:
Nalin Dahyabhai 2009-12-21 19:27:25 +00:00
parent 439a1c75e7
commit cc8c049fe1
2 changed files with 19 additions and 17 deletions

View File

@ -1,15 +1,13 @@
Punt a set_cred_option() call down to the mechanism for the first Punt a set_cred_option() call down to the mechanism for the first
credential that we have whose mechanism implements a set_cred_option() credential that we have whose mechanism implements a set_cred_option()
method. Not completely sure this is the correct fix, as we may need to method. It's not the complete set of changes from 1.7 to trunk, but
change gssspi_set_cred_option() to keep going if it gets GSS_S_UNAVAILABLE it should be enough to make gss_krb5_copy_ccache() work. RT#6594
back from the mechanism-specific function (which is what the Kerberos
mechanism, previously the only provider of a set_cred_option(), returns
if it doesn't understand the request). RT#6594
diff -up krb5/src/lib/gssapi/spnego/gssapiP_spnego.h krb5/src/lib/gssapi/spnego/gssapiP_spnego.h Index: src/lib/gssapi/spnego/gssapiP_spnego.h
--- krb5/src/lib/gssapi/spnego/gssapiP_spnego.h 2009-12-08 14:46:57.000000000 -0500 ===================================================================
+++ krb5/src/lib/gssapi/spnego/gssapiP_spnego.h 2009-12-08 14:46:20.000000000 -0500 --- src/lib/gssapi/spnego/gssapiP_spnego.h (revision 23481)
@@ -333,6 +333,15 @@ spnego_gss_inquire_sec_context_by_oid +++ src/lib/gssapi/spnego/gssapiP_spnego.h (revision 23482)
@@ -352,6 +352,15 @@
); );
OM_uint32 OM_uint32
@ -25,19 +23,20 @@ diff -up krb5/src/lib/gssapi/spnego/gssapiP_spnego.h krb5/src/lib/gssapi/spnego/
spnego_gss_set_sec_context_option spnego_gss_set_sec_context_option
( (
OM_uint32 *minor_status, OM_uint32 *minor_status,
diff -up krb5/src/lib/gssapi/spnego/spnego_mech.c krb5/src/lib/gssapi/spnego/spnego_mech.c Index: src/lib/gssapi/spnego/spnego_mech.c
--- krb5/src/lib/gssapi/spnego/spnego_mech.c 2009-12-08 14:47:01.000000000 -0500 ===================================================================
+++ krb5/src/lib/gssapi/spnego/spnego_mech.c 2009-12-08 14:46:20.000000000 -0500 --- src/lib/gssapi/spnego/spnego_mech.c
@@ -250,7 +250,7 @@ static struct gss_config spnego_mechanis +++ src/lib/gssapi/spnego/spnego_mech.c (revision 23482)
@@ -250,7 +250,7 @@
spnego_gss_inquire_sec_context_by_oid, /* gss_inquire_sec_context_by_oid */ spnego_gss_inquire_sec_context_by_oid, /* gss_inquire_sec_context_by_oid */
NULL, /* gss_inquire_cred_by_oid */ NULL, /* gss_inquire_cred_by_oid */
spnego_gss_set_sec_context_option, /* gss_set_sec_context_option */ spnego_gss_set_sec_context_option, /* gss_set_sec_context_option */
- NULL, /* gssspi_set_cred_option */ - NULL, /* gssspi_set_cred_option */
+ spnego_gss_set_cred_option, /* gssspi_set_cred_option */ + spnego_gss_set_cred_option, /* gssspi_set_cred_option */
NULL, /* gssspi_mech_invoke */ NULL, /* gssspi_mech_invoke */
spnego_gss_wrap_aead, spnego_gss_wrap_aead,
spnego_gss_unwrap_aead, spnego_gss_unwrap_aead,
@@ -2081,6 +2081,21 @@ spnego_gss_inquire_sec_context_by_oid( @@ -2187,6 +2187,21 @@
} }
OM_uint32 OM_uint32

View File

@ -10,7 +10,7 @@
Summary: The Kerberos network authentication system Summary: The Kerberos network authentication system
Name: krb5 Name: krb5
Version: 1.7 Version: 1.7
Release: 13%{?dist} Release: 14%{?dist}
# Maybe we should explode from the now-available-to-everybody tarball instead? # Maybe we should explode from the now-available-to-everybody tarball instead?
# http://web.mit.edu/kerberos/dist/krb5/1.7/krb5-1.7-signed.tar # http://web.mit.edu/kerberos/dist/krb5/1.7/krb5-1.7-signed.tar
Source0: krb5-%{version}.tar.gz Source0: krb5-%{version}.tar.gz
@ -216,6 +216,9 @@ to obtain initial credentials from a KDC using a private key and a
certificate. certificate.
%changelog %changelog
* Mon Dec 21 2009 Nalin Dahyabhai <nalin@redhat.com> - 1.7-14
- refresh patch for #542868 from trunk
* Thu Dec 10 2009 Nalin Dahyabhai <nalin@redhat.com> * Thu Dec 10 2009 Nalin Dahyabhai <nalin@redhat.com>
- move man pages that live in the -libs subpackage into the regular - move man pages that live in the -libs subpackage into the regular
%%{_mandir} tree where they'll still be found if that package is the %%{_mandir} tree where they'll still be found if that package is the
@ -1516,7 +1519,7 @@ popd
%patch88 -p1 -b .sizeof %patch88 -p1 -b .sizeof
%patch89 -p1 -b .largefile %patch89 -p1 -b .largefile
%patch90 -p0 -b .openssl-1.0 %patch90 -p0 -b .openssl-1.0
%patch91 -p1 -b .spnego-deleg %patch91 -p0 -b .spnego-deleg
gzip doc/*.ps gzip doc/*.ps
sed -i -e '1s!\[twoside\]!!;s!%\(\\usepackage{hyperref}\)!\1!' doc/api/library.tex sed -i -e '1s!\[twoside\]!!;s!%\(\\usepackage{hyperref}\)!\1!' doc/api/library.tex