Commit Graph

1022 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07:00
Love Hörnquist Åstrand
b8ddbe73c4 quite down clang analyzer warnings for the generate asn1 code 2011-06-14 22:29:49 -07:00
Love Hornquist Astrand
ade3d65e73 more limits 2011-05-22 20:57:30 -07:00
Love Hörnquist Åstrand
48a91b7fc5 change prefix ETYPE_ to KRB5_ENCTYPE_ and provide compat symbols 2011-05-22 14:06:40 -07:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07: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
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
Love Hornquist Astrand
1a77d64a97 check encoding of MechTypeList 2011-05-07 06:34:36 -07:00
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Love Hornquist Astrand
074a30618f Try to parse inner structure of an octet string (limited to CONS SEQ right now) 2011-04-25 11:33:58 -07:00
Love Hornquist Astrand
3ae4c52cbc make _der_gmtime pickier about times is willing to convert 2011-04-23 19:57:14 -07:00
Love Hornquist Astrand
b507bdb54f if _der_gmtime() failes (which is can't right now but eventially will) return ASN1_BAD_TIMEFORMAT 2011-04-23 19:42:02 -07:00
Martin von Gagern
2caea73cef Make prim static to prevent its being exported.
Having that symbol exported clobbers the namespace and makes other
apps fail, most notably pdftex. I don't believe that the symbol is in
fact intended for public use. Fixes http://bugs.gentoo.org/357235 .
2011-03-03 18:27:54 +01:00
Love Hornquist Astrand
8704b871ff add enc-pa-rep(15) to ticket flags 2011-02-06 16:35:36 -08:00
Love Hornquist Astrand
fb29123dfd add KRB5-PADATA-REQ-ENC-PA-REP 2011-02-06 16:28:48 -08:00
Asanka C. Herath
e84b73370c Avoid conflicting malloc/free declarations in Bison 2010-11-24 15:33:28 -05:00
Asanka C. Herath
6bf16f5250 Windows: Use --one-code-file when building ASN1 2010-11-24 15:33:27 -05:00
Asanka C. Herath
59542f4298 Unreachable code to silence older compilers 2010-11-24 15:33:07 -05:00
Asanka C. Herath
610bd66bbd Windows: Support building using newer flex 2010-11-24 15:32:29 -05:00
Asanka C. Herath
1b32efe62c Windows: Include manifest dependencies by default when building tools 2010-11-24 15:32:20 -05:00
Asanka C. Herath
f40fe926ad Windows: Comprehensive clean target 2010-11-24 15:32:13 -05:00
Love Hornquist Astrand
46f10ca9c6 remove -template dependencies 2010-11-21 13:00:20 -08:00
Love Hornquist Astrand
6ce02c45a3 use --one-code-file 2010-11-20 13:52:28 -08:00
Andrew Bartlett
2e34d7cf6e heimdal: fixed the use of error_message() in heimdal
the lex code in heimdal had a function error_message() which is
confusingly the ame as a core function from the com_err library. This
replaces it with lex_error_message(), and allows Samba4 to have a
stricter check for duplicate symbols between it's components.

Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-11-08 13:43:25 -08:00
Andrew Bartlett
1d09e39d45 Don't segfault when in --one-file mode
The problem is that on Linux, fclose() of a NULL pointer segfaults

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-10-02 11:51:42 -07:00
Love Hornquist Astrand
5fc132d888 add _der_gmtime, use and test it 2010-09-29 13:32:39 -07:00
Love Hornquist Astrand
d05098b950 New drop with windows code from Secure Endpoints/Asanka 2010-09-14 10:08:03 -07:00
Love Hornquist Astrand
50ea273b5f clean better 2010-09-14 09:29:29 -07:00
Asanka Herath
84c42b3592 Windows: Regenerated libasn1-exports.def
Sorted and with data exports declared using DATA statements.
2010-09-14 08:03:36 -04:00
Asanka Herath
ed226d4241 Declare ASN.1 exported data using ASN1EXP 2010-09-14 08:03:35 -04:00
Asanka Herath
4c6cdf07c2 Fix calling convention for asn1 tests 2010-09-14 08:03:27 -04:00
Derrick Brashear
33e0d2c32e asn1 header generation misses newline
at some point asn1 header generation lost its trailing newline on
asn1_%s_units prototypes. put it back for neatness.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-08-28 13:31:46 -07:00
Asanka Herath
1a4ffdca13 Windows: Add missing dependency 2010-08-20 16:53:26 -04:00
Asanka Herath
3d83131be8 Export and calling convention annotation for lib/asn1 2010-08-20 13:14:10 -04:00
Asanka Herath
6ab44f06a3 Windows: Fix tests in lib/asn1 2010-08-20 13:06:57 -04:00
Asanka Herath
ac26475f2c Roll back asn1/gen_encode.c type safety patch 2010-08-20 13:06:57 -04:00
Asanka Herath
cdcdc5cad5 Windows: Version information for binaries 2010-08-20 13:06:54 -04:00
Asanka Herath
d83611238a Windows: Build a single heimdal.dll
Heimdal.dll is a combination of libasn1, libwind, libhcrypto, libhx509
and libkrb5.
2010-08-20 13:06:54 -04:00
Asanka Herath
ea4d8dbfdb Windows: Use EXEPREP and DLLPREP macros for processing binaries
Once DLLs and EXEs are built, they need to have their manifests
processed and signed.  These steps are encapsulated in the EXEPREP and
DLLPREP Makefile macros.  Use them instead of invoking each processing
macro individually.
2010-08-20 13:04:06 -04:00
Asanka Herath
d25d9476b7 Type safety and variable initialization in ASN.1 generated code 2010-08-20 13:03:33 -04:00
Asanka Herath
e9160dbcfa Support parallelized builds on Windows 2010-08-20 13:03:32 -04:00
Love Hornquist Astrand
23a49750c2 make Digestalgorithmidentifier an sequence type 2010-08-10 10:41:31 -07:00
Love Hornquist Astrand
49aea1f0b3 allow TSetOf to be sequence types too 2010-08-10 10:33:25 -07:00
Love Hornquist Astrand
72892fccbb Provide a cpp symbols for oids that is a pointer 2010-08-08 16:56:44 -07:00
Love Hornquist Astrand
1b63db9b6e compare right thing 2010-08-08 16:08:04 -07:00
Love Hornquist Astrand
fa4c84e6d6 make printablestring and ia5string octetstrings 2010-08-08 15:51:33 -07:00
Love Hornquist Astrand
a0fcf9241a add id-secsig-sha-1WithRSAEncryption 2010-08-08 15:49:18 -07:00
Love Hornquist Astrand
3c0d127f72 Add DHParameter from PCKS3 2010-06-16 12:22:13 -07:00
Love Hornquist Astrand
3a29886945 add DHParameter 2010-06-16 12:20:31 -07:00