]> git.ipfire.org Git - thirdparty/krb5.git/log
thirdparty/krb5.git
12 years agoMake kprop/kpropd work with RC4 session key
Greg Hudson [Sun, 3 Feb 2013 18:21:34 +0000 (13:21 -0500)] 
Make kprop/kpropd work with RC4 session key

In krb5_auth_con_initivector and mk_priv/rd_priv, stop assuming that
the enctype's block size is the size of the cipher state.  Instead,
make and discard a cipher state to get the size.

(cherry picked from commit 8d01455ec9ed88bd3ccae939961a6e123bb3d45f)

ticket: 7561
version_fixed: 1.11.1
status: resolved

12 years agoFix kdb5_util dump.c uninitialized warnings
Greg Hudson [Fri, 1 Feb 2013 16:52:48 +0000 (11:52 -0500)] 
Fix kdb5_util dump.c uninitialized warnings

Some versions of clang report an uninitialized variable warning (which
we treat as an error) in process_k5beta_record.  Due to the if-ladder
style of the function, uninitialized tmpint values can be copied
around in certain error cases, although the garbage values would be
ultimately ignored.  As a minimal fix, initialize the tmpint
variables.

(cherry picked from commit 1b7f7eef8a95bda0135159b2c06a168b56d9f42b)

ticket: 7560
version_fixed: 1.11.1
status: resolved

12 years agoFix "search" accesskey in layout.html
Tom Yu [Fri, 18 Jan 2013 03:42:23 +0000 (22:42 -0500)] 
Fix "search" accesskey in layout.html

The accesskey for the "search" link conflicted with the one for the
"contents" link.

(cherry picked from commit ba8a8a6b25027079ffd3e565a6e6ed450217a024)

ticket: 7559
version_fixed: 1.11.1
status: resolved

12 years agoFix typos in layout.html
Tom Yu [Fri, 18 Jan 2013 03:39:57 +0000 (22:39 -0500)] 
Fix typos in layout.html

There were multiple misplaced semicolons, etc.

(cherry picked from commit 95fc179c21cab802469907b2759f0e8bd1cafef1)

ticket: 7558
version_fixed: 1.11.1
status: resolved

12 years agoFix h1 end tag in Sphinx header titles
Tom Yu [Thu, 17 Jan 2013 22:56:53 +0000 (17:56 -0500)] 
Fix h1 end tag in Sphinx header titles

A </h1> end tag was incorrectly written as <h1>.  Also adjust style
settings so that the resulting computed style remains the same for
div.rel.

(cherry picked from commit 21e14aed841e109b31a9f27c0e78751e450364f2)

ticket: 7557
version_fixed: 1.11.1
status: resolved

12 years agoCheck for negative poll timeout in k5_sendto_kdc
Greg Hudson [Fri, 25 Jan 2013 18:11:27 +0000 (13:11 -0500)] 
Check for negative poll timeout in k5_sendto_kdc

(cherry picked from commit 74bee54227deb64a41c2e79f57dd2a2c5ea010a3)

ticket: 7553
version_fixed: 1.11.1
status: resolved

12 years agoFix iprop safety net in kdb5_util load
Greg Hudson [Thu, 17 Jan 2013 17:49:57 +0000 (12:49 -0500)] 
Fix iprop safety net in kdb5_util load

The error message was missing a newline, and the exit behavior causes
the database to be destroyed.

(cherry picked from commit b264161818eba43263b4d7f137dbae6b266907f0)

ticket: 7370
version_fixed: 1.11.1
status: resolved

12 years agoFix no_host_referral concatention in KDC
Greg Hudson [Fri, 11 Jan 2013 15:13:25 +0000 (10:13 -0500)] 
Fix no_host_referral concatention in KDC

If no_host_referral is set in both [kdcdefaults] and the realm
subsection, we're supposed to concatenate their values.  But the logic
in handle_referral_params would overwrite the value with the
non-concatenated realm value.  Similar bugs of this nature were fixed
in 639c9d0f5a7c68dc98a2a452abc05ca32443cddf (r22037) but this one was
missed.

(cherry picked from commit 6338d039cbd0b138642e3b123ac58dc802d1d907)

ticket: 7539
version_fixed: 1.11.1
status: resolved

12 years agoFix various result checks
Nickolai Zeldovich [Mon, 7 Jan 2013 06:37:19 +0000 (01:37 -0500)] 
Fix various result checks

Correct three cases where the wrong expression was checked to see if
an allocation function returned null.

[ghudson@mit.edu: commit message, patch splitting]

(cherry picked from commit a9ee4a040eeacab1d410ff9e4c862484b531c401)

ticket: 7534
version_fixed: 1.11.1
status: resolved

12 years agoFix initial call to svcraw_create
Nickolai Zeldovich [Mon, 7 Jan 2013 06:33:15 +0000 (01:33 -0500)] 
Fix initial call to svcraw_create

gssrpc raw services could not work because svcraw_create did not set
svcraw_private after allocating memory for it.

[ghudson@mit.edu: commit message, patch splitting]

(cherry picked from commit 5e3bf4ac6cb02601c5f10c5b2804fd5028c80119)

ticket: 7534

12 years agoFix gss_str_to_oid for OIDs with zero-valued arcs
Luke Howard [Sun, 30 Dec 2012 15:36:25 +0000 (10:36 -0500)] 
Fix gss_str_to_oid for OIDs with zero-valued arcs

gss_str_to_oid wasn't outputting any bytes for a zero-valued arc.  It
should output one byte with value 0.

[ghudson@mit.edu: commit message]

(cherry picked from commit 54fa4433df7412267375240aba40959e97ac4fe2)

ticket: 7523
version_fixed: 1.11.1
status: resolved

12 years agoFix DPRINT in ipropd_svc.c
Guillaume Rousse [Tue, 1 Jan 2013 06:40:34 +0000 (01:40 -0500)] 
Fix DPRINT in ipropd_svc.c

cea0b28045b262b1098f17f17f78b2efbf89a6c1 contained an incorrect
definition of DPRINT.  Fix it.

[ghudson@mit.edu: commit message]

(cherry picked from commit 02de9812378cf62293b4acbdaa5f1e13d9c38c6d)

ticket: 7525
version_fixed: 1.11.1
status: resolved

12 years agoAdd more formats to krb5_timestamp_to_sfstring
Tom Yu [Fri, 21 Dec 2012 20:45:53 +0000 (15:45 -0500)] 
Add more formats to krb5_timestamp_to_sfstring

krb5_timestamp_to_string() can produce ambiguous dates.  The final
fallback, "%d/%m/%Y %R", contains a European order date format that
can be confused with a US date format.  Add some additional strftime()
format strings, including locale-dependent formats and some ISO 8601
formats.  Remove the hardcoded strftime() format that had an ambiguous
date order.

