122 Commits

Author SHA1 Message Date
Love Hornquist Astrand
d8f6c9208b document krb5_config_*_string 2009-08-18 16:10:21 +02:00
Love Hornquist Astrand
574f8b6a6d document krb5_config_get_string 2009-08-18 16:05:21 +02:00
Love Hornquist Astrand
1aa17ecea6 document krb5_config_file_free 2009-08-18 16:01:32 +02: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
5c7b810f4f non have netinfo any more
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-25 16:26:50 +00:00
Love Hörnquist Åstrand
18d83c99de ENOMEM, not ret
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24984 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-29 09:02:08 +00:00
Love Hörnquist Åstrand
f0d769cccb set new filename
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24955 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 01:40:44 +00:00
Love Hörnquist Åstrand
27f682668f fix printf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24954 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 01:40:34 +00:00
Love Hörnquist Åstrand
240a220f87 Expand ~ to $HOME or pw_dir.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-25 15:35:42 +00:00
Love Hörnquist Åstrand
68d3cfe85c return the while list, not just the last entry.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-18 21:18:19 +00:00
Love Hörnquist Åstrand
d697ba5f85 return an error code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-18 21:17:31 +00:00
Love Hörnquist Åstrand
44629d5ce4 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-18 21:17:15 +00:00
Love Hörnquist Åstrand
8eb11663ce add copy config
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-18 21:16:19 +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
d542833a1f use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23280 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:26:18 +00:00
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
487bcca4e2 Use strcspn to remove \n from fgets result. Prompted by change by Ray
Lai of OpenBSD via Björn Sandell.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19213 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:36:36 +00:00
Love Hörnquist Åstrand
4676501833 (krb5_config_vget_strings): IBM checker thought it found a memory
leak, it didn't, but there was another error in the code, lets fix
that instead.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:59:19 +00:00
Love Hörnquist Åstrand
c3579d1f6c rename to avoid shadowing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15446 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 20:25:20 +00:00
Love Hörnquist Åstrand
c9fb7b3e5c (krb5_config_vget_time_default): use krb5_string_to_deltat
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-30 11:22:48 +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
Johan Danielsson
5e02dc0ec1 allow parsing directly from strings with
krb5_config_parse_string_multi


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13798 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-26 07:14:28 +00:00
Love Hörnquist Åstrand
c5bd98ca49 (krb5_config_parse_file_debug): punt if there is binding before a
section declaration. Bug found by Arkadiusz Miskiewicz <arekm@pld-linux.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12999 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-13 13:20:46 +00:00
Love Hörnquist Åstrand
8f56b409d0 fix another int vs krb5_error_code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:12:08 +00:00
Love Hörnquist Åstrand
c82cfd62b2 fix prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12825 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:04:43 +00:00
Johan Danielsson
13718918cb don't use NULL when we mean 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 19:04:55 +00:00
Johan Danielsson
05b5c444ac allow the use of more than one config file by using the new function
krb5_config_parse_file_multi


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-14 17:35:03 +00:00
Johan Danielsson
cfa4ac53b6 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:59:20 +00:00
Johan Danielsson
74dd1b1c88 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 08:58:40 +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
8f93d0ede7 (krb5_config_parse_file_debug): make sure of closing the file on error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-16 07:40:36 +00:00
Assar Westerlund
a6ed78be87 default -> def_value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8209 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-06 16:29:59 +00:00
Assar Westerlund
7dbf027b17 (krb5_config_vget_string_default, krb5_config_get_string_default): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8207 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-06 16:27:34 +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
5c3b3dfe12 (parse_binding): handle line with no whitespace before =
(krb5_config_parse_file_debug): set lineno earlier so that we don't
use it unitialized


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7193 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-19 22:15:11 +00:00
Assar Westerlund
04f50d1e48 rewritten to allow error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7066 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-30 23:05:45 +00:00
Assar Westerlund
9f1162bd9b (parse_list): don't run past end of line
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6701 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-04 06:38:36 +00:00
Assar Westerlund
8335186d31 (parse_list): handle blank lines at another place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6364 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 16:37:32 +00:00
Johan Danielsson
2ee4dab98b HAVE_NETINFO_NI_H -> HAVE_NETINFO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6069 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 09:25:45 +00:00
Johan Danielsson
7ac811dc6a abort -> krb5_abortx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6036 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-24 16:42:23 +00:00
Johan Danielsson
96608d6f41 (parse_binding): don't zap everything after first whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5834 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 18:20:03 +00:00
Assar Westerlund
0af81a0cd2 cast to unsigned char to make is* happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5563 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-17 01:43:02 +00:00
Assar Westerlund
c76c85ee21 (parse_binding): remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5112 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-13 20:40:10 +00:00
Johan Danielsson
dcb7052a66 (parse_binding, parse_section): make sure everything is ok before
adding to linked list


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5082 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-13 13:04:34 +00:00
Johan Danielsson
a2e41ee444 skip ws before checking for comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5080 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-13 13:00:21 +00:00
Assar Westerlund
645d732822 (parse_list, krb5_config_parse_file): ignore more spaces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5056 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 16:14:39 +00:00
Johan Danielsson
f5bc40d4b1 Add krb5_config_{vget,get}_{bool,time,int}_default.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4733 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-05 07:12:37 +00:00
Assar Westerlund
ee70295579 (krb5_config_vget_next): handle c == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4305 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-20 22:00:16 +00:00
Johan Danielsson
46569a331b Add context to all krb5_config_*get_*.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4256 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-03 21:14:31 +00:00