Commit graph

26 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
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
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
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
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
Brian Wellington
81ab85fd39 dst function name cleanup 2000-05-17 22:48:10 +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
David Lawrence
6b7257f756 include config.h 2000-04-28 02:08:20 +00:00
David Lawrence
2df2039eaf message signature verification 2000-03-14 03:54:13 +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
Andreas Gustafsson
6627af90c6 quiet compiler warning about ambiguous 'else' 2000-01-31 18:21: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
647189e3b5 (w/help from Ted) Use the message's h member rather than handle member
to do handle_lookup()s.  also return it for getvalue("handle").
2000-01-24 15:19:22 +00:00
David Lawrence
6d1dc00fbe minor brace cleanup 2000-01-24 05:37:41 +00:00
David Lawrence
f07a9b2854 make omapi_message_unregister public
clarify the REQUIRE for omapi_message_unregister.

allow omapi_message_send to be called with a protocol manager object
in addition to a protocol object.

always remove the reference added to the object referred to in an UPDATE
operation, not just on error.  it is a temporary variable and the extra
reference kept the object from being freed.

insist the message being destroyed in message_destroy is unregistered,
which follows logically from how message_destroy would be called anyway.
2000-01-24 05:33:04 +00:00
David Lawrence
e0f30c15b6 checkpoint 2000-01-22 00:18:05 +00:00
David Lawrence
eb421ff1a1 checkpoint 2000-01-17 18:02:11 +00:00
David Lawrence
45d019f745 checkpoint 2000-01-14 23:10:04 +00:00
David Lawrence
904f1ab394 checkpoint 2000-01-06 23:56:51 +00:00
David Lawrence
686320ef6e checkpoint 2000-01-04 20:04:42 +00:00
David Lawrence
0ae0a1f038 checkpoint conversion to ISC (doc/dev/coding.html) style.
* no spaces around " -> " in indirect postfix expression.
  * no space between function name and open parenthesis.
  * no space between array name and open bracket.
  * use NULL not 0 for pointers.
  * explicitly compare pointers to NULL.
  * explicitly compare integers to 0.
  * Do not cast NULL.
  * return type of function declaration on line by itself.
  * open brace of function definition follows close parenthesis if parameters
    all fit on one line.
  * comment-only lines start with /* on line by itself, and end with */
    on line by itself.
  * variable names in structures separated from their types in a column.
  * name the parameters in function prototypes.
  * ifndef multiple header file inclusion.

and other BIND9 conventions not in coding.html:

  * private structures defined in relevant source module, not private header.
  * RCS /* $Id: $ */ comments.
  * Principal Author (Ted Lemon) comments.
  * Updated ISC copyrights.
  * Parenthesize value of return().
  * Parenthesize argument of sizeof().
  * "unsigned int foo" not "unsigned foo".
  * ISC_LANG_(BEGIN|END)DECLS in header files.
  * header files included directly by source/header file that needs them.
  * ... and others I am probably forgetting.

and conversion to some libisc.a modules:

  * use isc/int.h for isc_uintXX_t types, not u_intXX_t.
  * use isc/assertions.h for REQUIRE() and INSIST().
  * use isc/error.h for UNEXPECTED_ERROR.
  * use isc/boolean.h for isc_boolean_t flags instead of int flags.
  * use isc/net.h for networking types.
  * use isc/netdb.h for gethostby*.

STILL TO COME ...

  * more isc_boolean_t.
  * isc/time.h to replace struct timeval.
  * isc/socket.h to replace socket/listen/select/etc.
  * isc/mem.h to replace malloc/free.
  * namespace overhaul & omapi/compatibility.h.

Please collect all your belongings but stand clear of the doors until this
train has come to a complete stop.
1999-11-02 04:01:34 +00:00
David Lawrence
f3ff03fc48 initial copy from the DHCP source pool 1999-10-27 22:24:32 +00:00