(cherry picked from commit e8e34ead59b3e1fd28beb151c5e6efb47bc57bee)

ticket: 7458
version_fixed: 1.11.1
status: resolved

12 years agoUpdate patchlevel.h for krb5-1.11-postrelease
Tom Yu [Tue, 18 Dec 2012 03:27:54 +0000 (22:27 -0500)] 
Update patchlevel.h for krb5-1.11-postrelease

12 years agoUpdate README and patchlevel.h for krb5-1.11 krb5-1.11-final
Tom Yu [Tue, 18 Dec 2012 02:35:02 +0000 (21:35 -0500)] 
Update README and patchlevel.h for krb5-1.11

12 years agoAdd release string to index.rst page heading
Tom Yu [Tue, 18 Dec 2012 01:56:05 +0000 (20:56 -0500)] 
Add release string to index.rst page heading

(cherry picked from commit 296c51d3208ddc37b64f5a0b06812e2705995c4b)

ticket: 7515
version_fixed: 1.11
status: resolved

12 years agoUpdate acknowledgments
Tom Yu [Mon, 17 Dec 2012 23:59:20 +0000 (18:59 -0500)] 
Update acknowledgments

12 years agoRegenerate manpages
Tom Yu [Tue, 18 Dec 2012 00:43:35 +0000 (19:43 -0500)] 
Regenerate manpages

12 years agoClarify enctype settings in krb5_conf.rst
Tom Yu [Tue, 18 Dec 2012 00:22:52 +0000 (19:22 -0500)] 
Clarify enctype settings in krb5_conf.rst

Clarify the krb5.conf settings default_tkt_enctypes and
default_tgs_enctypes in krb5_conf.rst.

(cherry picked from commit b11883ad8647a73a12a17c1be2c75f5365719342)

ticket: 7513
version_fixed: 1.11
status: resolved

12 years agoAdd web pages to resources.rst
Tom Yu [Tue, 18 Dec 2012 00:04:59 +0000 (19:04 -0500)] 
Add web pages to resources.rst

In resources.rst, add links to the MIT Kerberos software and MIT
Kerberos Consortium web pages.

(cherry picked from commit 58774a2c96b3c19368b48864698b97f6e020cae4)

ticket: 7512
version_fixed: 1.11
status: resolved

12 years agoUpdate retiring-des with real-world experience
Ben Kaduk [Thu, 13 Dec 2012 20:26:38 +0000 (15:26 -0500)] 
Update retiring-des with real-world experience

We took notes when upgrading the ZONE.MIT.EDU realm to reduce
its usage of single-DES.  Use these to give examples for the upgrade
procedure, and flesh out some parts of it that were missing or
under-specified.

(cherry picked from commit d44dfe4c097c7bc8eff6fe4931208ebfd968dc44)

ticket: 7501
version_fixed: 1.11
status: resolved

12 years agoDocument enctypes
Tom Yu [Mon, 17 Dec 2012 02:13:10 +0000 (21:13 -0500)] 
Document enctypes

Add enctypes.rst to document Kerberos enctypes, including some
considerations about configuring and choosing enctypes.

[kaduk@mit.edu: normalize formatting and describe reply keys a bit more.]

(cherry picked from commit 2c70d6d4d679957f1b2a4770b87e1e111361320d)

ticket: 7507
version_fixed: 1.11
status: resolved

12 years agoAdd copyright footer to HTML docs
Tom Yu [Mon, 17 Dec 2012 20:44:27 +0000 (15:44 -0500)] 
Add copyright footer to HTML docs

The technique we use for inserting the feedback link in the footer
overrides the Sphinx basic/layout.html and agogo/layout.html footers
in a way that prevents us from getting the copyright link footer.
Copy the relevant part of the Sphinx basic/layout.html for now.

Add a copyright.rst that links to mitK5license.rst.

(cherry picked from commit 49d31402d77744a58dcd03808a94361ef011a594)

ticket: 7510
version_fixed: 1.11
status: resolved

12 years agoUpdate README for Sphinx documentation
Tom Yu [Mon, 17 Dec 2012 19:45:57 +0000 (14:45 -0500)] 
Update README for Sphinx documentation

The README pointed at the obsolete Texinfo documentation.  Update it
to point at the Sphinx documentation.

(cherry picked from commit 2af891a5112642636986c88b474519075c392a64)

ticket: 7509
version_fixed: 1.11
status: resolved

12 years agoPKINIT (draft9) null ptr deref [CVE-2012-1016]
Nalin Dahyabhai [Thu, 13 Dec 2012 19:26:07 +0000 (14:26 -0500)] 
PKINIT (draft9) null ptr deref [CVE-2012-1016]

Don't check for an agility KDF identifier in the non-draft9 reply
structure when we're building a draft9 reply, because it'll be NULL.

The KDC plugin for PKINIT can dereference a null pointer when handling
a draft9 request, leading to a crash of the KDC process.  An attacker
would need to have a valid PKINIT certificate, or an unauthenticated
attacker could execute the attack if anonymous PKINIT is enabled.

CVSSv2 vector: AV:N/AC:M/Au:N/C:N/I:N/A:P/E:P/RL:O/RC:C

[tlyu@mit.edu: reformat comment and edit log message]

(cherry picked from commit cd5ff932c9d1439c961b0cf9ccff979356686aff)

ticket: 7506
version_fixed: 1.11
status: resolved

12 years agoConditionally include MITKC logo in HTML doc
Tom Yu [Thu, 13 Dec 2012 23:07:51 +0000 (18:07 -0500)] 
Conditionally include MITKC logo in HTML doc

Conditionally include the MITKC logo in the HTML output from Sphinx if
the environment variable HTML_LOGO is set.  During official builds for
the web site, that environment variable will point to an appropriately
scaled copy of the MITKC logo.

Adjust HTML document colors to match logo.

(cherry picked from commit 7a0f65b38e471a69f2f7d900758260ed1f242d5f)

ticket: 7504
version_fixed: 1.11
status: resolved

12 years agoFix documentation browser resizing behavior
Tom Yu [Thu, 13 Dec 2012 14:53:23 +0000 (09:53 -0500)] 
Fix documentation browser resizing behavior

Remove hardcoded dimensions from a few CSS parameters to prevent
layout problems when readers resize their browsers to have a narrower
window.

Set a max-width: 60em on the main content so that text remains
readable on wide browser windows.

(cherry picked from commit bba7ed92a0b9800d9f5fdb14f5f66f755e9d92fa)

ticket: 7503
version_fixed: 1.11
status: resolved

12 years agoBetter names for doxygen-Sphinx bridge functions
Ben Kaduk [Wed, 12 Dec 2012 18:23:03 +0000 (13:23 -0500)] 
Better names for doxygen-Sphinx bridge functions

