openbsd
10 years agofix format mistakes visible if AUDIO_DEBUG is defined
ratchov [Mon, 19 May 2014 07:00:15 +0000 (07:00 +0000)]
fix format mistakes visible if AUDIO_DEBUG is defined

10 years agounbreak the build when DIAGNOSTIC is not defined
jsg [Mon, 19 May 2014 06:54:34 +0000 (06:54 +0000)]
unbreak the build when DIAGNOSTIC is not defined
allows ramdisk kernels to build again

10 years agoUpdate run(4) firmware to version 0.33, with permission from Dennis Lee
stsp [Mon, 19 May 2014 05:38:51 +0000 (05:38 +0000)]
Update run(4) firmware to version 0.33, with permission from Dennis Lee
of Mediatek to keep using the free firmware licence we've been using.
Tested by myself, rapha@, Fred Crowson, Dinar Talypov, gerhard@, matthieu@.

10 years agoEnable the 3- and 4-byte sequence tests for UTF8_getc()
guenther [Mon, 19 May 2014 02:05:10 +0000 (02:05 +0000)]
Enable the 3- and 4-byte sequence tests for UTF8_getc()
Add surrogate and out-of-range tests for UTF8_putc() on the assumption
we'll make it return -2.  Maybe.

10 years agoAdd regression test for UTF8_{getc,putc}()
guenther [Sun, 18 May 2014 22:04:14 +0000 (22:04 +0000)]
Add regression test for UTF8_{getc,putc}()

10 years agohid_start_parse can't fail - it calls malloc(M_WAITOK). ok mpi@
jca [Sun, 18 May 2014 21:43:11 +0000 (21:43 +0000)]
hid_start_parse can't fail - it calls malloc(M_WAITOK).  ok mpi@

10 years agoCorrectly handle files smaller than an ELF header; reported by drahn@bitrig
miod [Sun, 18 May 2014 21:18:07 +0000 (21:18 +0000)]
Correctly handle files smaller than an ELF header; reported by drahn@bitrig

10 years ago_PIC is an optional method, so we shouldn't be aborting the rest of the
mlarkin [Sun, 18 May 2014 20:16:29 +0000 (20:16 +0000)]
_PIC is an optional method, so we shouldn't be aborting the rest of the
MADT processing if it is missing. This, combined with an earlier diff
from kettenis@ to fix MADT interrupt polarity processing, should resolve
the issues reported with QEMU/KVM ACPI power button presses when using
OpenBSD guests.

ok kettenis@, pirofti@
tested by myself and kettenis for the past few weeks

10 years agoIf you need to allocate `a + b' bytes of memory, then don't allocate `a + b*2',
miod [Sun, 18 May 2014 19:35:04 +0000 (19:35 +0000)]
If you need to allocate `a + b' bytes of memory, then don't allocate `a + b*2',
this is confusing and unnecessary.

Help (coz I got confused) and ok guenther@ beck@

10 years agoMake sure UTF8_getc() is invoked with the proper buffer size.
miod [Sun, 18 May 2014 19:30:36 +0000 (19:30 +0000)]
Make sure UTF8_getc() is invoked with the proper buffer size.

ok beck@ guenther@

10 years agouse reallocarray
espie [Sun, 18 May 2014 17:50:11 +0000 (17:50 +0000)]
use reallocarray
okay ian@, chl@

10 years agofactor out a bit of the chunk index code and use it to make sure that a
tedu [Sun, 18 May 2014 17:49:47 +0000 (17:49 +0000)]
factor out a bit of the chunk index code and use it to make sure that a
freed chunk is actually freeable immediately. catch more errors.
hints/ok otto

10 years agoDo not pass an xfer pointer to the timeout routine checking for root hub
mpi [Sun, 18 May 2014 17:10:27 +0000 (17:10 +0000)]
Do not pass an xfer pointer to the timeout routine checking for root hub
status changes because it might be freed when detaching the root uhub(4).

