Commit Graph
133 Commits
Author SHA1 Message Date
Mark Andrews cf573ce6fb More ISC_LINK_INIT fixes. 2000-10-20 13:29:37 +00:00
Mark Andrews 479e643d54 use isc_mem_allocate for omapi_data_strdup to be consistant with
isc_mem_strdup
2000-10-11 21:19:01 +00:00
Andreas Gustafsson 922e6a3c2a 478. [bug] "make install" failed if the directory specified with
--prefix did not already exist.
2000-09-20 19:06:16 +00:00
David Lawrence 566155f16e 465. [cleanup] Allow 0 to be set as an omapi_value_t value by
omapi_value_storeint().

(Arguably this is was a bug, arguably it wasn't.  I do not know Ted's
original intent, but I believe it cleans up the API to allow 0 to be
set and retrieved just as any other int is.)o

(Also arguably, the other omapi_value_store*() functions should instead
be creating non-NULL omapi_value_t->value pointers when they are setting
NULL values, and then assigning NULL into the relevant union member.)
2000-09-16 03:20:54 +00:00
Brian Wellington 5c29047792 minor dst api change 2000-09-12 09:59:28 +00:00
Brian Wellington c383551293 #include <isc/mutex.h> 2000-08-26 01:56:46 +00:00
Brian Wellington fa9a407180 Last set of DESTROYLOCK changes 2000-08-26 01:42:34 +00:00
David Lawrence 40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
Brian Wellington bf426c2605 Passing a dereferenced pointer as the event->sender is just plain silly.
Now that NULL is an allowed value, use it.
2000-07-27 22:25:58 +00:00
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence ce2be9b721 329. [func] omapi_auth_register() now takes a size_t argument for
the length of a key's secret data.  Previously
			OMAPI only stored secrets up to the first NUL byte.

This change was made to cope with decoded base64 secrets, so in this
revision omapiconf.c and rndc.c also decode the secret.
2000-07-11 22:03:12 +00:00
Andreas Gustafsson a4db2a47f5 incremented library version numbers to 1.0.0 2000-07-10 22:20:43 +00:00
David Lawrence 89e57b472d 317. [func] Use callbacks from libomapi to determine if a
new connection is valid, and if a key requested
			to be used with that connection is valid.
2000-07-10 11:23:00 +00:00
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