It is confusing when the codepath for the production doc build
involves calling functions with names like "test".  Rename things
which are in active use so that routines which are actually only
used for testing are more discernable as such.

(cherry picked from commit 060b1eb1e38b294495adab784da32ca4e9871d20)

ticket: 7505
version_fixed: 1.11
status: resolved

12 years agoMake the doc build quieter
Ben Kaduk [Wed, 12 Dec 2012 15:36:18 +0000 (10:36 -0500)] 
Make the doc build quieter

Don't print out every node processed (or not processed) in the
doxygen-Sphinx bridge, nor print out a summary of how many types
or functions were processed.

While here, tell doxygen to be quiet in its output as well, and
not print out each file that is generated.  It still outputs
warnings, though.

(cherry picked from commit 311347e5e9d9208e2d341b8f8aed37791a4de090)

ticket: 7495
version_fixed: 1.11
status: resolved

12 years agoAdd examples to init_creds.rst
Greg Hudson [Thu, 13 Dec 2012 20:53:43 +0000 (15:53 -0500)] 
Add examples to init_creds.rst

(cherry picked from commit 4dade44544dc838a2ca8929111c131b0dc5fe53a)

ticket: 7500
version_fixed: 1.11
status: resolved

12 years agoUse an empty challenge for the password question
Greg Hudson [Thu, 13 Dec 2012 19:53:58 +0000 (14:53 -0500)] 
Use an empty challenge for the password question

If a question's challenge is NULL, it is unnecessarily difficult for a
responder callback to detect whether it was asked.  So it's better to
use an empty challenge when there is no challenge data to communicate.
Do this for the "password" question.

(cherry picked from commit 70f2d9a093c71624269b2317c62ad0993126bc40)

ticket: 7499
version_fixed: 1.11
status: resolved

12 years agoDocument principal name interactions with DNS
Tom Yu [Mon, 10 Dec 2012 05:21:15 +0000 (00:21 -0500)] 
Document principal name interactions with DNS

Add princ_dns.rst to document the interactions of host-based Keberos
service principal names and DNS.

(cherry picked from commit 85c378e9e44ca184209056f118e75b6511cb40b8)

ticket: 7498
version_fixed: 1.11
status: resolved

12 years agoUpdate for krb5-1.11-beta2-postrelease
Tom Yu [Thu, 13 Dec 2012 01:49:58 +0000 (20:49 -0500)] 
Update for krb5-1.11-beta2-postrelease

12 years agoREADME and patchlevel.h for krb5-1.11-beta2 krb5-1.11-beta2
Tom Yu [Thu, 13 Dec 2012 01:05:14 +0000 (20:05 -0500)] 
README and patchlevel.h for krb5-1.11-beta2

12 years agoUpdate mkrel for SPHINX_ARGS
Tom Yu [Thu, 13 Dec 2012 01:19:17 +0000 (20:19 -0500)] 
Update mkrel for SPHINX_ARGS

Update mkrel so that it will explicitly set SPHINX_ARGS=-W to make
warnings fatal and so that it will work in an unconfigured tree.

(cherry picked from commit 6fbc0e5616a89368de6771208a5f2df8815842b0)

ticket: 7497
version_fixed: 1.11
status: resolved

12 years agoFix various integer issues
Tom Yu [Wed, 12 Dec 2012 21:51:02 +0000 (16:51 -0500)] 
Fix various integer issues

In kdc_util.c and spnego_mech.c, error returns from ASN.1 length
functions could be ignored because they were assigned to unsigned
values.  In spnego_mech.c, two buffer size checks could be rewritten
to reduce the likelihood of pointer overflow.  In dump.c and
kdc_preauth.c, calloc() could be used to simplify the code and avoid
multiplication overflow.

Reported by Nickolai Zeldovich <nickolai@csail.mit.edu>.

(cherry picked from commit d3c5450ddf0b20855e86dab41735d56c6860156b)

