OpenBSD CVS

CVS log for src/lib/libcrypto/malloc-wrapper.c


[BACK] Up to [local] / src / lib / libcrypto

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 10 14:51:02 2024 UTC (2 months ago) by beck
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

Finish Hiding symbols in crypto.h

crypto.h already had the symbols not hidden behind LIBRESSL_INTERNAL
hidden - This now picks up the reset of them marking them as
LCRYPTO_UNUSED, and removes the LIBRESSL_INTERNAL guard.

These symbols will now be hidden, but if we use them inside
the library in a namespaced build we will get a deprecation
warning. use outside the library will be as with any other hidden
symbol, so fine.

ok tb@

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 2 11:35:09 2024 UTC (3 months, 1 week ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.9: +3 -5 lines
Diff to previous 1.9 (colored)

Fix CRYPTO_malloc/free signatures

Importantly, the size in malloc is now a size_t instead of an int. The API
now also takes a file and line to match upstream's signature.

ok jsing

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 2 11:28:46 2024 UTC (3 months, 1 week ago) by tb
Branch: MAIN
Changes since 1.8: +1 -149 lines
Diff to previous 1.8 (colored)

Remove a bunch of CRYPTO memory API

This was neutered early on in the fork and has been rotting ever since.
Some parts of the API are still used, but it's easier to clean up when
most of the mess is gone.

ok jsing

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 8 08:28:23 2023 UTC (11 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.7: +17 -1 lines
Diff to previous 1.7 (colored)

Hide symbols in crypto.h

ok jsing@

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 13 13:49:04 2018 UTC (6 years, 1 month ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.6: +4 -11 lines
Diff to previous 1.6 (colored)

Turn CRYPTO_realloc_clean() into a recallocarray() wrapper.

ok beck@ tb@

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 2 03:59:44 2017 UTC (7 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

use freezero() instead of memset/explicit_bzero + free.  Substantially
reduces conditional logic (-218, +82).

MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH cache alignment calculation bn/bn_exp.c
wasn'tt quite right.  Two other tricky bits with ASN1_STRING_FLAG_NDEF and
BN_FLG_STATIC_DATA where the condition cannot be collapsed completely.

Passes regress.  ok beck

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 28 22:46:40 2017 UTC (7 years, 1 month ago) by beck
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

revert previous accidental commit

Revision 1.4 / (download) - annotate - [select for diffs], Fri Apr 28 22:38:51 2017 UTC (7 years, 1 month ago) by beck
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

*** empty log message ***

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 20 14:32:19 2014 UTC (10 years, 1 month ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

More KNF.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 17 20:44:45 2014 UTC (10 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)

unused variable

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 16 03:24:53 2014 UTC (10 years, 1 month ago) by beck
Branch: MAIN

Your operating system memory allocation functions are your friend. If they
are not please fix your operating system. Replace mem.c with an API-compatible
wrapper that just calls the system functions and does not allow a one word
modification of a variable in a running shared library to turn on memory
debug functions that expose things that should not be seen.
ok tedu@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.