Commit Graph

120 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
0124c1d219 add krb5_principal_get_num_comp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23901 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 03:02:25 +00:00
Love Hörnquist Åstrand
bee840aafa allow : in realm names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-28 05:14:45 +00:00
Love Hörnquist Åstrand
fc8e9f3c8b Document krb5_sname_to_principal().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23851 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-20 11:16:54 +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
8910c5b507 N_()ify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-07 21:31:15 +00:00
Love Hörnquist Åstrand
1bf4289d86 Check return value of gethostname() and truncate string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23675 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:33:28 +00:00
Love Hörnquist Åstrand
7fcd266fdd use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 04:32:32 +00:00
Love Hörnquist Åstrand
d04259158c use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:29:38 +00:00
Love Hörnquist Åstrand
3e739f8ba4 Cast enum to int to avoid warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22991 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-15 15:55:21 +00:00
Love Hörnquist Åstrand
967fc11320 (_krb5_principal_compare_PrincipalName): new function to compare a
principal to a PrincipalName.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22751 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:08:17 +00:00
Love Hörnquist Åstrand
de57423148 add krb5_principal_set_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-24 12:06:30 +00:00
Love Hörnquist Åstrand
52d38ed2ad doxygenify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22549 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-29 09:37:25 +00:00
Love Hörnquist Åstrand
250ae721d0 spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21741 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 16:00:37 +00:00
Love Hörnquist Åstrand
7f1b54370c (nametypes) += static const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21285 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 12:30:55 +00:00
Love Hörnquist Åstrand
bcbae1850b (krb5_parse_nametype): parse nametype and return their integer values.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 04:30:06 +00:00
Love Hörnquist Åstrand
d8e764f7c0 Rename UNPARSE_NO_QUOTE to UNPARSE_DISPLAY.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:39:15 +00:00
Love Hörnquist Åstrand
fd2f735edd Make no-quote mean replace strange chars with space.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21074 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:35:10 +00:00
Love Hörnquist Åstrand
6a38e8d297 Support KRB5_PRINCIPAL_UNPARSE_NO_QUOTE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21073 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:23:41 +00:00
Love Hörnquist Åstrand
1f4259cddc Add support for parsing enterprise-names.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20223 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-15 04:17:04 +00:00
Love Hörnquist Åstrand
38434e8f3c update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19395 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-17 22:53:39 +00:00
Love Hörnquist Åstrand
bd5a0e8d6a More error string, handle realm-less printing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18548 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-18 06:53:22 +00:00
Love Hörnquist Åstrand
d95330bb65 Add krb5_unparse_name_flags and krb5_unparse_name_fixed_flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18534 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 17:07:30 +00:00
Love Hörnquist Åstrand
aa111ad072 Add krb5_parse_name_flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18531 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 16:44:42 +00:00
Love Hörnquist Åstrand
706ef0ecd5 (krb5_parse_name): set *principal to NULL the first thing we do, so
that on failure its set to a known value


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:30:15 +00:00
Love Hörnquist Åstrand
2894e05a71 Remove a double free introduced in 1.93
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17215 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 15:16:14 +00:00
Love Hörnquist Åstrand
c41e1b2980 (krb5_parse_name): remember to free realm in case of error
Coverity, NetBSD CID#1883


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17041 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 10:10:01 +00:00
Love Hörnquist Åstrand
55178a0d79 (krb5_425_conv_principal_ext2): remove memory leak in case of weird
formated dns replys.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17040 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 10:02:48 +00:00
Love Hörnquist Åstrand
a28a141ec2 Constify principal argument to on krb5_principal_get_ functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-11 17:48:38 +00:00
Love Hörnquist Åstrand
0f7be5896b (krb5_425_conv_principal_ex2): Remove shadowing variable.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15953 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 08:34:40 +00:00
Love Hörnquist Åstrand
43e3b9ca50 add krb5_425_conv_principal_ext2 that work just like
krb5_425_conv_principal_ext but takes a context variable for the
verification function


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15531 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-30 01:38:15 +00:00
Love Hörnquist Åstrand
ac94b1f03b rename index to idx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 21:16:59 +00:00
Love Hörnquist Åstrand
57f3997abe make default_v4_name_convert static
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-29 01:54:54 +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
5e2f96156f add krb5_principal_set_type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12949 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 04:52:06 +00:00
Love Hörnquist Åstrand
05cd3d1a7f (unparse_name): len can't be zero, so, don't check for that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12536 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-15 14:28:48 +00:00
Love Hörnquist Åstrand
7fa222d32b (unparse_name): make sure there are space for a NUL, set *name to NULL
when there is a failure (so caller can't get hold of a freed pointer)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12524 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-13 09:16:59 +00:00
Love Hörnquist Åstrand
283630104a prefix libasn1 types with heim_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-15 14:05:49 +00:00
Johan Danielsson
cf87a976ce don't allow trailing backslashes in components
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11511 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-21 15:30:53 +00:00
Assar Westerlund
7613548436 (krb5_425_conv_principal_ext): lookup AAAA rrs before A ones when
using the resolver to verify a mapping, also use getaddrinfo when
resolver is not available


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11235 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-26 13:31:40 +00:00
Johan Danielsson
16a9c7d1a0 actually lower case the lower case instance name (spotted by Derrick
Brashear)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-31 09:39:06 +00:00
Johan Danielsson
f203d222cf (krb5_parse_name): const qualify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:41:07 +00:00
Johan Danielsson
711a1c5f24 (krb5_425_conv_principal_ext): try using lower case realm as domain,
but only when given a verification function


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-20 09:46:20 +00:00
Assar Westerlund
b7b4d068d2 (krb5_principal_get_type): add
(default_v4_name_convert): add "smtp"


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-19 15:51:24 +00:00
Assar Westerlund
af8d40bb9f (krb5_425_conv_principal_ext): if the instance is the first component
of the local hostname, the converted host should be the long
hostname.  from <shadow@dementia.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10235 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 22:21:19 +00:00
Johan Danielsson
cbc173cc05 add functions `krb5_principal_get_realm' and
`krb5_principal_get_comp_string' that returns parts of a principal;
this is a replacement for the internal `krb5_princ_realm' and
`krb5_princ_component' macros that everyone seem to use


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-20 00:57:50 +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
90986d1e78 use MAXHOSTNAMELEN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9122 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-16 03:42:14 +00:00
Assar Westerlund
18bc0640ce add fnmatch.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-10 20:11:58 +00:00
Johan Danielsson
ffd71fd396 ,
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 10:05:51 +00:00