[tlyu@mit.edu: omitted pkinit fix because it's not conservative]

ticket: 7488
version_fixed: 1.11

12 years agoDocument API for getting anonymous tickets
Greg Hudson [Wed, 12 Dec 2012 20:46:41 +0000 (15:46 -0500)] 
Document API for getting anonymous tickets

In init_creds.rst, document how to get anonymous credentials from an
application.

(cherry picked from commit 9973812776fc69bc5fb8e3c7f85784cb295625f0)

ticket: 7496
version_fixed: 1.11
status: resolved

12 years agoRegenerate checked-in man pages
Ben Kaduk [Tue, 11 Dec 2012 22:19:44 +0000 (17:19 -0500)] 
Regenerate checked-in man pages

Pick up changes to kadmin.rst and krb5_conf.rst adding cross-references
for account lockout and detailing parameter expansion for keytab
and credentials cache names in krb5.conf

(cherry picked from commit 26481ee22377a46badbbf4bbdd8ae04265057205)

ticket: 7494
version_fixed: 1.11
status: resolved

12 years agoMake sphinx warnings fatal for doc build
Ben Kaduk [Tue, 27 Nov 2012 23:45:59 +0000 (18:45 -0500)] 
Make sphinx warnings fatal for doc build

We currently do not have any warnings.  Let us keep it that way by
making warnings fatal in maintainer-mode (and configurable on the
buildslaves).  Using sphinx-build -W also causes errors to be reported
in the exit status and picked up by make, which is quite useful.

In order to allow the build bot to use -W but end-users to not use it,
SPHINX_ARGS must be passed on the command line; it cannot be set by
the convenience target 'htmlsrc'.  Document this.

(cherry picked from commit 7b6758a09f92ccc386022bcc86e3a5fea472fdce)

ticket: 7468
version_fixed: 1.11
status: resolved

12 years agoMake building docs easier in an unconfigured tree
Ben Kaduk [Tue, 11 Dec 2012 05:13:30 +0000 (00:13 -0500)] 
Make building docs easier in an unconfigured tree

Instead of requiring the user to specify srcdir, top_srcdir, PYTHON,
and possibly more in the future, make an 'htmlsrc' target that does so
for them.

This also lets us do the clean in the same step, so that only one
command is required of the user.

(cherry picked from commit f6ef297fe537de3712fce751bad8a597ef32e0ed)

ticket: 7491
version_fixed: 1.11
status: resolved

12 years agoUpdate comments for RFC 3244 kpasswd extensions
Ben Kaduk [Mon, 10 Dec 2012 20:51:06 +0000 (15:51 -0500)] 
Update comments for RFC 3244 kpasswd extensions

Remove the inaccurate comments "unused" and replace them with
more useful representations of what they mean.

(cherry picked from commit f2cec6d908a8b15908f4de199540e5ad3486882b)

ticket: 7490
version_fixed: 1.11
status: resolved

12 years agoDo not document unused symbols
Ben Kaduk [Mon, 10 Dec 2012 20:02:14 +0000 (15:02 -0500)] 
Do not document unused symbols

The macro KRB5_KEYUSAGE_PA_REFERRAL was defined in an early revision
of draft-ietf-krb-wg-kerberos-referrals but did not make it into
RFC 6806.  We retain the definition so as to not break code implementing
the early draft, but need not document it.

Likewise, the krb5_octet_data structure and krb5_free_octet_data routine
are marked as having been originally introduced for PKINIT and "Do not
use this."  They are in fact unused, and should not be documented, but
the actual definitions must remain for compatibility.

(cherry picked from commit 6e6364f7c7613a6b8002f0f64864e7d34acea8be)

ticket: 7489
version_fixed: 1.11
status: resolved

12 years agoDon't use $(RM) in src/doc/Makefile.in
Ben Kaduk [Mon, 10 Dec 2012 23:13:52 +0000 (18:13 -0500)] 
Don't use $(RM) in src/doc/Makefile.in

We allow these rules to be used in an unconfigured tree, and some
makes do not supply a value for RM by default.

(cherry picked from commit 3f7394c1440f7526bc6f008f841b438d84411f3d)

ticket: 7492
version: 1.11
status: resolved

12 years agoFix typo
Ben Kaduk [Thu, 29 Nov 2012 00:15:05 +0000 (19:15 -0500)] 
Fix typo

We do not have any files with extension "rxt".

(cherry picked from commit db26cd1b6f422c20c062385e0daeb8c95137428d)

ticket: 7471
version_fixed: 1.11
status: resolved

12 years agoNote notice.txt's dependency on version.py
Ben Kaduk [Thu, 29 Nov 2012 00:06:44 +0000 (19:06 -0500)] 
Note notice.txt's dependency on version.py

This dependency has been in effect since the notice build was changed
to use the main conf.py, due to its unconditional execfile('version.py').
Adding another conditional in conf.py seems to add needless complication,
it is easier to just note the dependency in the Makefile and carry on.

(cherry picked from commit 9031b739fc4f9e4215e537855a853d2134a69ba9)

ticket: 7470
version_fixed: 1.11
status: resolved

12 years agoDo not include hidden files in the sidebar
Ben Kaduk [Wed, 28 Nov 2012 18:33:20 +0000 (13:33 -0500)] 
Do not include hidden files in the sidebar

We play games with hidden toctrees in the RST source to avoid
Sphinx warnings; make sure that they do not affect the rendered
output.

(cherry picked from commit b017751b711dfd70c8735f655a51e5ff860af49b)

ticket: 7467
version_fixed: 1.11
status: resolved

12 years agoDo not generate unused parts of toctree
Ben Kaduk [Tue, 27 Nov 2012 18:31:34 +0000 (13:31 -0500)] 
Do not generate unused parts of toctree

Our css only displays up to depth 3 of the toctree, partially
because the API reference content explodes at depth 4 and that would
not be pretty to see in the sidebar.  However, we would previously
always generate HTML for the full toctree and hide parts with CSS.
For the apiref, this proved to be about 65k per html file, and we
have one html file per function/type/macro.

Limit the depth of the toctree that gets generated to save on space
in the release tarball.

Unfortunately, there seems to be a Sphinx bug wherein the toctree
will only be generated to depth 1 for a document at a depth greater
than the maxdepth of the toctree, so the sidebar table of contents
on individual apiref pages will just be the toplevel toctree.
This issue is being tracked at
https://bitbucket.org/birkenfeld/sphinx/issue/1046/

(cherry picked from commit 81fc0331cdf8a41b346daaee32977d76ab645139)

ticket: 7466
version_fixed: 1.11
status: resolved

12 years agoReformat RST to avoid sphinx warnings
Ben Kaduk [Wed, 28 Nov 2012 19:19:43 +0000 (14:19 -0500)] 
Reformat RST to avoid sphinx warnings

Old versions of docutils will see inline markup (e.g., :ref:`foo`)
at the beginning of a line in the content of a directive block
and attempt to interpret that markup as options or arguments
to the directive.  RST intended as inline markup (as opposed to
modifying the behavior of the directive) will not be interpretable
in this context, and causes Sphinx to emit a warning.

Work around this behavior by always leaving a blank line before
the content of a directive block, forcing it to be interpreted
as content and not options or arguments.

The buggy behavior was only encountered in note environments, but
for consistency of style, also reformat warning and error blocks.

Note the new style constraint in doc/README.

(cherry picked from commit 8bff1e50c28b6f11b771add7bd7d4a57419a567b)

ticket: 7469
version_fixed: 1.11
status: resolved

12 years agoMake resources.rst more useful to non-devs
Tom Yu [Thu, 6 Dec 2012 23:35:59 +0000 (18:35 -0500)] 
Make resources.rst more useful to non-devs

Reorder the IRC channel listing so #kerberos is first.  (Developers
form a smaller part of our audience for this documentation set.)
Remove some details that are available on the wiki and not of interest
to non-developers.

Add a pointer to the wiki.

Fix minor grammar errors in Archives.

(cherry picked from commit 4e0d270faad7fabd773cb159b8cb8e03adb19462)

ticket: 7482
version_fixed: 1.11
status: resolved

12 years agoDon't return a host referral to the service realm
Greg Hudson [Fri, 7 Dec 2012 02:40:05 +0000 (21:40 -0500)] 
Don't return a host referral to the service realm

A host referral to the same realm we just looked up the principal in
is useless at best and confusing to the client at worst.  Don't
respond with one in the KDC.

(cherry picked from commit ee0d5eac353a13a194759b72cb44203fda1bf0fa)

ticket: 7483
version_fixed: 1.11
status: resolved

12 years agoFix typo for windows versions
Ben Kaduk [Wed, 5 Dec 2012 23:21:53 +0000 (18:21 -0500)] 
Fix typo for windows versions

We omit the patchlevel if it is zero, but the check whether
the patchlevel was zero was checking the wrong variable, and thus
always succeeding.

(cherry picked from commit de80646215b623b1ce16fe8a2c2db85bba531532)

ticket: 7487 (new)
queue: kfw

12 years agoAccess keys for the KfW ribbon interface
Ben Kaduk [Mon, 3 Dec 2012 19:21:55 +0000 (14:21 -0500)] 
Access keys for the KfW ribbon interface

Improve accessibility by actually enabling access keys for ribbon
elements (tap alt and follow the onscreen hints for keys to press),
instead of just underlining a letter in the name of each element.

