Commit Graph

26453 Commits

Author SHA1 Message Date
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
25e86d6f4d check for execinfo.h and backtrace() 2011-05-21 11:55:21 -07:00
Thomas Klausner
97df66c0a0 Put Nd argument after Nd macro.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-05-21 11:54:27 -07:00
Thomas Klausner
3772533acd Convert to UTF-8.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-05-21 11:54:21 -07:00
Thomas Klausner
db8e287e41 Use "Fl Fl" for long options.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-05-21 11:54:14 -07:00
Love Hornquist Astrand
05a432aaed let try to exclude __CFInitialize 2011-05-20 08:42:29 -07:00
Luke Howard
79ff133ae9 make gss_acquire_cred_ext private 2011-05-20 14:31:08 +02:00
Love Hornquist Astrand
9cf61bc762 add mech/compat.h for distribution 2011-05-19 00:02:06 -07:00
Love Hornquist Astrand
72fe85c267 fix enum vs int warning 2011-05-18 22:30:46 -07:00
Love Hornquist Astrand
1745da3636 fix const warning 2011-05-18 22:28:54 -07:00
Love Hornquist Astrand
c7c22aef44 clean slc-lex.c 2011-05-18 22:15:49 -07:00
Love Hornquist Astrand
e4580fe4cc add glue for krb5_einval 2011-05-18 22:00:37 -07:00
Love Hornquist Astrand
4c063f2955 quite const warning 2011-05-18 22:00:20 -07:00
Love Hornquist Astrand
c6c32a431f provide _krb5_einval and _krb5_debug_backtrace that will ease figuring out when it happens 2011-05-18 21:59:56 -07:00
Love Hornquist Astrand
492492e42a use new function krb5_einval instead of returning EINVAL directly 2011-05-18 21:59:23 -07:00
Love Hornquist Astrand
3ada607635 Final fixes from Christos Zoulas 2011-05-18 21:58:57 -07:00
Love Hornquist Astrand
9af798f09f sort, add Roland and Christos. 2011-05-18 21:57:46 -07:00
Jeffrey Altman
5523e33a9f windows: update README
provide additional details about the windows build system

Change-Id: I5196b8e743f3cc969e02f5954bdc6ff91c45e7f1
2011-05-19 00:32:54 -04:00
Jeffrey Altman
c591fb466f windows: merge module directory selection
permit an alternative location for the merge module
directory to be specified.

Change-Id: I911aca232132111c8378a75ff1f4ed63c59e9044
2011-05-19 00:32:53 -04:00
Jeffrey Altman
f51c82c245 link gssapi to heimbase.dll on windows
Change-Id: I4635dcdfd0a50353b27d1a4c22f09931ae6b6117
2011-05-19 00:32:53 -04:00
Love Hornquist Astrand
7da5085f07 introduce heim_builtin_expect 2011-05-18 21:23:47 -07:00
Jeffrey Altman
18b76b6236 fcache: prevent null pointer dereference
Validate krb5_ccache and krb5_cc_cursor inputs
before use.  Avoid null pointer dereference which
can occur if an application fails to properly check
return codes.

Change-Id: I8023808936e60cc7b8e57a062106cfcdc51ee7d7
2011-05-18 10:20:09 -04:00
Love Hornquist Astrand
305596d9ad Rename subsystem_DEPRECATED to subsystem_DEPRECATED_FUNCTION(X)
Start to explain what the replacement function is.
Generate the #define/#undef logic in generated header files.
Use gcc style where the deprecation warning is after the prototype.
2011-05-17 23:12:51 -07:00
Love Hornquist Astrand
9ed040da38 fix compile warning 2011-05-17 23:01:40 -07:00
Love Hornquist Astrand
5774dcfbd8 actually return datum with real content 2011-05-17 21:54:32 -07:00
Love Hornquist Astrand
553ad48e38 remove label no longer used 2011-05-17 21:49:40 -07:00
Love Hornquist Astrand
f78cb2ca4b Only include myflags if we use HAVE_DB3 2011-05-17 21:48:33 -07:00
Love Hornquist Astrand
01f0a1f509 move tsearch.c to autodetection for libroken.la 2011-05-17 21:47:02 -07:00
Love Hornquist Astrand
4c7ba73439 Default to false(?), at least default to something. 2011-05-17 21:22:45 -07:00
Love Hornquist Astrand
1c10632690 Add define for ret 2011-05-17 21:21:20 -07:00
Love Hornquist Astrand
9b07f0e847 Include <heimbase.h>. 2011-05-17 21:21:07 -07:00
Love Hornquist Astrand
b01fe66069 Use right variable with comparing lengths. Patch orignally from Jaideep Padhye 2011-05-17 21:17:59 -07:00
Jeffrey Altman
aaa4400942 Apply missing function modifiers
GSSAPI_CALLCONV, GSSAPI_LIB_FUNC, GSSAPI_LIB_CALL as appropriate

Change-Id: I5198cfc7dd665bdc064aa0e613dac7db7465e2b9
2011-05-17 14:02:49 -04:00
Jeffrey Altman
87aad6a13a Add NO_LOCALNAME
The pname to uid functionality at present assumes there is
an implementation of getpwnam() and that the local user
identifier is an integer.  On Windows, the local user identifier
is a SId.  Add NO_LOCALNAME as a build option so that Windows
(for now) can build without providing a getpwnam() implementation.

