Fix ribbon breakage

Controls were accidentally broken when moved

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit ade099f5ee2febb23e4ece85a20377f2af0b94c2)

ticket: 7271
status: resolved
Fix 'renewable' checkbox text

fix 'renwable' typo and pad size.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit e0026eb4a5c7958d047440e12cc234b7c9a09865)

ticket: 7272
status: resolved
Send kfw 'obtain ticket' messages to main frame

Previous versions of kfw would attempt to send 'obtain tickets' messages
directly to the 'view' window by sending to the first child of the main
frame.  But with the ribbon UI, the ribbon toolbar is now the first child,
so that method no longer works.  Instead we now send the message to the
main frame and the main frame forwards to the active view.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 648f70f51ce7d130a2ba921c33f6cc152f097440)

ticket: 7273
status: resolved
Add 'read-only principal' flag

Reserve the high-order 16 bits of dlgtype for flags.
Add DLGFLAG_READONLY_PRINC.  When specified, the get tickets dialog
does not allow the user to change the principal.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 88f425a7169a1f1d38b89d80a167f58e8ce475e8)

ticket: 7274
status: resolved
Set kfw GUI read-only princ flag when appropriate

When receiving a request to obtain tickets (from another process), if a
particular principal is requested, set the read-only flag to prevent
the user from changing the principal.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit b89802f0a491c6e8c6a320bc1af2b2bbbdb92669)

ticket: 7275
status: resolved
Use file mapping to marshall message data

GlobalAlloc() is no longer supported for this purpose.
Also split out leash message marshalling code into a separate function
acquire_tkt_send_message_leash and improve string copy safety.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit e2ad5d74adbf3edc8a7026cad8283c0077377e81)

ticket: 7276
status: resolved
Fix leashdll code to search for existing tickets

When we have a desired principal, search the entire credential cache
collection for existing tickets for that principal before using a prompter.
If no principal is specified, check only the default cache.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 0fa2c69633bfcb6c10e50c25c8e7802e7b060d8c)

ticket: 7278
status: resolved
KfW GUI -- update expand/collapse icon rendering

Use DrawThemeBackground() to draw the icons from the explorer treeview.

(cherry picked from commit 28d8e44e3474afcc1ea3b472c3336bd1017b55a6)

ticket: 7279
status: resolved
KfW GUI -- show ticket flags

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit ae2b7f989b34e14d03005fb5f45f3314ddab84b9)

ticket: 7280
status: resolved
Update kfw ribbon button graphics

Integrate bmp's from ui team.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit b6c944374e010e6a92c530beac2003c700c5855c)

ticket: 7281
status: resolved
Merge forwardable/proxiable in Get Tickets dialog

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit a61dd883285b409ead60e1657b7ff15eb6eb63bb)

ticket: 7282
status: resolved
Rename and move 'Clear Principal History'

Move it closer to the Principal edit box and rename to 'Clear History'

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit baa28cb97e5129bfa4d8fed37f34d7a688c03f42)

ticket: 7283
status: resolved
Change 'Get Ticket' to 'MIT Kerberos: Get Ticket'

Also improve string copy safety.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 4ae7790a9be2b7c5534362381f9cf932ae96ff29)

ticket: 7284
status: resolved
KfW GUI -- abbreviate durations

Map days -> d; hours -> h; minutes -> m

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit d3bad500077b597b28864abdbe003dbb99ffcc90)

ticket: 7285
status: resolved
Rename 'Get Ticket' to 'MIT Kerberos: Get Ticket'

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 3321554947a7930b0fe9bb6fdd89ccbbc5b4fd1c)

ticket: 7284
status: resolved
Use bold for entire row for default principal

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 5d6ed004b535a9d8bd7beb3f543fcf470d9d31fa)

ticket: 7286
status: resolved
KfW GUI -- add 'Options' category

Move 'View' and 'Options' panels from Home to Options category.
Rename to 'View Options' and 'Ticket Options' respectively.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit b657cf2a8b0f37d5a9908ba4c078794e54ea9ad7)

ticket: 7287
status: resolved
Remove copyright/version from Get Tickets dialog

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 5a00a830a01f1d0699bd316122a1475a4f92e9fb)

ticket: 7288
status: resolved
KfW WiX installer update copyright notice

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 8ad46fde4b39ac8c3dca1d0eacdf1ee35fa8d8ca)

ticket: 7289
status: resolved
KfW update copyright date (2012) for all modules

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit b9e412c29acc4469b50e86a070d3532751e66b61)

ticket: 7290
status: resolved