Supply an underlined letter in the text of each element, corresponding
to this access key, even if there is not a shortcut key bound to that
element.  While here, fix conflicting assignment to 'R' on the 'options'
tab (between "Renewable Until" and "Automatic Ticket Renewal") by
making "Automatic Ticket Renewal" use 'T'.  Microsoft's UI recommendations
seem to say that access keys should be easy to locate when searching
through the menu, and thus using the first letter of the first or
second word is advisable.

The Ribbon XML Reference seems to indicate that these elements should
be "keytip" elements, but MSVS creates "keys" elements, which seem
to work, whereas "keytip" does not.  Apparently 'F' is standard for
the application button menu (which contains exit).  Access keys work
somewhat poorly for us in this menu, as they appear on top of the text
of the menu items, since we have no icons here.

(cherry picked from commit eacf40bdc52ae3c43dad58429086c39a8ce4d395)

ticket: 7486 (new)
queue: kfw

12 years agoRewrap the Leash ribbon conf file
Ben Kaduk [Tue, 4 Dec 2012 16:19:39 +0000 (11:19 -0500)] 
Rewrap the Leash ribbon conf file

A big pile of XML on one line is not very readable.
Use 'xmllint --format' to make things more sane.

(cherry picked from commit 1e362883dddc36bfb63b253e66485bbd8a1a50f7)

ticket: 7485 (new)
queue: kfw

12 years agoLeave 'OK' button visible in Leash AboutBox
Ben Kaduk [Mon, 3 Dec 2012 17:25:07 +0000 (12:25 -0500)] 
Leave 'OK' button visible in Leash AboutBox

The AboutBox dialog as specified in the resource file is larger than
the one we display; the dialog init routine marks several things as
non-visible, moves the 'OK' button up to where the now-invisible items
were, and shrinks the dialog's bounding rectangle.

However, the edit boxes containing copyright and version information
seem to always present as being on top of the 'OK' button, and their
background causes the button to appear almost invisible with the current
repositioning.

To keep the 'OK' button visible, reduce the amount that it is moved
(and the amount the dialog is shrunk) so that the button does not overlap
with the edit box.

(cherry picked from commit ceb486df4301608d5b2462011fed6534e60721bd)

ticket: 7484 (new)
queue: kfw

12 years agoRun make depend
Tom Yu [Wed, 5 Dec 2012 20:54:58 +0000 (15:54 -0500)] 
Run make depend

12 years agoBuild fixes for windows
Ben Kaduk [Tue, 4 Dec 2012 20:51:20 +0000 (15:51 -0500)] 
Build fixes for windows

Add entries to OBJS and SRCS as well as STLIBOBJS.

Use KRB5_CALLCONV at function definition as well as declaration.

Declare missing variable in _WIN32-conditional code.

(cherry picked from commit eef68e4dab824ef62dded1edb662d292ccad8984)

ticket: 7479
version_fixed: 1.11
status: resolved

12 years agoCross-reference account lockout documentation
Greg Hudson [Wed, 5 Dec 2012 16:42:55 +0000 (11:42 -0500)] 
Cross-reference account lockout documentation

Link to the database.rst description of policy objects when talking
about them.  Briefly mention the "default" policy.  Link to the
kadmin_local.rst description of policy fields when referencing them.
Describe policy fields more briefly, and expand the kadmin_local.rst
descriptions where appropriate.

(cherry picked from commit 718868423c7a1e712e54c841b88521e23d374745)

ticket: 7480
version_fixed: 1.11
status: resolved

12 years agoDocument account lockout configuration
Greg Hudson [Mon, 3 Dec 2012 18:24:36 +0000 (13:24 -0500)] 
Document account lockout configuration

(cherry picked from commit 3ad47a81c7e0e8a8952251e22e0056548597f462)

ticket: 7477
version_fixed: 1.11
status: resolved

12 years agoDocument key usage assigned number conflict
Zhanna Tsitkov [Fri, 30 Nov 2012 21:54:42 +0000 (16:54 -0500)] 
Document key usage assigned number conflict

Document the fact that the key usage type 26 is used by both
KBKRB5_KEYUSAGE_PA_S4U_X509_USER_REQUEST and
KRB5_KEYUSAGE_PA_S4U_X509_USER_REQUEST, while 27 - by
KRB5_KEYUSAGE_PA_S4U_X509_USER_REPLY and KRB5_KEYUSAGE_PA_SAM_RESPONSE.

