Commit Graph

355 Commits

Author SHA1 Message Date
Howard Chu
ede6ea1f64 Fix typo in LTFINISH invcation 2003-10-01 02:26:41 +00:00
Kurt Zeilenga
db097047af code cleanup 2003-07-08 03:46:20 +00:00
Hallvard Furuseth
a231098e28 Fix typo in comment 2003-06-27 19:12:07 +00:00
Hallvard Furuseth
0f29f0af96 #define *_OPT_ON &ber_pvt_opt_on. The old (void*)1 definition could be == NULL. 2003-06-06 13:50:01 +00:00
Hallvard Furuseth
1fa40181d9 Cast unsigned char *p to char *. 2003-06-03 17:51:38 +00:00
Howard Chu
a3b73b50ce Fix includes for EBCDIC 2003-05-29 10:02:10 +00:00
Howard Chu
5d0ba372e5 Fix LBER_OPT_MEMCTX behavior 2003-05-28 22:17:08 +00:00
Howard Chu
13aa48e47a Fix reading multibyte lengths 2003-05-22 06:24:23 +00:00
Kurt Zeilenga
71e0359f37 Back out last change... I forget ber_get_next eats a sequence 2003-05-22 05:41:13 +00:00
Kurt Zeilenga
6035ecfe7b Reverse unintended commit 2003-05-22 05:33:04 +00:00
Kurt Zeilenga
df1381fa38 cleanup 2003-05-22 05:32:06 +00:00
Kurt Zeilenga
a08e72a9e8 Remove wrapping sequence to align with dtest 2003-05-22 04:45:50 +00:00
Kurt Zeilenga
6d36ba9d9f Add trickle code to test ber_get_next.
Use etest {...} | dtest {...} to test.
2003-05-22 04:37:44 +00:00
Kurt Zeilenga
bfa6808c48 Fix dtest ber_get_next() usage 2003-05-22 03:35:36 +00:00
Howard Chu
3d9fd17678 ber_get_next - set errno to 0 before calling ber_int_sb_read(), otherwise
an EOF will return with the previously set errno value.
2003-05-20 04:08:35 +00:00
Jong Hyuk Choi
4f58efc4d1 - change in message to modlist conversion 2003-05-20 01:45:12 +00:00
Howard Chu
3fc96a24ee More ITS#2490 - fix retries for multi-byte lengths 2003-05-19 12:14:15 +00:00
Howard Chu
5eb0ec070c ITS#2490 - more retry checks 2003-05-19 10:37:09 +00:00
Howard Chu
9757665aed ITS#2490 - allow retry for incomplete reads of BER tag & len 2003-05-19 10:33:18 +00:00
Hallvard Furuseth
5ee9264465 Fix assignment of <char/int>* to unsigned <char/int>* and vice versa. 2003-05-02 13:29:28 +00:00
Howard Chu
23b63aac39 Free ber mem arrays in reverse order. (better for sl_free) 2003-04-29 21:09:02 +00:00
Hallvard Furuseth
778a38f49c Reduce warnings: Add missing 0 or NULL initializers for struct members. 2003-04-29 16:36:19 +00:00
Howard Chu
deea8db4cd EBCDIC fix - ber_pvt_strcopy is now lutil_strcopy 2003-04-25 12:32:15 +00:00
Howard Chu
a413bab19a Clean up prev commit 2003-04-24 04:20:17 +00:00
Howard Chu
b6111d793e Fix multi-byte tag parsing 2003-04-24 03:59:45 +00:00
Howard Chu
bcf7ab26e4 ITS#2465 fix? ber_get_next must read at least sizeof(tag)+sizeof(len)
which should be at most 8 bytes. However if we read more than the minimum
message length, we have a problem because we steal bytes from any following
message, and there is no buffer mechanism to push back excess data.
The shortest legitimate message is Unbind at 7 bytes, but there shouldn't
be anything following it. Abandon at 8 bytes is next, so always requesting
at least 8 bytes should be safe. Always requesting 9 was a problem.

Please double-check these assumptions...
2003-04-24 02:10:18 +00:00
Howard Chu
d14ff18d7f ITS#2458 fix array decoding 2003-04-24 01:37:01 +00:00
Howard Chu
42e7845d81 More malloc context tweaks 2003-04-10 06:14:16 +00:00
Howard Chu
ca12bb75c7 Extended API for ber_mem functions, add context argument.
Must always use ber_mem funcs, even if CSRIMALLOC is present.
2003-04-09 13:25:11 +00:00
Howard Chu
e240135305 ITS#2434 ber accessors 2003-04-09 09:41:02 +00:00
Kurt Zeilenga
e41ca42de1 mark a few translatable strings 2003-04-06 06:19:13 +00:00
Kurt Zeilenga
1b37568b00 Use ifdef not comment to comment out code 2003-03-22 22:28:57 +00:00
Howard Chu
8a8ae8bf85 Add comment to previous 2003-03-12 03:23:09 +00:00
Howard Chu
066e3310a9 ITS#2365 - preserve internal ber_tag as well as ber_ptr for rewinding. 2003-03-12 02:33:53 +00:00
Pierangelo Masarati
e24f55b29a silence warning 2003-03-04 09:16:57 +00:00
Howard Chu
50ecec94eb Fix ITS#2344, prev commit changed too much. 2003-03-03 23:44:22 +00:00
Howard Chu
3cc07977fa Replace recursive get_stringbvr with iterative get_stringbvl to avoid
stack overrun when parsing large groups
2003-03-03 15:54:49 +00:00
Howard Chu
ec497cf529 Use fixed sizes for ber_get_next to avoid 64-bit hangs. 2003-03-02 04:02:39 +00:00
Kurt Zeilenga
aa291a3492 We should be calling libtool --finish when install libraries 2003-02-09 23:10:29 +00:00
Howard Chu
5354dbf269 ber_flush shouldn't be logging with _ANY, changed to _TRACE 2003-01-31 22:45:19 +00:00
Howard Chu
60d621fc04 Fix typo 2003-01-23 03:35:31 +00:00
Howard Chu
caeb6fc1f0 Fix ITS#2280, reject sequences with invalid lengths 2003-01-23 02:19:59 +00:00
Kurt Zeilenga
bd9bf709aa ITS#2275: PROTOS ber_get_next() fix
Needs review!!!!
2003-01-22 22:29:11 +00:00
Hallvard Furuseth
f963a16150 Remove an implicit int, to silence gcc warnings. 2003-01-19 14:03:11 +00:00
Hallvard Furuseth
9d11c5ea46 Remove pointless `unsigned < 0' test. 2003-01-19 14:02:06 +00:00
Kurt Zeilenga
6939c53170 Happy new year 2003-01-03 20:20:47 +00:00
Howard Chu
8b3b044dac Fix ITS#2246, fix in rev 1.73 was in the wrong place 2002-12-20 00:33:10 +00:00
Howard Chu
6a37f1ae80 Added ber_flatten2 - uses passed in struct berval, allocates copy or
directly re-uses existing ber buf.
2002-12-18 19:15:27 +00:00
Kurt Zeilenga
235973571a proxy authz control (client only)
Misc control cleanups (client only)
2002-11-28 02:26:55 +00:00
Howard Chu
10a194feb5 ITS#2128, setvbuf is unreliable 2002-11-27 04:13:19 +00:00