Commit Graph

112 Commits

Author SHA1 Message Date
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
6312b8eb30 p will always be true, check for p[0] instead. [CID-144] 2009-07-30 10:24:47 +02:00
Love Hörnquist Åstrand
2bd4c6523b drop krbv4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24510 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-26 01:12:33 +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
aa52c1ef26 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22889 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:51:54 +00:00
Love Hörnquist Åstrand
35b299229f Add --help.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21720 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-28 20:04:05 +00:00
Love Hörnquist Åstrand
362ecea7a3 Remove strerror workaround now that we don't include <X11/Xos.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 14:09:56 +00:00
Love Hörnquist Åstrand
3b896478e5 Don't include <X11/Xos.h>, its x11's "roken.h" and we do that just
fine ourself thanks.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 14:07:43 +00:00
Love Hörnquist Åstrand
5f8d8aa62e (main): argc_in_out argument to XtVaAppInitialize should be an 'int *'
accoring to manpage and headerfile, so remove the cast added in 1996
(rev 1.54)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17566 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-13 16:20:53 +00:00
Love Hörnquist Åstrand
d448f74010 Check return value from asprintf instead of string != NULL since it
undefined behavior on Linux. From Björn Sandell


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-22 17:17:44 +00:00
Love Hörnquist Åstrand
c41860a8ee use NULL as last argument to execl, not 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-06 11:23:54 +00:00
Love Hörnquist Åstrand
2830ca741b get_v4_tgt only used when compileing with kerberos 4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14506 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-08 23:38:01 +00:00
Johan Danielsson
03bae875ad use krb5_appdefault_boolean instead of krb5_config_get_bool
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-08 09:02:59 +00:00
Johan Danielsson
26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Johan Danielsson
b66d2709e0 protect the world from des_encrypt in crypt.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-22 17:30:24 +00:00
Love Hörnquist Åstrand
5ad3b9d8fb include <crypt.h>, From: Fredrik Ljungberg <flag@pobox.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-01 22:02:40 +00:00
Love Hörnquist Åstrand
fc82b86bb0 (verify_krb5): set mcred.client too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 18:57:49 +00:00
Love Hörnquist Åstrand
3026b3bd70 (verify_krb5): use krb5_cc_clear_mcred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:36:28 +00:00
Love Hörnquist Åstrand
3602b138c6 include kafs.h in the krb5 case
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-29 09:17:17 +00:00
Love Hörnquist Åstrand
f697d47d2f (GetPasswd): cast argument to isprint to unsigned char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-14 11:16:11 +00:00
Love Hörnquist Åstrand
7f03375e74 do krb5_afslog when compling with afs support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 14:18:56 +00:00
Assar Westerlund
11e49bd767 (verify): move ret to where it's used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-02-10 10:01:52 +00:00
Assar Westerlund
68823821a9 add --version as a special case
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 19:29:38 +00:00
Assar Westerlund
14da30bf65 srandom paren fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-10 14:12:43 +00:00
Assar Westerlund
20be9e286b use more randomness (arc4random + srandomdev)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10676 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-09 20:27:25 +00:00
Assar Westerlund
7906b0624f (verify_krb5): remove unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-23 22:20:04 +00:00
Assar Westerlund
99f53c4c8b new krb524_convert_creds_kdc_ccache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 13:11:33 +00:00
Johan Danielsson
904eb2b037 don't explicitly set the krb4 ticket file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-15 17:13:13 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
633782864b (main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Björn Groenvall
4efd6d8ddf Missing newline in printf.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8368 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-09 12:33:41 +00:00
Björn Groenvall
f3c11fde79 Not all systems implement setuid(2) the way you expect.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-09 09:59:47 +00:00
Assar Westerlund
231d5834ac (verfiy_krb5): get the v4-realm from the v5-ticket and not from the
default one.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-09 09:56:25 +00:00
Assar Westerlund
a321675515 (verify_krb5): add obtainting of v4 tickets.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-09 09:40:01 +00:00
Assar Westerlund
bf75fac82a large strc{py,at}_truncate -> strlc{py,at} replacement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6984 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:41:57 +00:00
Assar Westerlund
288f640276 (verify): use KRB_VERIFY_SECURE instead of 1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5569 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-17 22:35:48 +00:00
Assar Westerlund
77d90ff418 krb_verify_user_multiple -> krb_verify_user
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5557 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-16 17:30:01 +00:00
Björn Groenvall
298b64f1e8 Integrate Assars multi-realm patch.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5542 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-15 13:36:27 +00:00
Johan Danielsson
ec88c17777 add some if-braces to keep gcc happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5507 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-11 13:59:19 +00:00
Assar Westerlund
29c5cba17e (main): create place-holder ticket file with open(O_EXCL | O_CREAT)
instead of creat


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5065 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-07 23:37:34 +00:00
Johan Danielsson
a5f54865d4 merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Johan Danielsson
9a84c190d0 Check return values from XGrab*.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4790 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-22 01:33:30 +00:00
Assar Westerlund
ccbf259f64 remove redundant preprocessor stuff
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4663 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-24 04:20:28 +00:00
Björn Groenvall
490fbda2df Fix buffer overrun and non terminated string problem.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4651 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-22 11:34:54 +00:00
Assar Westerlund
fe41a052cd (init_words): recognize both -p' and -prog'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4632 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-21 13:36:17 +00:00
Assar Westerlund
bda4b95d4c strerror ugly fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4388 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-12 04:38:12 +00:00
Assar Westerlund
7dfe42ff25 old krb_verify_user
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4237 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-24 14:35:11 +00:00
Assar Westerlund
3ba57e454e new signature for krb_verify_user
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4205 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-15 17:11:26 +00:00
Johan Danielsson
a54776623b Make it build w/o krb4.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4067 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 03:58:43 +00:00
Johan Danielsson
f62acdf369 update from krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3612 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-14 22:37:30 +00:00