Also do not reschedule a timeout if the pipe is being aborted.

Finally do not add more code to retrieve the 'bInterval' value of the
root hub endpoint descriptor since this value is hardcoded in the uhci(4)
driver.

10 years agoOut of all the openssl apps, just one of them has code to mess around with
jsing [Sun, 18 May 2014 16:43:18 +0000 (16:43 +0000)]
Out of all the openssl apps, just one of them has code to mess around with
electric fence externs. Nuke from orbit.

ok miod@

10 years agouse reallocarray
espie [Sun, 18 May 2014 16:36:41 +0000 (16:36 +0000)]
use reallocarray
okay miod@, millert@

10 years agoW_OK comes via unistd.h - nuke several #ifndef W_OK that attempt to handle
jsing [Sun, 18 May 2014 16:34:04 +0000 (16:34 +0000)]
W_OK comes via unistd.h - nuke several #ifndef W_OK that attempt to handle
missing defines.

10 years agoRemove unused include.
jsing [Sun, 18 May 2014 16:26:02 +0000 (16:26 +0000)]
Remove unused include.

10 years agoGroup and sort includes.
jsing [Sun, 18 May 2014 16:21:03 +0000 (16:21 +0000)]
Group and sort includes.

Currently "apps.h" needs to be included before any of the openssl headers
and there are several cases where the code depends on headers that are
included by something included by apps.h...

More untangling saved for later on.

10 years agoPlug memory leaks upon error in OCSP_url_svcloc_new().
miod [Sun, 18 May 2014 16:19:09 +0000 (16:19 +0000)]
Plug memory leaks upon error in OCSP_url_svcloc_new().

ok jsing@

10 years agoIn OCSP_sendreq_bio(), cope with OCSP_sendreq_new() returning NULL.
miod [Sun, 18 May 2014 16:18:13 +0000 (16:18 +0000)]
In OCSP_sendreq_bio(), cope with OCSP_sendreq_new() returning NULL.

ok jsing@

10 years agoIn dtls1_reassemble_fragment() and dtls1_process_out_of_seq_message(), in case
miod [Sun, 18 May 2014 16:13:48 +0000 (16:13 +0000)]
In dtls1_reassemble_fragment() and dtls1_process_out_of_seq_message(), in case
of error, make sure we do not free pitem which is still linked into the
pqueue.
In the same vain, only free `frag' if we allocated it in this function.

Help and ok beck@

10 years agoIn ssl3_send_certificate_request(), when adding the extra payload if
miod [Sun, 18 May 2014 16:10:26 +0000 (16:10 +0000)]
In ssl3_send_certificate_request(), when adding the extra payload if
NETSCAPE_HANG_BUG is defined, make sure we BUF_MEM_grow() the buffer to
accomodate for the payload size.

Issue reported by David Ramos; ok beck@

10 years agoMake sure ssl3_setup_buffers() does not return upon error with a freed
miod [Sun, 18 May 2014 16:08:37 +0000 (16:08 +0000)]
Make sure ssl3_setup_buffers() does not return upon error with a freed
pqueue still chained, by inserting it into the list only after all possible
failure conditions have been avoided.

Reported and fix proposed by David Ramos; ok beck@

10 years agoFix tail packet check in elantech v3 touchpad code. Due to a typo this
stsp [Sun, 18 May 2014 15:27:28 +0000 (15:27 +0000)]
Fix tail packet check in elantech v3 touchpad code. Due to a typo this
code was masking out bits which were also tested in the same expression.
Reported by cppcheck via jsg@ (Expression '(X & 0xfc) != 0x2' is always true).
Tested with Elantech Touchpad, version 3, firmware 0x250f00.

10 years agoDon't add a lease to the leases TAILQ more than once. It tends to
krw [Sun, 18 May 2014 15:17:50 +0000 (15:17 +0000)]
Don't add a lease to the leases TAILQ more than once. It tends to
make writing out the leases file go into an infinite loop until
/var is full.

Reported by Roman Gorelov via bugs@

Fix tested & ok stsp@ uwe@

10 years agosync
todd [Sun, 18 May 2014 14:06:23 +0000 (14:06 +0000)]
sync

10 years agobio_err is initialised in main, hence there is no need to initialise it
jsing [Sun, 18 May 2014 11:36:24 +0000 (11:36 +0000)]
bio_err is initialised in main, hence there is no need to initialise it
in each application (since there is no longer a non-monolithic mode).

In typical OpenSSL fashion, the code is inconsistent and there are multiple
ways that bio_err was initialised - none of them actually checked to see if
the initialisation actually succeeded. Additionally, it is worth noting
that in at least two cases bio_err was also being used before it would have
been initialised.

ok miod@

10 years agoMore KNF.
jsing [Sun, 18 May 2014 11:28:41 +0000 (11:28 +0000)]
More KNF.

10 years agoOmit -Werror if building with gcc3, for it triggers "redefinition of `pqueue'"
miod [Sun, 18 May 2014 11:20:08 +0000 (11:20 +0000)]
Omit -Werror if building with gcc3, for it triggers "redefinition of `pqueue'"
warnings now that pqueue.h has been removed from public scope.

