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
Jeffrey Altman
e5bc391f2e
roken: declare IN_LOOPBACKNET if necessary
...
Not all platforms provide a definition of
IN_LOOPBACKNET. Let roken define it if it is otherwise
undeclared.
Change-Id: Ibbac2fc4045671237fae23119746b37afb3b83fb
2011-05-17 12:02:09 -04:00
Jeffrey Altman
1301b1cc15
extend windows build system for additional subdirs
...
Permit an additional level of subdirectory depth in
the Windows build system
Change-Id: I2d248d3e917e13457ca135c4a221d723643159fa
2011-05-17 12:02:09 -04:00
Jeffrey Altman
e8aea380be
Fix get_windows_size() on Windows
...
The committed implementation of get_windows_size() failed
to compile on the Windows platform.
'int ret' declaration is moved to avoid unused variable
warning.
Change-Id: I0f6ea4524db736d539b10c6bd7836a770a5e7058
2011-05-17 12:02:08 -04:00
Love Hornquist Astrand
d051ecedb2
run over tree with find only once
2011-05-17 07:50:35 -07:00
Love Hornquist Astrand
2ac7566997
Fix logic for adding digestAlgorithm, original patch from Douglas E Engert.
2011-05-17 07:43:42 -07:00
Luke Howard
e00ae9267f
export gss_userok
2011-05-16 23:38:52 +02:00
Luke Howard
85918e7f12
gss_accept_sec_context disappeared from exports
2011-05-16 23:37:28 +02:00
Luke Howard
3a100237e6
fix link regression, use EVP_DigestFinal_ex
2011-05-16 23:36:02 +02:00
Luke Howard
c6008d2832
remove /usr/local/bin path from autogen.sh that escaped
2011-05-16 23:18:16 +02:00
Luke Howard
5431c4bcd3
Set MN_mech if mechanism doesn't set it
2011-05-16 18:20:53 +02:00
Luke Howard
6d9be164b7
add GSS_C_INQ_SSPI_SESSION_KEY for Kerberos
2011-05-16 16:50:01 +02:00
Luke Howard
6abb251957
check correct status code in attr_authorize_localname
2011-05-15 15:52:40 +02:00
Luke Howard
f6ce64e1da
fix uninitialised variable check in attr_pname_to_uid()
2011-05-15 14:20:56 +02:00
Luke Howard
66cd3b451c
remove incorrect NULLity check for gm_pname_to_uid
2011-05-15 14:17:58 +02:00
Luke Howard
1f02feb3dc
fix off-by-one in GSS_C_ATTR_LOCAL_LOGIN_USER attribute
2011-05-15 14:17:43 +02:00
Luke Howard
23bf28b1b8
remove unused variable from gss_add_cred_with_password
2011-05-15 01:51:08 +02:00
Luke Howard
810523e6c4
remove extraneous whitespace
2011-05-14 23:12:33 +02:00
Luke Howard
c73848354c
remove extraneous gss_acquire_cred_with_password declaration
2011-05-14 23:11:01 +02:00
Luke Howard
80f06cfc19
cleanup
2011-05-14 23:10:25 +02:00
Luke Howard
9d0a97c022
fix pointer error
2011-05-14 18:01:47 +02:00
Luke Howard
88e3968a9e
implement gss_add_cred_with_password over gss_acquire_cred_ext
2011-05-14 17:57:09 +02:00
Luke Howard
33d1877c21
use gss_const_OID for gss_acquire_cred_ext
2011-05-14 17:16:49 +02:00
Luke Howard
b9c96aa6de
use gss_acquire_cred_ext in test app
2011-05-14 17:13:51 +02:00
Luke Howard
cbebf13216
acquire_cred_with_password is a SPI symbol
2011-05-14 17:09:20 +02:00
Luke Howard
48719d5651
shim acquire_cred_with_password SPI into acquire_cred_ext
2011-05-14 17:00:55 +02:00
Luke Howard
dfba868910
Merge branch 'master' into lukeh/acquire-cred-ex-moonshot-integ
...
Conflicts:
lib/gssapi/Makefile.am
lib/gssapi/mech/gss_acquire_cred_with_password.c
lib/gssapi/test_context.c
lib/gssapi/version-script.map
2011-05-14 16:48:49 +02:00
Luke Howard
2a8dc252b6
add gss_acquire_cred_with_password test to test_context
2011-05-14 16:26:14 +02:00
Luke Howard
4a36c8dd7d
remove MN check in gss_authorize_localname because all names are MNs
2011-05-14 16:10:12 +02:00
Luke Howard
ab9c41d544
restore aclocal.m4 from master, for now.
2011-05-14 15:05:09 +02:00
Luke Howard
3069d80734
Merge branch 'master' into lukeh/acquire-cred-ex
2011-05-14 14:56:16 +02:00
Luke Howard
d8ff5844f7
Merge branch 'lukeh/acquire-cred-ex' of github.com:heimdal/heimdal into lukeh/acquire-cred-ex
2011-05-14 14:56:06 +02:00
Luke Howard
927cccd3c6
Merge branch 'master' into lukeh/moonshot
2011-05-14 14:51:55 +02:00
Luke Howard
272a30405f
remove trailing whitespace
2011-05-14 14:51:41 +02:00
Luke Howard
eec71dac7c
Revert "disable _gsskrb5_pname_to_uid, there's no aname_to_localname"
...
This reverts commit ad69ac97b1
.
2011-05-14 14:51:10 +02:00
Luke Howard
9f2cd17add
Revert "remove krb5 authorize_localname impl, there's no krb5_kuserok"
...
This reverts commit 4b92552c1e
.
2011-05-14 14:51:08 +02:00
Luke Howard
d1b553aae2
add some loopback detection in GSS dynamic loading
2011-05-13 02:27:01 +02:00
Luke Howard
6971125a79
add some loopback detection in GSS dynamic loading
2011-05-13 02:26:41 +02:00