<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/crypto_lock.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-07-08T08:28:23+00:00</updated>
<entry>
<title>Hide symbols in crypto.h</title>
<updated>2023-07-08T08:28:23+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T08:28:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=842e06ad9bdf75858b4eca096b3f27979b2101fd'/>
<id>urn:sha1:842e06ad9bdf75858b4eca096b3f27979b2101fd</id>
<content type='text'>
ok jsing@
</content>
</entry>
<entry>
<title>Reinstate bn_isqrt.c r1.8 and crypto_lock.c r1.3</title>
<updated>2023-06-04T17:28:35+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-06-04T17:28:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=383800ed25dd1967077f5e56673b8363dd647b9e'/>
<id>urn:sha1:383800ed25dd1967077f5e56673b8363dd647b9e</id>
<content type='text'>
This traded local copies of CTASSERT() to the one in crypto_internal.h.
This change was backed out due to SHA-512 breakage on STRICT_ALIGNMENT
architectures still using Fred Flintstone's gcc without asm sha512.

Original commit message:

Use crypto_internal.h's CTASSERT()

Now that this macro is available in a header, let's use that version
rather than copies in several .c files.

discussed with jsing
</content>
</entry>
<entry>
<title>backout alignment changes (breaking at least two architectures)</title>
<updated>2023-05-19T00:54:28+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2023-05-19T00:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3dc51b1807e9a69624721300010e6e6ce16d5709'/>
<id>urn:sha1:3dc51b1807e9a69624721300010e6e6ce16d5709</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use crypto_internal.h's CTASSERT()</title>
<updated>2023-05-17T07:42:38+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-05-17T07:42:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=11b2caf2d2be047efd96d29f1a2278031692364a'/>
<id>urn:sha1:11b2caf2d2be047efd96d29f1a2278031692364a</id>
<content type='text'>
Now that this macro is available in a header, let's use that version
rather than copies in several .c files.

discussed with jsing
</content>
</entry>
<entry>
<title>Correct lock initialisation for libcrypto.</title>
<updated>2018-11-28T15:51:32+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2018-11-28T15:51:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9146b9f89715c0fa5039dde262a76e29bf0be7e1'/>
<id>urn:sha1:9146b9f89715c0fa5039dde262a76e29bf0be7e1</id>
<content type='text'>
The current crypto_lock_init() function is not called early enough, meaning
that locks are already in use before it gets called. Worse, locks could be
in use when they are then initialised. Furthermore, since functions like
CRYPTO_lock() are public API, these could be called directly bypassing
initialisation.

Avoid these issues by using static initialisers.

ok bcook@
</content>
</entry>
<entry>
<title>Add automatic threading initialization for libcrypto.</title>
<updated>2018-11-11T06:41:28+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2018-11-11T06:41:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3c41ae7ec959c3c608931951c8655a0e1df18696'/>
<id>urn:sha1:3c41ae7ec959c3c608931951c8655a0e1df18696</id>
<content type='text'>
This implements automatic thread support initialization in libcrypto.
This does not remove any functions from the ABI, but does turn them into
no-ops. Stub implementations of pthread_mutex_(init|lock|unlock) are
provided for ramdisks.

This does not implement the new OpenSSL 1.1 thread API internally,
keeping the original CRYTPO_lock / CRYPTO_add_lock functions for library
locking. For -portable, crypto_lock.c can be reimplemented with
OS-specific primitives as needed.

ok beck@, tb@, looks sane guenther@
</content>
</entry>
</feed>
