Commit Graph
120 Commits
Author SHA1 Message Date
David Lawrence 4a44b85e6e Disable the requirement that all messages be signed, since this
will not work until the "controls" statement is implemented in
named.conf post-9.0.0.
2000-06-28 05:24:41 +00:00
David Lawrence 13c32cb589 285. [bug] A change made to the dst API for beta4 inadvertently
broke OMAPI's creation of a dst key from an incoming
			message, causing an assertion to be triggered.  Fixed.
2000-06-28 03:09:44 +00:00
David Lawrence c4c5c242cd when changing the name of a parameter, remember to change the uses of it. duh. 2000-06-23 22:28:22 +00:00
David Lawrence df0036cbcd backlog argument to omapi_listener_listen was changed to unsiged 2000-06-23 22:22:24 +00:00
David Lawrence 48cfd6b4fc omapi_protocol_connect's port argument type changed to in_port_t. 2000-06-23 21:36:57 +00:00
David Lawrence 8ab36dee9c connect_toserver's port argument type changed to in_port_t.
socket variable renamed sock to avoid reserved name conflict.
2000-06-23 21:36:17 +00:00
David Lawrence 4b60cab173 "delete" function pointer changed to "expunge" to avoid C++ reserved word
conflict, and renamed object_methoddelete to object_methodexpunge for
consistency
2000-06-23 21:28:31 +00:00
David Lawrence 8db07dbeb9 "delete" function pointer changed to "expunge" to avoid C++ reserved word
conflict, and renamed object_methoddelete to object_methodexpunge for
consistency
2000-06-23 21:05:22 +00:00
David Lawrence 1c12b87999 "remove" structure member renamed to "delete" renamed to avoid reserved word
conflict, and renamed object_methodremove to object_methoddelete for
consistency
2000-06-23 20:30:28 +00:00
David Lawrence 17d91fddb3 279. [bug] Private omapi function symbols shared between
two or more files in libomapi.a were not namespace
                        protected using the ISC convention of starting with
                        the library name and two underscores ("omapi__"...)
2000-06-23 20:19:02 +00:00
David Lawrence 107a15b0d8 index renamed to idx to avoid reserved word conflict 2000-06-23 20:05:00 +00:00
David Lawrence b2728187cc length should be unsigned in omapi_data_dereference 2000-06-23 20:04:25 +00:00
David Lawrence 571e433d03 argument to omapi_object_setinter should be int 2000-06-23 20:03:56 +00:00
David Lawrence 9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence 49dbdb0186 update_copyrights 2000-06-21 22:05:07 +00:00
Brian Wellington 4fe8755480 Use the new DST API 2000-06-02 18:59:33 +00:00
David Lawrence 44bd41cce3 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.
2000-06-01 17:33:39 +00:00
Brian Wellington a9bc95f22e dst now stores the key name as a dns_name_t, not a char *. 2000-05-24 23:13:32 +00:00
David Lawrence 6b554f7f0d #include <stdlib.h> /* Required on BSD/OS 3.1 for abort() used in va_arg(). */ 2000-05-24 18:43:29 +00:00
David Lawrence ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
Brian Wellington c50936eb40 changed dst_key_free() prototype, misc. dst cleanup 2000-05-19 00:20:59 +00:00
Brian Wellington 81ab85fd39 dst function name cleanup 2000-05-17 22:48:10 +00:00
David Lawrence 969dca4c16 line 272: remark(1552): variable "inner" was set but never used.
Now used in place of more complex expression.
2000-05-14 03:51:39 +00:00
David Lawrence c06afcfe58 line 126: remark(1692): prototyped function redeclared without prototype.
Prototype added.
2000-05-14 03:51:07 +00:00
David Lawrence e718ce9939 line 647: remark(1552): variable "connection" was set but never used.
Removed variable.
2000-05-14 03:50:45 +00:00
David Lawrence 6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
David Lawrence 5990bedbac changed authlen from signed int to unsigned int in omapi_message_send 2000-05-08 16:32:23 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
Andreas Gustafsson 6ba0a8a5e7 eliminated compiler warnings on alpha 2000-05-03 18:25:52 +00:00
David Lawrence 09f22ac5b0 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
David Lawrence 32eddfc189 120. [cleanup] <isc/socket.h> does not need <isc/boolean.h>,
<isc/bufferlist.h>, <isc/task.h>, <isc/mem.h> or
                        <isc/net.h>.
2000-04-28 03:53:48 +00:00
David Lawrence 6b7257f756 include config.h 2000-04-28 02:08:20 +00:00
Andreas Gustafsson 82ca33427b declare arguments as UNUSED() when used in assertions only 2000-04-28 01:24:18 +00:00
Bob Halley 364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +00:00
David Lawrence 6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
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