10 years agoMake rtsx(4) attach to RTL8402 devices. Reported as working by Eric Huiban.
stsp [Sun, 18 May 2014 10:52:16 +0000 (10:52 +0000)]
Make rtsx(4) attach to RTL8402 devices. Reported as working by Eric Huiban.

10 years agoregen
stsp [Sun, 18 May 2014 10:49:59 +0000 (10:49 +0000)]
regen

10 years agoAdd PCI ID for Realtek RTL8402 card reader.
stsp [Sun, 18 May 2014 10:49:28 +0000 (10:49 +0000)]
Add PCI ID for Realtek RTL8402 card reader.

10 years agoNo need to check for NULL before invoking free(); use calloc() when
miod [Sun, 18 May 2014 09:39:18 +0000 (09:39 +0000)]
No need to check for NULL before invoking free(); use calloc() when
applicable; further simplify pqueue_find().

From Dimitris Papastamos on tech@

10 years agouse reallocarray and friends. okay miod@
espie [Sun, 18 May 2014 09:29:54 +0000 (09:29 +0000)]
use reallocarray and friends. okay miod@

10 years agosync openssl(1) with changes already made in src/lib/libssl/doc, reminded by
sthen [Sun, 18 May 2014 08:23:27 +0000 (08:23 +0000)]
sync openssl(1) with changes already made in src/lib/libssl/doc, reminded by
jmc: move from 1024 to 2048 bit key defaults; see genrsa.c 1.26 et al.

10 years agouse reallocarray
espie [Sun, 18 May 2014 08:10:00 +0000 (08:10 +0000)]
use reallocarray
okay chl@, tedu@

