<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/secure/lib/libcrypt/crypt-des.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2016-08-10T15:16:28Z</updated>
<entry>
<title>Make libcrypt thread-safe. Add crypt_r(3).</title>
<updated>2016-08-10T15:16:28Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2016-08-10T15:16:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f521d7ba72145092ea23ff6081d8791ad6c1f9d'/>
<id>urn:sha1:5f521d7ba72145092ea23ff6081d8791ad6c1f9d</id>
<content type='text'>
glibc has a pretty nice function called crypt_r(3), which is nothing
more than crypt(3), but thread-safe. It accomplishes this by introducing
a 'struct crypt_data' structure that contains a buffer that is large
enough to hold the resulting string.

Let's go ahead and also add this function. It would be a shame if a
useful function like this wouldn't be usable in multithreaded apps.
Refactor crypt.c and all of the backends to no longer declare static
arrays, but write their output in a provided buffer.

There is no need to do any buffer length computation here, as we'll just
need to ensure that 'struct crypt_data' is large enough, which it is.
_PASSWORD_LEN is defined to 128 bytes, but in this case I'm picking 256,
as this is going to be part of the actual ABI.

Differential Revision:	https://reviews.freebsd.org/D7306
</content>
</entry>
<entry>
<title>Update the previous openssl fix. [12:01]</title>
<updated>2012-05-30T12:01:28Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2012-05-30T12:01:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=071183ef48062f3d4cd317aac2b7639dc2d70dc9'/>
<id>urn:sha1:071183ef48062f3d4cd317aac2b7639dc2d70dc9</id>
<content type='text'>
Fix a bug in crypt(3) ignoring characters of a passphrase. [12:02]

Security:	FreeBSD-SA-12:01.openssl (revised)
Security:	FreeBSD-SA-12:02.crypt
Approved by:	so (bz, simon)
</content>
</entry>
<entry>
<title>No functional change, but big code cleanup. WARNS, lint(1) and style(9).</title>
<updated>2002-03-06T17:18:09Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2002-03-06T17:18:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2ac424af7b980ba4d858ecfd1644ce197d6869d'/>
<id>urn:sha1:f2ac424af7b980ba4d858ecfd1644ce197d6869d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>o Move NTOHL() and associated macros into &lt;sys/param.h&gt;.  These are</title>
<updated>2002-02-18T20:35:27Z</updated>
<author>
<name>Mike Barcroft</name>
<email>mike@FreeBSD.org</email>
</author>
<published>2002-02-18T20:35:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fd8e4ebc8c18caec3eefac6527831f9ee6a92959'/>
<id>urn:sha1:fd8e4ebc8c18caec3eefac6527831f9ee6a92959</id>
<content type='text'>
  deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
  source tree to use the lowercase function variants.
o Add missing license bits to sparc64's &lt;machine/endian.h&gt;.
  Approved by: jake
o Clean up &lt;machine/endian.h&gt; files.
o Remove unused __uint16_swap_uint32() from i386's &lt;machine/endian.h&gt;.
o Remove prototypes for non-existent bswapXX() functions.
o Include &lt;machine/endian.h&gt; in &lt;arpa/inet.h&gt; to define the
  POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, &lt;netinet/in.h&gt;,
  and &lt;sys/param.h&gt;.
o Prepend underscores to the ntohl() family to help deal with
  complexities associated with having MD (asm and inline) versions, and
  having to prevent exposure of these functions in other headers that
  happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
  third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from &lt;sys/types.h&gt;.
o Add missing &lt;arpa/inet.h&gt; includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
</content>
</entry>
<entry>
<title>__FBSDID()  (second half of src/lib/libcrypt changes)</title>
<updated>2001-10-23T10:23:32Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2001-10-23T10:23:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=68344a95478e7f7a30cc2d93820595aad7e7bc5b'/>
<id>urn:sha1:68344a95478e7f7a30cc2d93820595aad7e7bc5b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make this completely dependant on the exportable libcrypt, to avoid</title>
<updated>1999-09-20T12:40:06Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>1999-09-20T12:40:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e1e54354b5ec97bd3ffc486ae999fb1648d24f58'/>
<id>urn:sha1:e1e54354b5ec97bd3ffc486ae999fb1648d24f58</id>
<content type='text'>
duplication of effort. Also a large cleanup of the code, inspired
by Brandon Gillespie.
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T01:35:59Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T01:35:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=97d92980a96a50750844f420cc225ddf918f0699'/>
<id>urn:sha1:97d92980a96a50750844f420cc225ddf918f0699</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert $FreeBSD$ to $Id$</title>
<updated>1997-02-22T14:40:44Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1997-02-22T14:40:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0ec1f37ef32e9f3d3b1ad77f6af2fa650a1dc82'/>
<id>urn:sha1:c0ec1f37ef32e9f3d3b1ad77f6af2fa650a1dc82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the long-awaited change from $Id$ to $FreeBSD$</title>
<updated>1997-01-14T07:20:47Z</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>1997-01-14T07:20:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1130b656e5fe4c2d1ba299e024d1b40eaeebd380'/>
<id>urn:sha1:1130b656e5fe4c2d1ba299e024d1b40eaeebd380</id>
<content type='text'>
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
</content>
</entry>
<entry>
<title>Dual personality crypt(3). This crypt will choose its encryption algorithm</title>
<updated>1995-12-16T09:14:12Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>1995-12-16T09:14:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=96e718fe290fc3aada707298b15b67fa37cc8d98'/>
<id>urn:sha1:96e718fe290fc3aada707298b15b67fa37cc8d98</id>
<content type='text'>
(DES or MD5) based on the type of salt used. Salt beginning with "$1$"
indicates MD5.
</content>
</entry>
</feed>
