Ben Collins
9d2ea940e0
Check that FIONBIO is defined, also add defined(__BEOS__) to list for send/recv defines
1999-03-13 20:29:35 +00:00
Ben Collins
615923f0d1
Functions for using fcntl to lock/unlock files in case lockf is not available
1999-03-13 19:25:15 +00:00
Ben Collins
c0b11aa8b5
Added check for getpass() as well as adding it to the -llutil Makefile.in (BeOS will need this)
1999-03-13 02:08:42 +00:00
Hallvard Furuseth
b6d85256e7
"const"ify some static arrays, and related parameters/variables
1999-03-09 08:40:36 +00:00
Hallvard Furuseth
083455be6b
Bugfix: Move handling of boolean options in front of invalue==NULL error check
1999-03-09 07:49:56 +00:00
Hallvard Furuseth
26f257f40d
Replace (int)LDAP_BOOL_GET(...) with LDAP_BOOL_GET(...)==LDAP_OPT_ON
1999-03-09 07:42:17 +00:00
Kurt Zeilenga
53fc115b6f
Add LDIF_ to LINE_WIDTH
1999-03-09 00:50:41 +00:00
Kurt Zeilenga
96a5f20d41
Don't install CFFILES in ldap_r.
1999-03-08 23:14:43 +00:00
Hallvard Furuseth
3f65f687e5
Put the ATTR_BOOL option numbers in attrs.offset instead of attrs.data,
...
to avoid unportable casts of integers to pointers and back.
1999-03-06 18:31:19 +00:00
Kurt Zeilenga
2c06d0da09
Change (int) invalue == (int) LDAP_OPT_ON to invalue == LDAP_OPT_ON.
1999-03-06 17:11:35 +00:00
Hallvard Furuseth
509a927fcd
Make block non-static and properly aligned
1999-03-06 16:31:13 +00:00
Hallvard Furuseth
3277a27b10
Remove unused variables
1999-03-06 16:29:05 +00:00
Kurt Zeilenga
94fea2a17e
defined USE_NONBLOCK for now... need to implement configure detection.
...
rewrote sockbuf_buf_init macro not to expand its argument multiple times.
1999-03-06 07:52:33 +00:00
Hallvard Furuseth
4d7138a45c
include ldap_pvt_thread.h, to verify func declarations against their definitinos
1999-03-06 06:24:15 +00:00
Hallvard Furuseth
c35f2086d8
Fix typo .size -> .dsize in ldbm_datum_free()
1999-03-06 04:25:50 +00:00
Hallvard Furuseth
9bef1a2bc1
Obey CTIME_R_RETURNS_INT
1999-03-06 04:23:17 +00:00
Ben Collins
caddcf8600
Moved 'key.flags = 0;' inside of DB2 defines, it isn't available in DB1
1999-03-06 04:15:18 +00:00
Kurt Zeilenga
553b601161
Move lber_get/set_option stuff to a private structure.
1999-03-06 02:36:21 +00:00
Kurt Zeilenga
588a458d78
MSVC5 cleanup...
...
lber: ifdef'ed out lber_..set_nonblock() function because it used ioctl's.
If it remains, it needs to be written to support various methods for
setting non-blocking. ioctls should probably be last choice. configure
could detect existance of fcntl(), ioctl(), etc.
bdb2:
added .dsp/.dsw files and did some basic cleanup (still needs work).
1999-03-06 00:57:25 +00:00
Kurt Spanier
6da27229d9
1. Fix of ldbmcat segmentation fault bug (ITS#85 and #81 ).
...
2. Make ldbm_Env a failure-safe entity.
1999-03-05 11:24:42 +00:00
Hallvard Furuseth
3b5a5b792c
Remove spurious backslash-newlines
1999-03-05 01:21:44 +00:00
Hallvard Furuseth
a2ee841121
Change LDAP.ld_lberoptions to `short', to realign with BerElement.ber_options
1999-03-05 01:20:55 +00:00
Hallvard Furuseth
61174d1960
Cast char* argument to hh_to_c() to Byte*
1999-03-05 01:04:56 +00:00
Hallvard Furuseth
921158f6fc
Remove LDAP_P() from prototypes with 'Byte' arguments
1999-03-05 01:03:13 +00:00
Hallvard Furuseth
ac687014ec
K&R varargs branch of ldap_log_printf() was bogus
1999-03-04 12:55:59 +00:00
Juan Gomez
00558f962b
Added the functions ldap_rename2() and ldap_rename2_s() to support LDAP
...
v3 MODDN (MODRDN) operation on the client side.
1999-03-04 03:16:29 +00:00
Hallvard Furuseth
5b83a959d2
Don't choke if gethostby{name,addr}_r's number of arguments differ
...
from what the current code can handle.
1999-03-03 21:34:49 +00:00
Hallvard Furuseth
69c00e27da
Posix Draft 4 (HAVE_PTHREADS_D4) fixes:
...
Use pthread_*attr_default.
Don't use a void return value from pthread_yield.
1999-03-03 21:21:40 +00:00
Hallvard Furuseth
74f808f44c
Bugs with !HAVE_PTHREAD_KILL: include errno.h. Typo: sig should be signo.
1999-03-03 17:52:40 +00:00
Hallvard Furuseth
c98892cb17
cast printf(%s) argument from void* to char*
1999-03-03 17:32:26 +00:00
Hallvard Furuseth
7f79f57167
Remove untrue /*NOTREACHED*/: return 0 on EOF from stdin
1999-03-03 17:30:55 +00:00
Bart Hartgers
a81ca18845
Added support in liblber and libldap for partial reads, i.e. situations in
...
which only part of a LDAPMessage is available on a socket.
The server-code seemed to handle this correctly already, so I didn't touch
it.
My apologies for the hack in ber_get_next :-).
1999-03-03 16:38:56 +00:00
Hallvard Furuseth
7bac8381a6
function pointers are incompatible with `void *'; remove NULL or replace with 0
1999-03-03 16:02:00 +00:00
Hallvard Furuseth
eaedc9228b
function pointers are incompatible with void *'; remove
!= NULL' from tests.
1999-03-03 15:57:57 +00:00
Hallvard Furuseth
81e7f98e30
include lber-int.h to get lber_pvt_* declarations
1999-03-03 15:46:50 +00:00
Hallvard Furuseth
52e57a195a
ber_scanf returns LBER_ERROR, not -1, on failure.
1999-03-03 15:45:06 +00:00
Hallvard Furuseth
8573316a16
Declare lber_pvt_sb_* functions from io.c in lber-int.h
1999-03-03 15:39:57 +00:00
Hallvard Furuseth
2e68514409
Back out previous change; it was an accidental commit
1999-03-03 15:35:29 +00:00
Hallvard Furuseth
d00b99fd37
Declare lber_pvt_sb_* functions from io.c in lber-int.h
1999-03-03 15:25:44 +00:00
Bart Hartgers
8153a4039b
The new&improved Sockbuf. This adds the infrastructure on which
...
support for TLS and SASL will be build.
Please inform me of any problems.
1999-03-02 20:23:14 +00:00
Kurt Zeilenga
246a738c00
Fix typo in previous commit.
1999-03-02 03:09:04 +00:00
Kurt Zeilenga
4e160e83b6
Replace IFP() with appropriate full prototypes:
...
AVL_CMP, AVL_DUP, AVL_FREE, AVL_APPLY.
Apply casts as needed.
Change data pointer from caddr_t to void *.
1999-03-02 00:32:59 +00:00
Kurt Zeilenga
a8a05cbe48
Update NT port with support for -lldap_r and -lldbm.
...
Also add initial slapd .dsw/.dsp files. Still needs work (mainly syslog).
1999-03-01 22:37:05 +00:00
Kurt Zeilenga
a2aa1c38ec
Fix HAVE_WINSOCK for winsock32.lib
1999-03-01 21:08:07 +00:00
Kurt Zeilenga
fd9fbb3306
Update libpath.
1999-03-01 21:07:10 +00:00
Bart Hartgers
e26de67770
Patch to support to determine the number of args of the
...
gethostby{name,addr}_r functions.
Contributed by Juan Carlos Gomes IT#68 (apparently).
Also includes support for detecting ssleay in configure.in.
1999-02-25 13:07:27 +00:00
Hallvard Furuseth
73db912500
Cast char' arguments to ctype.h functions to
unsigned char'.
...
These functions require their arguments to be in the range of `unsigned char'.
1999-02-22 17:57:22 +00:00
Kurt Zeilenga
aa17fdd0bd
Use ldap_pvt_strtok directly and unconditionally.
...
Implementation no longer uses strtok_r(), it may be broken
or have an odd prototype.
Update configure not to check for strtok/strtok_r nor require
strtok_r to LDAP_API_FEATURE_X_OPENLDAP_REENTRANT.
1999-02-20 20:12:03 +00:00
Kurt Zeilenga
9cc9a84527
Remaining LDAP_COMPILING_R should be LDAP_R_COMPILE.
1999-02-20 18:33:24 +00:00
Hallvard Furuseth
d7451444c2
cast avl_free argument to IFP
1999-02-20 08:16:33 +00:00