10 years agoa bit more reallocarray (and kill ecalloc, which isn't used)
espie [Sun, 18 May 2014 08:08:50 +0000 (08:08 +0000)]
a bit more reallocarray (and kill ecalloc, which isn't used)
okay chl@

10 years agoThere is no need to compile nginx with -O1 on vax anymore.
jsg [Sun, 18 May 2014 05:27:49 +0000 (05:27 +0000)]
There is no need to compile nginx with -O1 on vax anymore.
Since the change in rev 1.5 vax has switched to gcc3,
MAXDSIZ has increased and pcre_exec now builds with -O2.

ok miod@

10 years agoreplace some (type *)0 to NULL
chl [Sun, 18 May 2014 05:08:07 +0000 (05:08 +0000)]
replace some (type *)0 to NULL

ok krw@ millert@

10 years agoOne more mistake introduced in 1.65
miod [Sat, 17 May 2014 23:21:36 +0000 (23:21 +0000)]
One more mistake introduced in 1.65

10 years agoremove unused variables
chl [Sat, 17 May 2014 21:37:51 +0000 (21:37 +0000)]
remove unused variables

ok miod@

10 years ago...and it needs a guard against NULL as well.
miod [Sat, 17 May 2014 21:32:19 +0000 (21:32 +0000)]
...and it needs a guard against NULL as well.

10 years agoFix previous commit by making sure we are not dereferencing uninitialized
miod [Sat, 17 May 2014 21:21:17 +0000 (21:21 +0000)]
Fix previous commit by making sure we are not dereferencing uninitialized
pointers.

10 years agoremove unused variable
chl [Sat, 17 May 2014 20:31:07 +0000 (20:31 +0000)]
remove unused variable

ok tedu@

10 years agodoes sunos not have memmove? sorry, i guess sunos will not have libressl.
tedu [Sat, 17 May 2014 20:15:50 +0000 (20:15 +0000)]
does sunos not have memmove? sorry, i guess sunos will not have libressl.
ok guenther miod

10 years agoadd missing header needed by str* and mem* functions
chl [Sat, 17 May 2014 20:07:54 +0000 (20:07 +0000)]
add missing header needed by str* and mem* functions

ok gilles@

10 years agofix alloc idioms. watch out for emalloc that's actually a calloc in disguise
espie [Sat, 17 May 2014 20:05:07 +0000 (20:05 +0000)]
fix alloc idioms. watch out for emalloc that's actually a calloc in disguise
okay chl@ tedu@

10 years agounchecked malloc() return value in OCSP_sendreq_new().
miod [Sat, 17 May 2014 19:58:49 +0000 (19:58 +0000)]
unchecked malloc() return value in OCSP_sendreq_new().

10 years agoKNF
miod [Sat, 17 May 2014 19:56:35 +0000 (19:56 +0000)]
KNF

10 years agoadd missing header needed for mem{cpy,cmp}()
chl [Sat, 17 May 2014 19:44:13 +0000 (19:44 +0000)]
add missing header needed for mem{cpy,cmp}()

ok tedu@

10 years agocorrectly match size and buffer. from enh at google
tedu [Sat, 17 May 2014 18:16:14 +0000 (18:16 +0000)]
correctly match size and buffer. from enh at google

10 years agosimple reallocarray to check multiplies. ok guenther
tedu [Sat, 17 May 2014 17:35:04 +0000 (17:35 +0000)]
simple reallocarray to check multiplies. ok guenther

10 years agoWhen looking at another process, use the data from struct process
guenther [Sat, 17 May 2014 17:26:24 +0000 (17:26 +0000)]
When looking at another process, use the data from struct process
instead of peeking into the thread level

ok tedu@

10 years agono no md2
tedu [Sat, 17 May 2014 15:57:52 +0000 (15:57 +0000)]
no no md2

10 years agono no seed
tedu [Sat, 17 May 2014 15:48:14 +0000 (15:48 +0000)]
no no seed

10 years agodeleted seed some time ago
tedu [Sat, 17 May 2014 15:44:28 +0000 (15:44 +0000)]
deleted seed some time ago

10 years agoremove unused variable
chl [Sat, 17 May 2014 15:19:17 +0000 (15:19 +0000)]
remove unused variable

ok tedu@

10 years agoAdd missing header needed by isdigit().
chl [Sat, 17 May 2014 15:18:06 +0000 (15:18 +0000)]
Add missing header needed by isdigit().
While there, sort headers.

ok tedu@

10 years agorefactor some of the des crypt code to use fewer globals.
tedu [Sat, 17 May 2014 13:27:55 +0000 (13:27 +0000)]
refactor some of the des crypt code to use fewer globals.
ok miod

10 years agoFix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().
stsp [Sat, 17 May 2014 12:54:57 +0000 (12:54 +0000)]
Fix kernel build with EHCI_DEBUG by removing a non-compiling DPRINTF().
Since no DPRINTF() call remains also remove its definition (requested by mpi@).
ok mpi, and also reported by Jean-Philippe Ouellet

10 years agofix format mistakes visible if AZALIA_DEBUG is defined
ratchov [Sat, 17 May 2014 12:45:53 +0000 (12:45 +0000)]
fix format mistakes visible if AZALIA_DEBUG is defined

10 years agofix format mistakes visible if UAUDIO_DEBUG is defined
ratchov [Sat, 17 May 2014 12:43:18 +0000 (12:43 +0000)]
fix format mistakes visible if UAUDIO_DEBUG is defined

10 years agofix format mistakes visible if AUICH_DEBUG is defined
ratchov [Sat, 17 May 2014 12:40:25 +0000 (12:40 +0000)]
fix format mistakes visible if AUICH_DEBUG is defined

10 years agounbreak build with AUDIO_DEBUG: use %lx for bus_addr_t
ratchov [Sat, 17 May 2014 12:23:46 +0000 (12:23 +0000)]
unbreak build with AUDIO_DEBUG: use %lx for bus_addr_t

10 years agoIn pmap_remove_page(), do not keep wired mappings; the callers want them gone.
miod [Sat, 17 May 2014 12:22:09 +0000 (12:22 +0000)]
In pmap_remove_page(), do not keep wired mappings; the callers want them gone.

10 years agoRemove "WARNING:" prefix from SYSFAIL and ACFAIL messages, so that, in case
miod [Sat, 17 May 2014 12:20:55 +0000 (12:20 +0000)]
Remove "WARNING:" prefix from SYSFAIL and ACFAIL messages, so that, in case
of ACFAIL, what reaches the console is explicit enough.

10 years agounbreak build: exchange %b args order, from miod@
ratchov [Sat, 17 May 2014 12:19:36 +0000 (12:19 +0000)]
unbreak build: exchange %b args order, from miod@

10 years agoLower VUPS value for delay() to behave closer to the intent.
miod [Sat, 17 May 2014 12:13:44 +0000 (12:13 +0000)]
Lower VUPS value for delay() to behave closer to the intent.

This is temporary until vax grows code to compute a proper delay const
at runtime, but will help a bit, especially on KA46 where cd(4) end up
detected as sd(4) due to too short delays.

10 years agoswitch RSA key generation default to 2048 bits (matching ssh); ok miod@
sthen [Sat, 17 May 2014 12:12:05 +0000 (12:12 +0000)]
switch RSA key generation default to 2048 bits (matching ssh); ok miod@

10 years agoPrint the rpb device type and unit values if the root device can't be found
miod [Sat, 17 May 2014 12:08:37 +0000 (12:08 +0000)]
Print the rpb device type and unit values if the root device can't be found
by the kernel.

10 years agoWhen the firmware tells us a loop id is already in use, add the device
jmatthew [Sat, 17 May 2014 11:51:21 +0000 (11:51 +0000)]
When the firmware tells us a loop id is already in use, add the device
there to our port lists, then find the next available loop id and carry on
rather than restarting.  This way, we're less likely to get stuck looping
when the firmware behaves inconsistently.  We also don't need to treat domain
controller logins specially.

additional complications discovered by deraadt@

10 years agoChange the return value of interrupt handler to 0 when nothing is
aoyama [Sat, 17 May 2014 10:06:43 +0000 (10:06 +0000)]
Change the return value of interrupt handler to 0 when nothing is
processed on this driver.

"This is correct" miod@

10 years agoWhen parsing a numerical value for the TOS bits, make sure that it
bluhm [Sat, 17 May 2014 08:12:53 +0000 (08:12 +0000)]
When parsing a numerical value for the TOS bits, make sure that it
is in a valid range.
OK henning@

10 years agobetter description for -A and -a, with help from millert;
jmc [Sat, 17 May 2014 06:26:44 +0000 (06:26 +0000)]
better description for -A and -a, with help from millert;
ok millert sobrado guenther

10 years agoupdate NAME and MLINKS for previous;
jmc [Fri, 16 May 2014 22:11:00 +0000 (22:11 +0000)]
update NAME and MLINKS for previous;

10 years agomore STANDARDS fleshing; ok sobrado millert
jmc [Fri, 16 May 2014 21:50:46 +0000 (21:50 +0000)]
more STANDARDS fleshing; ok sobrado millert

10 years agodocument crypt_checkpass
tedu [Fri, 16 May 2014 21:34:48 +0000 (21:34 +0000)]
document crypt_checkpass

10 years agoadd prototypes for new crypt functions
tedu [Fri, 16 May 2014 21:28:15 +0000 (21:28 +0000)]
add prototypes for new crypt functions

10 years agosync
todd [Fri, 16 May 2014 21:22:13 +0000 (21:22 +0000)]
sync

10 years agoReduce the difference between HC drivers by always passing a generic
mpi [Fri, 16 May 2014 19:00:18 +0000 (19:00 +0000)]
Reduce the difference between HC drivers by always passing a generic
usbd_xfer pointer to the routines processing finished transfers to make
it crystal clear that the timeout and abort logic is the same everywhere.

10 years agosave up the failures for the end in the argc == 0.
tedu [Fri, 16 May 2014 18:35:01 +0000 (18:35 +0000)]
save up the failures for the end in the argc == 0.
help ok espie

10 years agoThere is no need to remember which usb(4) device is the child of an USB
mpi [Fri, 16 May 2014 18:17:03 +0000 (18:17 +0000)]
There is no need to remember which usb(4) device is the child of an USB
host controller because autoconf(9) already does it.

10 years agoa few changes for new code to match local style
tedu [Fri, 16 May 2014 17:46:07 +0000 (17:46 +0000)]
a few changes for new code to match local style

10 years agochecksum mode can use magic pubkey finder too
tedu [Fri, 16 May 2014 17:42:24 +0000 (17:42 +0000)]
checksum mode can use magic pubkey finder too

10 years agoZero out grp before re-using it (new ones are already cleared by
millert [Fri, 16 May 2014 17:30:28 +0000 (17:30 +0000)]
Zero out grp before re-using it (new ones are already cleared by
calloc).   We only reuse grp when there is an unresolvable host.
Fixes a bug where if a host in a netgroup is unresolvable then
entire netgroup is ignore.  OK krw@

10 years agorework -C (perfect candidate for using hash tables, really):
espie [Fri, 16 May 2014 16:18:33 +0000 (16:18 +0000)]
rework -C (perfect candidate for using hash tables, really):

insert files we want to check into a hash,
parse SHA256 message on the fly, delete entries whose checksum match,
then display entries that failed.

This completely avoids allocating temporary storage for file names and checksums
and removes the quadratic match (argv[i] vs line[n]).

okay tedu@

10 years agoInclude openssl/evp.h for OPENSSL_add_all_algorithms_noconf().
jsing [Fri, 16 May 2014 14:45:18 +0000 (14:45 +0000)]
Include openssl/evp.h for OPENSSL_add_all_algorithms_noconf().

From Brent Cook.

10 years agoFix various issues that result in compiler warnings.
jsing [Fri, 16 May 2014 14:41:05 +0000 (14:41 +0000)]
Fix various issues that result in compiler warnings.

Prompted by a diff from Brent Cook.

10 years agoWhen OPENSSL_LOAD_CONF was added it ended up with more #if 0 code,
jsing [Fri, 16 May 2014 14:24:36 +0000 (14:24 +0000)]
When OPENSSL_LOAD_CONF was added it ended up with more #if 0 code,
more #ifdefs and a new source file that contains a single function.

Nuke the #if 0 code that is now a macro and move the single function in
evp_acnf.c to c_all.c, which is where the other code lives. While here,
tidy evp.h slightly, remove an unnecessary #ifdef __OpenBSD__ and nuke
a comment that is now a lie.

ok miod@

10 years agouse $2b in the bcrypt example, ok tedu
sthen [Fri, 16 May 2014 14:12:19 +0000 (14:12 +0000)]
use $2b in the bcrypt example, ok tedu

10 years agoIt seems that there is new and old revision of CH340.
sasano [Fri, 16 May 2014 14:05:39 +0000 (14:05 +0000)]
It seems that there is new and old revision of CH340.
Previous uchcom(4) driver targeted old one, and new one could not work
because of uchcom_set_line_control() broke the value of
UCHCOM_REG_LCR1(0x18).

To support new CH340, uchcom_set_line_control() and uchcom_reset_chip()
have been overhauled. Current uchcom(4) does not change the value of
UCHCOM_REG_LCR1 register, it means even/odd parity mode is no longer
supported with old CH340.

ok by mpi@

10 years agoregen
dcoppa [Fri, 16 May 2014 13:56:15 +0000 (13:56 +0000)]
regen

10 years agoAdd Alcatel OneTouch L100V
dcoppa [Fri, 16 May 2014 13:53:35 +0000 (13:53 +0000)]
Add Alcatel OneTouch L100V

Diff from Lukasz Ratajski

ok sthen@

10 years agoMake the df calculations of available space the same as that done in
krw [Fri, 16 May 2014 13:44:09 +0000 (13:44 +0000)]
Make the df calculations of available space the same as that done in
ffs_statfs().

In 1998, with /usr/src/sys/ufs/ffs/ffs_vfsops.c r1.16, mickey@
improved the calculation of available blocks in ffs_statfs().

Yesterday guenther@ noticed that this fix had not been applied to the
same calculation being done by df(8) when run against raw
devices. Which meant different values were displayed depending on
which device/file system you gave to df.

ok otto@

10 years agoimprove logging messages and style; requested by and ok reyk
mikeb [Fri, 16 May 2014 08:46:23 +0000 (08:46 +0000)]
improve logging messages and style; requested by and ok reyk

10 years agoDo not put any link-layer address on the per-ifp lists or on the RB-
mpi [Fri, 16 May 2014 08:21:54 +0000 (08:21 +0000)]
Do not put any link-layer address on the per-ifp lists or on the RB-
Tree.

Since interfaces only support one link-layer address accessible via the
if_sadl member, there's no need to have it elsewhere.  This improves
various address lookups because the first element of the list, the link-
layer address, won't necessarily be discarded.

Finally remove the empty netmask associated to every link-layer address.
This hack was needed to (ab)use the address & netmask comparison code to
do a strcmp() on the interface name embedded in the sdl_data field.

ok henning@, claudio@

10 years agoFix memory leaks upon failure.
miod [Thu, 15 May 2014 21:07:10 +0000 (21:07 +0000)]
Fix memory leaks upon failure.
ok beck@

10 years agoReplace ASN1_GENERALIZEDTIME_adj(), ASN1_UTCTIME_adj() and
miod [Thu, 15 May 2014 21:06:10 +0000 (21:06 +0000)]
Replace ASN1_GENERALIZEDTIME_adj(), ASN1_UTCTIME_adj() and
ASN1_TIME_to_generalizedtime() with wrappers around their former
implementations, making sure memory allocated is freed in all failure cases.

help and ok from beck@ and Brendan MacDonell.

10 years agomore for STANDARDS: unsupported lists (noted by guenther) and env vars;
jmc [Thu, 15 May 2014 19:42:56 +0000 (19:42 +0000)]
more for STANDARDS: unsupported lists (noted by guenther) and env vars;

10 years agoremove unused variable
chl [Thu, 15 May 2014 19:40:42 +0000 (19:40 +0000)]
remove unused variable

ok espie@