Love Hörnquist Åstrand
854ef9a202
switch to krb5_set_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:25:00 +00:00
Love Hörnquist Åstrand
6752ef7fbd
simplify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:49:44 +00:00
Love Hörnquist Åstrand
ebdac0dcf0
Fix pointer vs strict alias rules.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21505 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 12:28:38 +00:00
Love Hörnquist Åstrand
348b5d79c4
Rename u_intXX_t to uintXX_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 09:31:15 +00:00
Love Hörnquist Åstrand
b15b04eadd
If there is a target principal, use the realm of the realm to change
...
the password with,
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:48:57 +00:00
Love Hörnquist Åstrand
2c714acde1
Constify password.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-08 11:38:01 +00:00
Love Hörnquist Åstrand
b612b2b0c8
update copyright
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15234 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-25 05:30:42 +00:00
Love Hörnquist Åstrand
223f4ceb07
(change_password_loop): on failing to find a kdc, set result_code to
...
KRB5_KPASSWD_HARDERROR
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14440 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-04 09:39:45 +00:00
Love Hörnquist Åstrand
64f52007a7
make procs static
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14418 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-29 01:53:34 +00:00
Love Hörnquist Åstrand
5d57b23ece
(process_reply): cast ssize_t to long and print that
...
From NetBSD via Havard Eidnes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14038 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-14 03:03:21 +00:00
Love Hörnquist Åstrand
36fc0ea221
implement krb5_set_password_using_ccache
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-02 19:21:36 +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
de787b6b66
add tcp support to the set protocol, should be cleaned up to enable
...
sharing code with krb5_sendto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13661 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-31 14:03:38 +00:00
Love Hörnquist Åstrand
601b8fcfa3
(process_reply): log into result_string if something goes bad, return
...
0 (even on failure), not the KPASSWD protocol error code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-03 22:14:47 +00:00
Johan Danielsson
744bd74233
krb5_princ_realm -> krb5_principal_get_realm
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-20 16:14:02 +00:00
Love Hörnquist Åstrand
9aaf686b2a
(setpw_send_request): free ap_req_data on failure
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-02 14:39:22 +00:00
Love Hörnquist Åstrand
68ba8507a5
revert previous
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12333 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-26 21:59:54 +00:00
Love Hörnquist Åstrand
cb584f6348
pacify mdoclink
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12331 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-26 21:56:28 +00:00
Love Hörnquist Åstrand
3dcad24844
ooops, remove cut and paste error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12272 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-13 12:32:59 +00:00
Love Hörnquist Åstrand
052858243f
draft-ietf-cat-kerb-chg-password-02 and rfc3244 share the response packet
...
sure more constants now that they exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-13 11:28:39 +00:00
Love Hörnquist Åstrand
96a81c7ed7
implement rfc3244, partly from shadow@dementia.org
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12261 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-12 16:43:40 +00:00
Johan Danielsson
77c4778b71
(process_reply): fix reply length check calculation (reported by
...
various people)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11473 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-29 11:48:34 +00:00
Jacques A. Vidrine
430a7ebc58
Verify the combined lengths of the KRB_AP_REP and KRB_PRIV in the set
...
password response.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11337 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 16:14:34 +00:00
Johan Danielsson
375526d7de
(send_request): set AP_OPTS_USE_SUBKEY
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 15:34:35 +00:00
Johan Danielsson
1dd4a01be4
make sure we return an error if there are no changepw hosts found
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-06-06 13:33:13 +00:00
Assar Westerlund
41e3066975
(krb5_passwd_result_to_string): add
...
change to use sequence numbers
connect the udp socket so that we can figure out the local address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-27 01:29:12 +00:00
Assar Westerlund
4c5fb0d0c5
(krb5_change_password): update to use krb5_krbhst API
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10077 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-17 23:11:06 +00:00
Assar Westerlund
1f31dd74e9
update to new krb5_eai_to_heim_errno
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9951 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 22:49:56 +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
Assar Westerlund
60ca2dc113
(str2data): add __attribute__
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9339 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-10 23:10:10 +00:00
Assar Westerlund
58b5fb62dd
(str2data): const-ify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9326 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-09 05:00:46 +00:00
Assar Westerlund
dadda4470a
(krb5_change_password): check for fd's being too large to select on
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 23:14:07 +00:00
Assar Westerlund
057e1e2be4
(krb5_change_password): try to be more careful when not to resend
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8829 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-26 11:31:06 +00:00
Assar Westerlund
c4155219d9
(krb5_change_password): clarify an expression, avoiding a warning
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-22 05:58:57 +00:00
Assar Westerlund
a222a1aca5
(krb5_change_password): make timeout 1 + 2^{0,1,...}. also keep track
...
if we got an old packet back and then just wait without sending a new
packet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-22 02:51:47 +00:00
Assar Westerlund
abaac48931
use a datagram socket and remove the sequence numbers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-22 01:14:24 +00:00
Johan Danielsson
031fb4c6e7
use roken_getaddrinfo_hostspec2
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8671 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-15 12:51:25 +00:00
Johan Danielsson
5d9b607c1a
use krb5_eai_to_heim_errno
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 13:06:07 +00:00
Assar Westerlund
dc17bca7aa
(krb5_change_password): remember to close the socket on error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8215 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-12 15:26:57 +00:00
Johan Danielsson
37097c9c07
use roken_getaddrinfo_hostspec
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-07 13:40:18 +00:00
Assar Westerlund
90731395f4
(get_kdc_address): use `krb5_get_krb_changepw_hst'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7575 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-11 23:14:51 +00:00
Assar Westerlund
11d0dc5d17
(krb5_change_password): use the correct address
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7568 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-07 04:48:33 +00:00
Assar Westerlund
661312f68b
re-write to use getaddrinfo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7492 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:02:18 +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
a269eaa059
(krb5_change_password): simplify by using `struct sockaddr_storage'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6526 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-24 18:42:22 +00:00
Assar Westerlund
cadde46b56
(get_kdc_address): only call gethostbyname2 with AF_INET6 if we
...
actually have IPv6. From "Brandon S. Allbery KF8NH"
<allbery@kf8nh.apk.net >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5324 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-01 03:12:06 +00:00
Assar Westerlund
f6eeec4d42
(get_kdc_address): use krb5_get_krb_admin_hst
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5135 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-25 17:31:37 +00:00
Assar Westerlund
dce96a31c3
changed struct fd_set' to
fd_set'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4074 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 06:17:18 +00:00
Johan Danielsson
d2e00843d8
remove unused label
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3962 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 00:23:51 +00:00
Assar Westerlund
272780c505
(send_request): free memory on error.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3942 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 20:50:17 +00:00