Commit graph

105 commits

Author SHA1 Message Date
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
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