Change-Id: I04cfd6d2cd52e6228733f1da1dab420b453e6566
2011-05-17 13:56:37 -04:00
Jeffrey Altman
dbbf89bccf Add Luke's new gss functionality to Windows
Change-Id: I0109e0e5a3d819428ac0a81aafa26b812c8a9206
2011-05-17 13:52:35 -04:00
Jeffrey Altman
217ada7a06 use const consistently for acquire_cred
Change-Id: I000d954267efa16439e19b0604c660f3c5be791c
2011-05-17 13:51:12 -04:00
Jeffrey Altman
771f29a451 remove extra initializers to krb5_mech
Change-Id: Iee4d7dfd668a6e6da251b93dfd6ca3a7f7bcb062
2011-05-17 13:44:04 -04:00
Jeffrey Altman
13f63decb6 conditionally export kcm functions on windows
Change-Id: I3d11595e690467afccc4f82f4eafee1cb2736757
2011-05-17 13:40:58 -04:00
Jeffrey Altman
6c1ad560ea no C99 named struct initializers on Windows
commit f5f9014c90 added the
first use of C99 named struct initializers which are not
supported on Windows.  Remove their use in external.c and
in ks_dir.c.

Change-Id: Ibb6b2d5b3dbd4041cb638d2c7a9bd6f916fd45d7
2011-05-17 12:02:16 -04:00
Jeffrey Altman
6850d6a65f avoid uninit variable and unreachable code warnings
most of these warnings are not problems because of ample
use of abort() calls.  However, the large number of warnings
makes it difficult to identify real problems.  Initialize
the variables to shut up the compilers.

Change-Id: I8477c11b17c7b6a7d9074c721fdd2d7303b186a8
2011-05-17 12:02:16 -04:00
Jeffrey Altman
36dcd37cc7 use %p printf format spec for pointers
do not cast to unsigned long since a 64-bit pointer
and 32-bit long will truncate the value.

Change-Id: Ibeda98171ccbab4b55950bb02c858773e1028cbf
2011-05-17 12:02:15 -04:00
Jeffrey Altman
844fa0ad5a avoid calling hx509_free_cert() twice
in krb5_pk_enterprise_cert() pkinit.c, hx509_free_cert()
could be called twice.

Change-Id: I9911d38f1f926721dca2753c6296f26c66c474ad
2011-05-17 12:02:14 -04:00
Jeffrey Altman
52556b1b74 fix uninitialized vars in pkinit.c find_cert()
'start' must be initialized to '1'

'ret' to HX509_CERT_NOT_FOUND

Change-Id: I748bd9856f70b7d627082f73a3a22f1395a604ba
2011-05-17 12:02:14 -04:00
Jeffrey Altman
9bf311fc3c export krb5_kt_have_content() on windows
Change-Id: Iee6615e6e6d14d36546fadee5b3b374d750202cb
2011-05-17 12:02:13 -04:00
Jeffrey Altman
0a36d16131 add KRB5_LIB_FUNCTION/KRB5_LIB_CALL to kcm.c
Change-Id: I7bc2f54b968843c05aabf03afa556a3d31b696c0
2011-05-17 12:02:13 -04:00
Jeffrey Altman
0fa2edf620 install kcm.h on windows
Windows does not yet support the kcm.  However, the header
is now required for building lib/gssapi/ntlm so install it.

Change-Id: I9949794d1159797e11c3e6fdd5675ae857cf04a1
2011-05-17 12:02:12 -04:00
Jeffrey Altman
34748acc8f update libhx509-exports.def for renamed functions
Change-Id: I13bcc8501f62bb6cd5bc036f2a660b2ebd55af4f
2011-05-17 12:02:12 -04:00
Jeffrey Altman
75959422e1 update gssapi/ntlm for windows build
NTMakefile:
  replace ntlm/inquire_cred.c with ntlm/creds.c
  add ntlm/inquire_sec_context_by_oid.c
  add ntlm/iter_cred.c

add missing GSSAPI_CALLCONV function descriptors

conditionalize use of kcm functions with HAVE_KCM

Change-Id: Ia693f67304405bd540c57db8858c13314cd60322
2011-05-17 12:02:11 -04:00
Jeffrey Altman
31de117576 avoid C99 %z printf format spec in asn1 gen_decode
Windows does not support the %z printf format specification
indicating the variable is of size_t.  In gen_decode the
variable 'depth' does not need to be of 'size_t'.  'unsigned int'
will suffice.

Change-Id: Ic56290ba702f7681d5e11f9d23bfa3eb7274dbbe
2011-05-17 12:02:11 -04:00
Jeffrey Altman
9fb0ba53c5 windows: do not build lib/editline
lib/editline has been replaced in the tree by lib/libedit.
However, neither readline() implementation is required by
the Windows build at the present time.

Change-Id: I7d0390d1f03a1d25c3f79ad76206872b388d1d53
2011-05-17 12:02:10 -04:00