<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/libexec/spamd/sync.c, branch jd/simplify-queueing</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/libexec/spamd/sync.c?h=jd%2Fsimplify-queueing</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/libexec/spamd/sync.c?h=jd%2Fsimplify-queueing'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-06-28T13:32:41Z</updated>
<entry>
<title>When system calls indicate an error they return -1, not some arbitrary</title>
<updated>2019-06-28T13:32:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-06-28T13:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df69c215c7c66baf660f3f65414fd34796c96152'/>
<id>urn:sha1:df69c215c7c66baf660f3f65414fd34796c96152</id>
<content type='text'>
value &lt; 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
</content>
</entry>
<entry>
<title>- Remove useless var assignment</title>
<updated>2016-10-20T21:09:46Z</updated>
<author>
<name>mestre</name>
<email>mestre@openbsd.org</email>
</author>
<published>2016-10-20T21:09:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=003af73df2da380d8bef9220ce9aecfbaef5a69b'/>
<id>urn:sha1:003af73df2da380d8bef9220ce9aecfbaef5a69b</id>
<content type='text'>
- Use memset(*b, 0, len) instead of bzero(*b, len)
- Use memcpy(*dst, *src, len) instead of bcopy(*src, *dst, len)
- Use explicit_bzero(3) instead of bzero(3) to clean temporary HMAC

Remarks from deraadt@ (duly noted!!), reviewed and OK by henning@ and tb@
</content>
</entry>
<entry>
<title>Delete a bunch of unnecessary #includes</title>
<updated>2014-11-23T21:19:47Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2014-11-23T21:19:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e52bebba125dc9aec314ecbf79a134c59d859836'/>
<id>urn:sha1:e52bebba125dc9aec314ecbf79a134c59d859836</id>
<content type='text'>
Use &lt;fcntl.h&gt; instead of &lt;sys/{file,fcntl}.h&gt;

ok krw@
</content>
</entry>
<entry>
<title>the time being handled here is strictly unsigned 32 bit</title>
<updated>2013-11-19T18:33:07Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2013-11-19T18:33:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d614df11fc2cf09ad4d282b0657dee22842055ac'/>
<id>urn:sha1:d614df11fc2cf09ad4d282b0657dee22842055ac</id>
<content type='text'>
ok beck phessler
</content>
</entry>
<entry>
<title>rather than a mishmash of headers, this only needs &lt;stdint.h&gt;</title>
<updated>2012-12-04T02:36:38Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2012-12-04T02:36:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b6722e3fa327823fbe15cd3e2182eecba7ebdaf5'/>
<id>urn:sha1:b6722e3fa327823fbe15cd3e2182eecba7ebdaf5</id>
<content type='text'>
with guenther
</content>
</entry>
<entry>
<title>PR 6090 - from Olli Hauer &lt;ohauer@gmx.de&gt;</title>
<updated>2009-04-20T17:42:21Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2009-04-20T17:42:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=00ddf0caf931d29b6abed6a5062a72ef40e0e33c'/>
<id>urn:sha1:00ddf0caf931d29b6abed6a5062a72ef40e0e33c</id>
<content type='text'>
A number of small improvements:

- patch for empty lines and comments in alloweddomains_file
- remove some whitespaces at end of line.
- document comment and empty line handling
- Remove unused parameter 'r' from getopt in spamd.c, it is removed in the 'switch statement'
  but not in getopt.
  http://www.openbsd.org/cgi-bin/cvsweb/src/libexec/spamd/spamd.c.diff?r1=1.94;r2=1.95;f=h
- replace atoi with strtonum
- make debug output more usefull, display only what will be synced and not a second
  message which prints always "sync trapped %s"

- some cosemtic and whitespace fixes.
</content>
</entry>
<entry>
<title>version 2 of spamd sync protocol for two reasons:</title>
<updated>2008-05-22T19:54:11Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2008-05-22T19:54:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d72b910d458fb59eabd9ac259300a284a7483d5f'/>
<id>urn:sha1:d72b910d458fb59eabd9ac259300a284a7483d5f</id>
<content type='text'>
1) ip addresses were accidentally being sent in host-byte order, which
   caused compatibility problems (spotted by jbg)
2) the sub-headers in the frame were not natively aligned, thus timeout
   values were incorrectly sent by 64-bit machines
ok beck
</content>
</entry>
<entry>
<title>As was done in dhcpd, insert pad blocks after sub-messages to keep the</title>
<updated>2008-05-09T07:09:17Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2008-05-09T07:09:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4aba4ff9a65bf5ef59be7df57da4de5c6d640729'/>
<id>urn:sha1:4aba4ff9a65bf5ef59be7df57da4de5c6d640729</id>
<content type='text'>
structures aligned to 16 byte boundaries for maximum portability
(somewhat similar to CMSG's).  Old spamd's and new spamd's can still
communicate with this change.  It would be nice if someone tested spamd
on 64-bit unaligned architectures (with and without this change)
ok beck
</content>
</entry>
<entry>
<title>check if the received buffer of a sync element is even big enough to</title>
<updated>2008-05-07T08:50:15Z</updated>
<author>
<name>reyk</name>
<email>reyk@openbsd.org</email>
</author>
<published>2008-05-07T08:50:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fcca1eed2d4d5df1a4e175e69ac841ec5169603b'/>
<id>urn:sha1:fcca1eed2d4d5df1a4e175e69ac841ec5169603b</id>
<content type='text'>
hold the header with length field.

ok deraadt@ beck@
</content>
</entry>
<entry>
<title>Add a missing length check of received spamd sync packet headers.</title>
<updated>2007-12-27T10:50:06Z</updated>
<author>
<name>reyk</name>
<email>reyk@openbsd.org</email>
</author>
<published>2007-12-27T10:50:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=544df9d585b21cbf4bd6476a57849bf296876ed0'/>
<id>urn:sha1:544df9d585b21cbf4bd6476a57849bf296876ed0</id>
<content type='text'>
From Diego Giagio (dgiagio at gmail)
with input from tedu@
</content>
</entry>
</feed>