Also, since KRB5_KEYUSAGE_PA_REFERRAL is not actually used in MIT Kerberos
code and is not defined in the latest referrals draft
(http://tools.ietf.org/html/draft-ietf-krb-wg-kerberos-referrals-15)
mark it as "unused".

(cherry picked from commit e5b3c98f2bdd5dfea1eee75edca8dcdf4af3bb0b)

ticket: 7474
version_fixed: 1.11
status: resolved

12 years agoDocument param expansion for keytab/ccache names
Zhanna Tsitkov [Thu, 29 Nov 2012 19:01:00 +0000 (14:01 -0500)] 
Document param expansion for keytab/ccache names

The DEFCCNAME, DEFCKTNAME and DEFKTNAME configuration options are
subjects to parameter expansion.  Also note that this feature
was first introduced in release 1.11.

(cherry picked from commit 59be40c78b0895ebc00a6400d129a4b3c7fd258b)

ticket: 7472
version_fixed: 1.11
status: resolved

12 years agoUpdate documentation Feature list with 1.11 items
Zhanna Tsitkov [Thu, 29 Nov 2012 16:51:42 +0000 (11:51 -0500)] 
Update documentation Feature list with 1.11 items

Also, change the reference for Camellia enc type to rfc6803 and
do minor table re-formatting.

(cherry picked from commit 4a3348582f948c36473512d59b9c9b7c247602f0)

ticket: 7456
version_fixed: 1.11
status: resolved

12 years agoFix spin-loop bug in k5_sendto_kdc
Greg Hudson [Thu, 29 Nov 2012 06:58:13 +0000 (01:58 -0500)] 
Fix spin-loop bug in k5_sendto_kdc

In the second part of the first pass over the server list, we passed
the wrong list pointer to service_fds, causing it to see only a subset
of the server entries corresponding to sel_state.  This could cause
service_fds to spin if an event is reported on an fd not in the
subset.

(cherry picked from commit 2b06a22f7fd8ec01fb27a7335125290b8ceb6f18)

ticket: 7454
version_fixed: 1.10.4
status: resolved

12 years agoAdd camellia_key_cleanup
Ben Kaduk [Thu, 22 Nov 2012 02:57:40 +0000 (21:57 -0500)] 
Add camellia_key_cleanup

Fix memory leak.

(cherry picked from commit 6b37134d163beeeb136b4a59109c523e0bf83f3b)

ticket: 7457
version_fixed: 1.11
status: resolved

12 years agoRemove last "document not in toctree" warnings
Ben Kaduk [Tue, 20 Nov 2012 23:06:22 +0000 (18:06 -0500)] 
Remove last "document not in toctree" warnings

There were two of them, for notice.rst and mitK5license.rst.
The former is included in the latter, which is linked to from
the mitK5features document but not listed in a table of contents
otherwise.  Includes are processed unconditionally, so we can
add notice.rst to the exclude_patterns array (formerly unused_docs)
and its content will still be included.

If we attempt to do the same for mitK5license.rst, it is not processed
at all, and the attempt to link to it will fail.  Instead, put a dummy
table of contents in the mitK5features document (which links to the
license document), with the "hidden" attribute.  This satisfies the
Sphinx need to know where all the input documents are without changing
the displayed table of contents.

(cherry picked from commit b358b505be4502a71495ce58b8444027121726ee)

ticket: 7447
version_fixed: 1.11
status: resolved

12 years agoRender macros as literals
Ben Kaduk [Sat, 17 Nov 2012 00:48:55 +0000 (19:48 -0500)] 
Render macros as literals

Some convenience macros are referring to and dereferencing pointers,
and Sphinx will get a bit confused trying to interpret this as markup.
There should never be any markup intended to be interpreted in the
value of a macro definition, so we can silence this class of
warnings by treating them as literals.  (In some sense, they actually
are literals, too.)

This will cause a warning for macros that only cause a
symbol to be defined, that is, a literal "#define MACRO" with no
initializer, due to the lack of body in the inline-literal markup.
Such macros should probably be added to the exclude list for conversion
to reStructuredText in the Doxygen-Sphinx bridge, as was already
done for KRB5_OLD_CRYPTO.  Support code to programmatically omit
macros of this sort is deliberately *not* included, so that explicit
action must be taken when a new macro is to be undocumented.

Also, strip leading and trailing whitespace from the macro name,
since this causes problems with the markup.

(cherry picked from commit 94947241bd347e9b4dd729c5d550150b7e8cd64c)

ticket: 7447

12 years agoHandle multiline macro definitions
Ben Kaduk [Mon, 19 Nov 2012 20:48:37 +0000 (15:48 -0500)] 
Handle multiline macro definitions

Compress them onto one line for printing in the generated table.

(cherry picked from commit 760155906bc47163bac1fb5622034a9d53e15294)

ticket: 7447

12 years agoExclude lists for doxygen API docs
Ben Kaduk [Wed, 21 Nov 2012 16:31:06 +0000 (11:31 -0500)] 
Exclude lists for doxygen API docs

Doxygen will pick up every function, macro, and typedef defined
in krb5.h; some of these may not actually be part of the public
API for one reason or another.  Provide hardcoded exclude lists
for macro/function/type names for which we do not want to emit
reStructuredText documentation, and check these lists when processing
the Doxygen XML output.

Seed these lists with the macros TRUE, FALSE, KRB5_OLD_CRYPTO,
KRB5_GENERAL__, KRB5_CALLCONV, KRB5_CALLCONV_C, KRB5_CALLCONV_WRONG,
KRB5INT_BEGIN_DECLS, KRB5INT_END_DECLS, and KRB5_ATTR_DEPRECATED,
and typedefs krb5_cc_ops and krb5_responder_context. The booleans
are compatibility cruft that we do not want to advertise, and the other
macros are for internal use for signalling and platform compatibility.
The typedefs are functioning just as forward declarations.

For consistency, remove KRB5_OLD_CRYPTO.rst from the macros index; it
had no content even when we did generate it.

(cherry picked from commit f17cc2c9edc4f36c96391d438ddeaf5bab5b2b65)

ticket: 7447

12 years agoHandle adjacent notes from doxygen more correctly
Ben Kaduk [Thu, 15 Nov 2012 21:27:57 +0000 (16:27 -0500)] 
Handle adjacent notes from doxygen more correctly

The Doxygen documentation seems to claim that adjacent @note entries
will be collapsed into a single "note" element, as separate paragraphs.
This seems to be reflected in the XML output: multiple <para> entries
in a single <simplesec kind="note"> with a <simplesecsep/> element
between them.

Our XML-to-RST converter gets the entire contents of the simplesec
element, parsed into a unicode string with a single newline between
paragraphs.  Paragraphs seem to always start with two spaces, though
I have not tracked down the origin of this behavior.  Prior to this
commit, we would just output this entire unicode string directly.
Since our template puts a tab character before the note string, this
means that the first paragraph is indented by a tab and two spaces,
and the second paragraph by just two spaces.  Sphinx warns about this,
as "block did not end with blank line; unexpected whitespace", and
the paragraphs are indented differently within the note.

Fix the warning by checking for newlines in the interior of the
parsed unicode string, and introducing the appropriate whitespace
for the Sphinx parser.

(cherry picked from commit 484ac9228b317b96a81c9e88778c521c54d49213)

ticket: 7447

12 years agoFix overflowing cell in HTML table
Ben Kaduk [Wed, 14 Nov 2012 18:44:08 +0000 (13:44 -0500)] 
Fix overflowing cell in HTML table

sphinx-build defaults to the 'tabulary' environment for tables,
but uses regular 'tabular' for those involving literal blocks,
since tabulary does not handle them properly.  It seems that this
deficiency of tabulary also applies to inline literals, which
are rendered as \code{} sections by the latex builder.
Fortunately, sphinx provides a workaround to force a particular
column specification for the table.

The requirement for a table:: statement after the tabularcolumns::
statement is very poorly documented.

(cherry picked from commit da396d7603e949faec594036dee6de0e8f44bddb)

ticket: 7447

12 years agoUpdate doxygen markup in krb5.hin
Ben Kaduk [Tue, 20 Nov 2012 18:13:12 +0000 (13:13 -0500)] 
Update doxygen markup in krb5.hin

A few places were using the standard C /* comment */ form, but
this is rendered poorly by doxygen through to our Sphinx bridge.
Use the special /**< comment */ form to get doxygen-specific behavior.
If the standard C comment form is used, the full comment (including
start and end markers) is included in the value of the macro, and
Sphinx then tries to treat the end of the comment as the start of
inline markup with no corresponding end-string, which is a warning.
Using the doxygen form of the comment, the contents of the comment
are put in a separate paragraph block, which is inserted in the
body of the generated RST document.

The markup for krb5_rd_priv() had a line that ended with an @c
markup statement without a symbol following it.  This confused
doxygen into not parsing any more of the comment.  The beginning
of the next line is a macro identifier with markup to auto-linkify it.
In RST, it is not possible to have a link and a terminal font on the
same text, so removing the @c is the appropriate fix.

There are also eleven deprecated functions which are replaced by
the krb5_c_* family of functions.  However, referring to this class
of functions as the "krb5_c_" class of functions results in Sphinx
attempting to interpret this statement as a link to a label elsewhere
in the document, and no such label exists.  To avoid this warning, use
"krb5_c_*" to refer to the class of functions, which is arguably
more correct anyways.

(cherry picked from commit 3070dcd18ea2d07f74afa35fa4a8cada373d9975)

ticket: 7447

12 years agoMake krb5_trace_info a typedef
Ben Kaduk [Mon, 19 Nov 2012 21:36:56 +0000 (16:36 -0500)] 
Make krb5_trace_info a typedef

Our doxygen-to-sphinx documentation bridge only processes typedefs
and not structure definitions, since we almost universally use
typedefs for our data structures.  krb5_trace_info is the sole
exception, so bring it into the fold.

While here, flesh out the comment a bit more.

(cherry picked from commit 6a019d5cff9aecb88591accf03ac737c6f910c69)

ticket: 7447

12 years agoUse en dash instead of hyphen
Ben Kaduk [Tue, 20 Nov 2012 17:47:12 +0000 (12:47 -0500)] 
Use en dash instead of hyphen

It should not be bracketed in whitespace.

(cherry picked from commit 22288fd3933830eaa76a8f9b0d1432d072a1fac3)

ticket: 7447

12 years agoRemove Test Coverage topic from documentation
Zhanna Tsitkov [Mon, 26 Nov 2012 22:32:44 +0000 (17:32 -0500)] 
Remove Test Coverage topic from documentation

(cherry picked from commit a1062d11629ae485ce3aa3344a52c902259c2311)

ticket: 7464
version_fixed: 1.11
status: resolved

12 years agoMove Release tag into footer for Sphinx HTML
Zhanna Tsitkov [Mon, 26 Nov 2012 21:45:08 +0000 (16:45 -0500)] 
Move Release tag into footer for Sphinx HTML

The current position of the Release tag is in the body of the main page
of the Sphinx html.  Move it to the footer.  This way the release number
can be viewed from every page.

(cherry picked from commit 3cd8934659c4558a5144191716085d094b08d44e)

ticket: 7462
version_fixed: 1.11
status: resolved

12 years agoRemove .doctrees when cleaning src/doc
Tom Yu [Mon, 26 Nov 2012 21:01:23 +0000 (16:01 -0500)] 
Remove .doctrees when cleaning src/doc

Sphinx produces .doctree pickles that can be over 17MB with the
current documentation.  Remove them when running "make clean" in
src/doc so that they don't pollute distribution tar files.

(cherry picked from commit 49931235536b1b5888532a4732d03f1d390042e2)

ticket: 7461
version_fixed: 1.11
status: resolved

12 years agoDocument krb5_get_init_creds_opt_set_in_ccache
Zhanna Tsitkov [Mon, 26 Nov 2012 18:44:16 +0000 (13:44 -0500)] 
Document krb5_get_init_creds_opt_set_in_ccache

More specifically, document that this new API was first
introduced in 1.11

(cherry picked from commit 63a344b05fb2543059c1049c93e3106a0c6aa853)

ticket: 7460
version_fixed: 1.11
status: resolved

12 years agoUpdate feature list in the documentation
Zhanna Tsitkov [Wed, 21 Nov 2012 19:45:44 +0000 (14:45 -0500)] 
Update feature list in the documentation

In Quick facts section:
 - restructure the Supported platforms section;
 - do not tie KfW to 1.11 release;
 - move references to GSS-API extensions to Feature list table.
In Feature list section:
 - reformat the table;
 - move PRNG and Pre-auth mechanisms into their own tables;
 - clarify GS2 feature description;
 - reference rfc6680 for GSS-API naming extensions.
Lowercase the words in the title of the document.

(cherry picked from commit 433329ec97598c14f8b64af3e6be7745501b7142)

ticket: 7455
version_fixed: 1.11
status: resolved

12 years agoRemove broken clean_hostname trace messages
Greg Hudson [Sun, 25 Nov 2012 22:53:02 +0000 (17:53 -0500)] 
Remove broken clean_hostname trace messages

The trace messages in krb5int_clean_hostname were outputting the
entire contents of the output buffer (mostly uninitialized garbage)
into the trace log.  Since these messages were essentially redundant
with messages in the callers, and were arguably at too low of a level
to begin with, simply remove them.

(cherry picked from commit d5aac5c1a010410e79cce4219e618d9ce27d8621)

ticket: 7459
version_fixed: 1.11
status: resolved

12 years agoUpdate for krb5-1.11-beta1-postrelease
Tom Yu [Wed, 21 Nov 2012 21:15:42 +0000 (16:15 -0500)] 
Update for krb5-1.11-beta1-postrelease

12 years agoUpdate patchlevel.h for krb5-1.11-beta1 krb5-1.11-beta1
Tom Yu [Wed, 21 Nov 2012 19:32:47 +0000 (14:32 -0500)] 
Update patchlevel.h for krb5-1.11-beta1

12 years agoUpdate acknowledgments
Tom Yu [Wed, 21 Nov 2012 19:31:02 +0000 (14:31 -0500)] 
Update acknowledgments

12 years agoUpdate sponsor list
Tom Yu [Wed, 21 Nov 2012 19:12:04 +0000 (14:12 -0500)] 
Update sponsor list

12 years agoUpdate change list
Tom Yu [Wed, 21 Nov 2012 18:45:19 +0000 (13:45 -0500)] 
Update change list

12 years agoUpdate mkrel for new doc build process
Tom Yu [Wed, 21 Nov 2012 00:41:56 +0000 (19:41 -0500)] 
Update mkrel for new doc build process

(cherry picked from commit 0657117a24e9c3d8b277225cf2e553df42b0f73c)

ticket: 7453
version_fixed: 1.11
status: resolved

12 years agoReword krb5_unparse_name_ext doxygen markup
Greg Hudson [Tue, 20 Nov 2012 17:33:14 +0000 (12:33 -0500)] 
Reword krb5_unparse_name_ext doxygen markup

Avoid using asterix characters in the documentation for
krb5_unparse_ext_name, since they get intepreted as markdown
punctuation when translated to RST.

(cherry picked from commit 8ca5a84d3af27283ca6ef309e9e634bfb4ce52da)

ticket: 7452
version_fixed: 1.11
status: resolved

12 years agoMajor change list for krb5-1.11
Tom Yu [Tue, 20 Nov 2012 20:23:32 +0000 (15:23 -0500)] 
Major change list for krb5-1.11

12 years agoAdd "Kerberos" to PDF titles
Tom Yu [Mon, 19 Nov 2012 21:34:42 +0000 (16:34 -0500)] 
Add "Kerberos" to PDF titles

(cherry picked from commit 703ee0a74900d9acb8dd48f60149a34e1b7411a8)

ticket: 7451
version_fixed: 1.11
status: resolved

12 years agoTests for kinit's detection of a keytab request
Ben Kaduk [Wed, 14 Nov 2012 20:20:16 +0000 (15:20 -0500)] 
Tests for kinit's detection of a keytab request

We must check that 'kinit -t keytab' and 'kinit -i' successfully
produce tickets, and have the specified warning output.

(cherry picked from commit 76259be582f1e0d07c2a8993741e4893c7fd6f74)

ticket: 7218
version_fixed: 1.11
status: resolved

12 years agoMake kinit smarter about using keytabs
Ben Kaduk [Thu, 27 Sep 2012 16:46:26 +0000 (12:46 -0400)] 
Make kinit smarter about using keytabs

Previously, we would happily accept -i or -t name and do nothing
with it, if -k was not given.  If the user is passing -i or -t, they
clearly want to use a keytab, so do so (but print a warning).

While here, enforce that only one of -t and -i is given.

(cherry picked from commit cfd85f4130e015bf823a745438e87641f9ead49e)

ticket: 7218

12 years agoAvoid using grep -q in configure.in
Greg Hudson [Thu, 15 Nov 2012 19:26:23 +0000 (14:26 -0500)] 
Avoid using grep -q in configure.in

grep -q isn't as portable as we would like, so don't use it.

(cherry picked from commit 2e002b96f5ce0a78d65b7f0c9e70c352788dea78)

ticket: 7448
version_fixed: 1.11
status: resolved

12 years agoRebuild krb5.conf.man for default enctypes
Ben Kaduk [Fri, 16 Nov 2012 22:05:23 +0000 (17:05 -0500)] 
Rebuild krb5.conf.man for default enctypes

Now that the Camellia enctypes are in the default lists for
permitted_enctypes, default_tkt_enctypes, and default_tgs_enctypes,
regenerate the man page to reflect that change.

ticket: 7446
version_fixed: 1.11
status: resolved

12 years agoAdd Camellia enctypes to default enctype lists
Greg Hudson [Wed, 14 Nov 2012 21:49:33 +0000 (16:49 -0500)] 
Add Camellia enctypes to default enctype lists

Add camellia256-cts-cmas and camellia128-cts-cmac to the default
permitted_enctypes, default_tkt_enctypes, and default_tgs_enctypes
lists, to simplify deployment of Camellia.  The new enctypes still
aren't on supported_enctypes, so won't be in the set of long-term keys
for principals without administrator intervention.

(cherry picked from commit 8f27ae9d0afb81f851ff56523882de3524031b9b)

ticket: 7446

12 years agoReplace UTF-8 with ASCII
Ben Kaduk [Tue, 6 Nov 2012 00:22:07 +0000 (19:22 -0500)] 
Replace UTF-8 with ASCII

We try to restrict non-ASCII to names.

Python does not accept U+2013 EN DASH as indicating a command-line
argument; U+2D HYPHEN-MINUS is required.

Replace U+201C LEFT DOUBLE QUOTATION MARK and U+201D RIGHT
DOUBLE QUOTATION MARK with ordinary ASCII quotes.

(cherry picked from commit b1ba4ac45345d93ecbba22626843b06f32b2262d)

ticket: 7433
version_fixed: 1.11
status: resolved

12 years agoRename doc subdirectories
Ben Kaduk [Wed, 7 Nov 2012 03:15:50 +0000 (22:15 -0500)] 
Rename doc subdirectories

We like these names better, and they match the PDF document filenames.

admins -> admin
appldev -> appdev
users -> user

and catch up where the names are used elsewhere.

The relay/ directory has been removed, with its contents moved to the
top level in build_this.rst and a new about.rst.

The section headers for kadmind, krb5kdc, sserver, kpasswd, kswitch,
and sclient are misdetected as conflict markers.
bigredbutton: whitespace

(cherry picked from commit ccaf2682c79974cee368d2f3b0611dabc1361df5)

ticket: 7433

12 years agoRemove trailing whitespace
Ben Kaduk [Wed, 14 Nov 2012 20:30:12 +0000 (15:30 -0500)] 
Remove trailing whitespace

(cherry picked from commit 07b66c2220ad1b38c5465cacc2537096afe332d2)

ticket: 7433

12 years agoUse release, not version, for HTML index
Ben Kaduk [Fri, 26 Oct 2012 21:50:57 +0000 (17:50 -0400)] 
Use release, not version, for HTML index

The full release string includes RELTAIL from patchlevel.h; it
is useful to know whether we are on a pre- or post-release branch.

(cherry picked from commit 6353783765cd51c8588490765098861ba36c7f08)

ticket: 7433

12 years agoMake glue for building PDFs
Ben Kaduk [Wed, 17 Oct 2012 00:11:14 +0000 (20:11 -0400)] 
Make glue for building PDFs

sphinx-build's latex output engine creates a subdirectory with
various latex files, and a Makefile.  The generated Makefile assumes
gmake, which we do not.  The logic needed in this makefile is rather
simple, so we just include it in src/doc/Makefile.in, even if we
do need a rather complicated shell expression to work in the subdirectory.

(cherry picked from commit f06725b7a98c16630f80d8cc1dd6386a7d21a058)

ticket: 7433

12 years agoUpdate conf.py for latex output
Ben Kaduk [Wed, 17 Oct 2012 00:09:17 +0000 (20:09 -0400)] 
Update conf.py for latex output

We do not want one giant PDF document; we want separate PDFs for
our various components.

The features document cannot be included in the list because the
generated LaTeX for tables with empty cells does not compile.

(cherry picked from commit d6d0455c13bdd137dca527219e4cd6ecce161fc3)

ticket: 7433

12 years agoUse main conf.py for NOTICE
Tom Yu [Fri, 19 Oct 2012 20:03:57 +0000 (16:03 -0400)] 
Use main conf.py for NOTICE

Generate the NOTICE file using the main conf.py, by using a special
tag when invoking sphinx-build.

While here, add notice.txt to the list of files removed by make clean.

(cherry picked from commit 3f7aebe3f77fc99200f863f66c064614509d7882)

ticket: 7433

12 years agoGenerate and use version.py for Sphinx
Tom Yu [Wed, 17 Oct 2012 22:12:52 +0000 (18:12 -0400)] 
Generate and use version.py for Sphinx

Sphinx's idea of the version number appears in the man pages and
compiled PDF documents, and shows up as metadata in the generated
HTML sources.

Extract the version information from the master source (patchlevel.h)
into a form usable by Sphinx.

(cherry picked from commit 07c77b51d33c23d3ea28d588adc43b6c5ec5c20f)

ticket: 7433