Michael Graff
e44487bfc2
convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc.
2000-04-17 19:22:44 +00:00
Bob Halley
738b9aa3de
isc_task_create() API change
2000-04-12 01:41:21 +00:00
David Lawrence
5805e57141
isc_task_setname(omapi_task, "omapi", NULL)
2000-03-18 02:04:16 +00:00
David Lawrence
b6fec50e2d
Added destroy_action and destroy_arg to OMAPI_OBJECT_PREAMBLE, called
...
from omapi_object_dereference when an object is destroyed.
Provide OMAPI_EVENT_OBJECTFREED definition to be sent as an event when
an object is destroyed.
Callback parameter to omapi_protocol_listen and omapi_listener_listen
changed type to isc_taskaction_t.
omapi_lib_init takes new taskmgr and socketmgr parameters.
2000-03-18 00:39:36 +00:00
David Lawrence
c998ce2416
new global, omapi_task
2000-03-18 00:35:57 +00:00
David Lawrence
ef6e6be484
Callback parameter for omapi_protocol_listen changed to isc_taskaction_t.
2000-03-18 00:35:33 +00:00
David Lawrence
a9de67bf35
Call the destroy_action callback in an object, if it exists, after
...
omapi_object_dereference has freed the memory allocated for the object.
2000-03-18 00:34:53 +00:00
David Lawrence
7aa48442b0
Instead of setting a listener callback that is called by listener_destroy,
...
set the destroy_action callback used by omapi_object_dereference.
2000-03-18 00:34:13 +00:00
David Lawrence
2215fe02f1
Require a taskmgr and socketmgr for omapi_lib_init.
...
Create an omapi_task in omapi_lib_init and destroy it in omapi_lib_destroy.
2000-03-18 00:33:15 +00:00
David Lawrence
0eebe5cfe3
only call shutdown callback if non-NULL
2000-03-14 20:06:08 +00:00
David Lawrence
3dbebbfe6e
use 0 not NULL in dst_key_frombuffer
2000-03-14 20:00:37 +00:00
David Lawrence
06671f242e
specify exit callbacks for listener, added omapi_data_strdup
2000-03-14 03:59:14 +00:00
David Lawrence
c662d88c3e
auth support
2000-03-14 03:58:30 +00:00
David Lawrence
7194c96d03
use DNS_INCLUDES; compile auth.c
2000-03-14 03:57:55 +00:00
David Lawrence
0a5f5ca641
message authentication goo
2000-03-14 03:56:54 +00:00
David Lawrence
2df2039eaf
message signature verification
2000-03-14 03:54:13 +00:00
David Lawrence
6bdf7cb13e
Use callback to avoid blocking in omapi_listener_shutdown.
2000-03-14 03:53:20 +00:00
David Lawrence
66290e9bfb
removed obsolete comment
2000-03-14 03:46:41 +00:00
David Lawrence
6ac77d2f2e
sign/verify signatures
2000-03-14 03:46:14 +00:00
David Lawrence
58a04de5cf
When chasing extra references in omapi_object_dereference, only
...
count extra inner references if inner_reference is non-0, and
similar for outer references. This is because the handle table
might have another reference which foiled the overall logic.
2000-03-14 03:43:06 +00:00
David Lawrence
28f95a516b
auth_destroy in omapi_lib_destroy
2000-03-14 03:39:40 +00:00
David Lawrence
cc5f1097d3
set the waitresult in the generic_signalhandler when "status" signal received
2000-03-14 03:38:54 +00:00
David Lawrence
3fad1313e4
added omapi_data_strdup
2000-03-14 03:37:48 +00:00
David Lawrence
aa1c54de2e
support for signed messages
2000-03-14 03:37:10 +00:00
Andreas Gustafsson
193738b819
introduced @SA@ macro for use as the filename extension
...
of static library archive files in Makefile rules
2000-02-23 23:02:28 +00:00
Andreas Gustafsson
eb28727ab4
inappropriate use of @A@ caused definition of
...
two conflicting rules for building libomapi.la when using
libtool; typo in libomapi.la build rule (RT #62 )
2000-02-23 18:14:09 +00:00
Andreas Gustafsson
c0d0a59d1b
removed newlines from UNEXPECTED_ERROR() messages
2000-02-17 19:58:59 +00:00
Bob Halley
a2f3208f7f
add DESTDIR support
2000-02-08 21:50:23 +00:00
Bob Halley
823955b9d5
fix install problems
2000-02-04 01:58:37 +00:00
Bob Halley
4dafa5b8ed
add missing .h files
2000-02-04 01:41:25 +00:00
Bob Halley
0fffa9dcca
update copyright
2000-02-03 23:17:52 +00:00
Mark Andrews
c27f90d73a
remove ambiguous else message
2000-02-02 05:49:55 +00:00
Mark Andrews
f43d714ada
#include <stdlib.h> as va_arg may call abort(): BSDI 3.1
2000-02-01 23:18:52 +00:00
David Lawrence
19f15c36b9
omapi_protocol_listen/omapi_listener_listen use sockaddr instead of port
...
no more OMAPI_PROTOCOL_PORT; default port must be define per application.
2000-02-01 15:16:53 +00:00
David Lawrence
afe59244b4
omapi_protocol_listen now takes sockaddr arg instead of port.
...
omapi_protocol_connect now does not accept port of 0 for "default port"
2000-02-01 15:15:24 +00:00
David Lawrence
4b8831992e
omapi_listener_listen port argument now sockaddr; removed listener->address
2000-02-01 15:13:49 +00:00
David Lawrence
7ce7f319b5
set to omapi_object_types to NULL after freeing the types
2000-01-31 20:24:43 +00:00
Andreas Gustafsson
ff966df508
quiet compiler warning about ambiguous 'else'
2000-01-31 18:52:43 +00:00
Andreas Gustafsson
6627af90c6
quiet compiler warning about ambiguous 'else'
2000-01-31 18:21:33 +00:00
David Lawrence
6a11a9610d
do not need config.h or isc/result.h
...
do need isc/util.h
mutex and recv_lock no longer needed in connection; wait_lock used instead.
messages_expected no longer needed in connection.
no more omapi_ipv6
connection_send return value changed from void to isc_result_t
connection_wait no longer takes a timeout parameter
new private function, handle_destroy
2000-01-31 15:07:04 +00:00
David Lawrence
450e60d4f1
_OMAPI_OMAPIP_H_ changed to _OMAPI_OMAPI_H_ to match file name.
...
include isc/region.h and new omapi/types.h
typedefs moved to omapi/types.h
define protocol port to 7912 so as not to conflict with dhcp server;
this clearly needs more thought. the default omapi port will need to be
server specific rather than library specific.
new public functions, omapi_listener_shutdown, omapi_data_getint.
changed API, omapi_string_totext, omapi_value_getint
2000-01-31 15:04:11 +00:00
David Lawrence
5964aac22f
omapi_data_asint renamed to omapi_data_getint, old name of omapi_object_getvalue was wrong
2000-01-31 15:00:44 +00:00
David Lawrence
f6826ddc14
typedefs broken out of omapi.h
2000-01-31 14:59:46 +00:00
David Lawrence
ea44276a01
renamed omapi_value_asint to omapi_value_getint, added omapi_value_getregion
2000-01-31 14:59:23 +00:00
David Lawrence
ae47947fdb
Changed API for omapi_string_totext; the string was not always
...
nul-terminated, so now the function sets a region instead.
2000-01-31 14:58:11 +00:00
David Lawrence
eb91bcf9c8
do not need config.h
2000-01-31 14:56:34 +00:00
David Lawrence
ed24fabb6d
overhaul of way thread locking is done.
...
ensure only one socket task is outstanding at a time.
allow remote port to be 0, will use OMAPI_PROTOCOL_PORT.
cleaned up error handling so that everything is freed when
something fails.
2000-01-31 14:56:14 +00:00
David Lawrence
7630a0854f
free allocated name string in omapi_object_getvalue
2000-01-31 14:52:33 +00:00
David Lawrence
141eff6120
Allow omapi_message_send to be called by the protocol's inner object
...
(an omapi manager).
overhaul of way connection locking is done.
clarified/fixed where connections can get disconnected.
omapi_value_asint renamed to omapi_value_getint (because
omapi_value_assstr was amusing but in questionable taste)
don't require an object in an OMAPI_OP_UPDATE message; thus the
message can be used just for notification. (though arguably
OMAPI_OP_STATUS can be used, with a bit more effort.)
free the notify_object if it exists.
signal the notify_object with "status" in preference to the value object.
2000-01-31 14:51:32 +00:00
David Lawrence
a89a8e3754
New function, omapi_listener_shutdown, to destroy all memory used by the
...
listener.
Manage a list of all connections known by the listener, so they can be
shut down by omapi_listener_shutdown.
2000-01-31 14:46:29 +00:00