26 Commits

Author SHA1 Message Date
Joseph Sutton
b0f196880c krb5: Check result of calling decode_Ticket()
Found by Coverity (Samba CID 241005).

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2023-11-02 20:19:54 -05:00
Viktor Dukhovni
f468c2fed1 Use actual Ticket to construct AP-REQ
When the cred passed krb5_build_ap_req() has a different name for the actual
ticket (e.g., because the entry came from a ccache with an alias name as the
entry name) then we were putting a Ticket on the wire with the name from the
cred rather than from the Ticket in the cred.  We don't think this is intended
or desirable.  The server should see the Ticket _exactly_ as minted by the KDC.

Perhaps AP-REQ should have used an OCTET STRING to contain the Ticket given that
Ticket is a PDU, which would make a byte-for-byte copy trivial, but as it is it
uses Ticket instead.  Therefore this commit has it decode the Ticket from the
cred and then C struct assign that value to the AP-REP's ticket field -- this
then copies the Ticket as exactly as vended.
2017-04-13 18:11:52 -05:00
Love Hornquist Astrand
687db64c56 Patch from Secure Endpoints/Asanka Herath for windows support 2009-12-21 08:45:28 +01:00
Love Hörnquist Åstrand
942a821fab remove RCSID
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-04 06:17:40 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
91351971f7 add KRB5_LIB_FUNCTION to all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Love Hörnquist Åstrand
da1b9cbc7f (krb5_build_ap_req): abort on internal asn1 encode error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13300 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-03 16:56:19 +00:00
Johan Danielsson
ddc308c36f use ASN1_MALLOC_ENCODE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 16:26:05 +00:00
Assar Westerlund
d27aa3b62e add some krb5_{set,clear}_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
5039be3bd2 copyright update
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6048 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-25 17:38:22 +00:00
Assar Westerlund
718de3288f (krb5_build_ap_req): new parameter `enctype'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4012 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-16 06:24:24 +00:00
Johan Danielsson
6a5f71af2a ret -> retdata
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3960 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 00:22:05 +00:00
Assar Westerlund
28c412eb49 (krb5_build_ap_req): check return value from malloc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3941 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 20:49:40 +00:00
Assar Westerlund
c145f0f8e4 const and char cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3699 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:30:15 +00:00
Johan Danielsson
5a32a5c8e7 Add copyright notice.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 21:40:05 +00:00
Johan Danielsson
884b9012ab Remove non ASN.1 principal code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2354 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 01:37:19 +00:00
Johan Danielsson
405d2be7c4 Update to use new decode/encode syntax.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1952 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-01 23:54:55 +00:00
Assar Westerlund
3246554682 new field names in `krb5_address'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1910 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-15 21:32:33 +00:00
Johan Danielsson
de43cd185b Replace contents with keyvalue. Prepare for use of asn1-types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1890 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-10 14:25:15 +00:00
Assar Westerlund
52faf2b575 free data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1324 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-09 20:02:32 +00:00
Assar Westerlund
aa0c1fc1c0 clean-up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1318 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-08 11:08:58 +00:00
Assar Westerlund
622edbbda3 no encryption here anymore
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1266 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-08 03:58:45 +00:00
Johan Danielsson
68ba594f44 Sending kvno makes secd happy.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1110 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-12-15 23:04:07 +00:00
Johan Danielsson
fad81ed299 Lots of random changes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1107 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-12-15 21:30:34 +00:00