Love Hornquist Astrand
f97f15a86c
bound len
2012-11-27 22:01:37 -08:00
Love Hornquist Astrand
764e701e2d
try to unconfuse coverity
2012-11-27 21:58:05 -08:00
Marco Molteni
8cdcd53a5a
Add comments to tcp_server.c, to make it easier for a newcomer to understand the krb5 API usage.
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2012-05-09 08:15:51 +02:00
Marco Molteni
e242c40746
Verify the existence of the keytab for tcp_server, gssapi_server
...
appl/test/tcp_server and gssapi_server try to open the keytab file only when processing a connection.
This patch verifies the existence of the keytab file on program startup, so that troubleshooting is easier. In addition it adds some comments.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2012-05-01 23:01:19 +02:00
Love Hörnquist Åstrand
d791e70894
support ipv6
2012-03-07 07:58:50 -08:00
Roland C. Dowdeswell
cc47c8fa7b
Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
...
We turn on a few extra warnings and fix the fallout that occurs
when building with --enable-developer. Note that we get different
warnings on different machines and so this will be a work in
progress. So far, we have built on NetBSD/amd64 5.99.64 (which
uses gcc 4.5.3) and Ubuntu 10.04.3 LTS (which uses gcc 4.4.3).
Notably, we fixed
1. a lot of missing structure initialisers,
2. unchecked return values for functions that glibc
marks as __attribute__((warn-unused-result)),
3. made minor modifications to slc and asn1_compile
which can generate code which generates warnings,
and
4. a few stragglers here and there.
We turned off the extended warnings for many programs in appl/ as
they are nearing the end of their useful lifetime, e.g. rsh, rcp,
popper, ftp and telnet.
Interestingly, glibc's strncmp() macro needed to be worked around
whereas the function calls did not.
We have not yet tried this on 32 bit platforms, so there will be
a few more warnings when we do.
2012-02-20 19:45:41 +00:00
Love Hornquist Astrand
84caf5bbd8
jgssapi_server is a java file
2011-11-09 08:04:52 -08:00
Love Hornquist Astrand
483afb3390
avoid compile warning
2011-10-29 19:14:14 -07:00
Love Hornquist Astrand
00773b4119
test verify_mic is both directions
2011-09-25 20:38:17 +02:00
Love Hornquist Astrand
d9dc7c9761
try read message in java code too
2011-09-25 19:40:02 +02:00
Love Hornquist Astrand
aabe9f0f4a
let client do unwrap, handle keytab for gss
2011-09-22 16:10:06 +02:00
Love Hornquist Astrand
d3b5bc36fe
support ipv6 and don't use channelbindings
2011-08-10 17:25:09 -07:00
Love Hornquist Astrand
960b5d4c5b
include jgssapi_server.c
2011-08-10 17:24:20 -07:00
Love Hornquist Astrand
ed573ce9fa
test java gssapi server
2011-08-10 17:24:01 -07:00
Love Hörnquist Åstrand
7aaba443bc
add NTMakefile and windows directories
2011-07-17 12:16:59 -07:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Luke Howard
79ff133ae9
make gss_acquire_cred_ext private
2011-05-20 14:31:08 +02:00
Luke Howard
b9c96aa6de
use gss_acquire_cred_ext in test app
2011-05-14 17:13:51 +02:00
Luke Howard
e128b0ca01
Merge branch 'master' into lukeh/moonshot
...
Conflicts:
lib/gssapi/krb5/external.c
lib/libedit/src/vi.c
2011-05-12 13:04:55 +02:00
Love Hornquist Astrand
0363c62520
no more strndup
2011-05-04 21:53:10 -07:00
Luke Howard
0fbfe9b38e
Revert MIT code from gss test application
2011-03-22 16:51:30 +11:00
Luke Howard
9455577b65
Merge branch 'master' of github.com:heimdal/heimdal
...
Conflicts:
lib/gssapi/gssapi/gssapi.h
lib/gssapi/gssapi_mech.h
lib/gssapi/mech/gss_mech_switch.c
2011-03-20 19:08:10 +11:00
Love Hornquist Astrand
679c708f5f
use krb5_err() instead of krb5_get_err_text()
2011-03-12 13:35:21 -08:00
Asanka Herath
d00f9984a5
Make roken build on windows
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-24 21:42:02 -08:00
Love Hornquist Astrand
c6bbdb545b
First drop of Windows build infrastructure from Secure Endpoints
2009-11-24 12:12:53 -08:00
Love Hörnquist Åstrand
c045e38e44
use krb5_principal_get_realm
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-16 07:59:55 +00:00
Love Hörnquist Åstrand
3b181a7dab
use gssapi/*.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:37:49 +00:00
Love Hörnquist Åstrand
e3fc4a73cb
use gssapi/*.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:37:39 +00:00
Love Hörnquist Åstrand
92237c38a7
use gssapi/*.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24397 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:37:29 +00:00
Love Hörnquist Åstrand
aab4e5a9ca
use gssapi/*.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:37:20 +00:00
Love Hörnquist Åstrand
aebaed1535
use gssapi/*.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24395 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:37:10 +00:00
Love Hörnquist Åstrand
25a7b258ea
make sure we dont print off the end of the gss_buffer_t, they are defined to not included NULL, in heimdal they are but thats an implementation detail, dont teach people about that. From: Christian Krause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-12 04:19:52 +00:00
Love Hörnquist Åstrand
63a449b610
use gsskrb5_extract_authz_data_from_sec_context()
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-08 16:14:30 +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
fb2afb96fd
catch error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:01:11 +00:00
Love Hörnquist Åstrand
ae597b8166
catch error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23511 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:57 +00:00
Love Hörnquist Åstrand
259576387c
Fix pointer vs strict alias rules.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21522 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:15:04 +00:00
Love Hörnquist Åstrand
b49b2cdabf
Fix pointer vs strict alias rules.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21521 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 13:13:40 +00:00
Love Hörnquist Åstrand
cc4333b758
remove cvs ignore files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 03:09:59 +00:00
Love Hörnquist Åstrand
1b98e1e231
Print status to stdout.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 16:55:00 +00:00
Love Hörnquist Åstrand
7ba2b2006c
rename des to hcrypto
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00
Love Hörnquist Åstrand
7f83c4dfb3
Don't assume display_string is truncated with NUL.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-16 21:56:01 +00:00
Love Hörnquist Åstrand
241e3bfd29
print both "server" and "client"
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19813 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 20:37:29 +00:00
Love Hörnquist Åstrand
535b3a9f8f
add nt_gss_common.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18708 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 20:40:20 +00:00
Love Hörnquist Åstrand
7127d167db
(proto): use keytab for krb5_recvauth
...
Patch from Ingemar Nilsson <init@pdc.kth.se >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17954 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-01 09:01:03 +00:00
Love Hörnquist Åstrand
5118c90498
Rename u_intXX_t to uintXX_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 11:11:43 +00:00
Love Hörnquist Åstrand
8586ef823b
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@16227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-25 10:55:21 +00:00
Love Hörnquist Åstrand
9dd2289f90
cast ssize_t to unsigned long, fix printf format
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14861 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-20 10:38:37 +00:00
Love Hörnquist Åstrand
d0cc9002ed
print out client principla of delegated credential
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-10 14:47:41 +00:00