OpenBSD CVS

CVS log for src/lib/libcrypto/ex_data.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Fri Jul 28 10:19:20 2023 UTC (10 months, 2 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.22: +22 -34 lines
Diff to previous 1.22 (colored)

Make ex_data implementations internal

To state the obvious: library suffers from way too much extensibility. In
theory, applications can implement their own ex_data implementation. In
practice, none did. A glance at ex_data.c might give an idea as to why.
Make this internal so this particular turd can be replaced with something
slightly saner.

Also sync up the CRYPTO_EX_INDEX_* defines with OpenSSL - at least
the parts we support.

ok jsing

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

Hide symbols in crypto.h

ok jsing@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 16 11:20:01 2023 UTC (11 months, 3 weeks ago) by tb
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Fix CRYPTO_get_ex_new_index() to return 1 or higher

Mixing SSL_{get,set}_ex_data() and and SSL_{get,set}_app_data() in the
same application causes problems since they both place their data at
the same spot.

From Marc Aldorasi

ok jsing

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 17 16:20:01 2018 UTC (6 years, 2 months ago) by beck
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, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

Bring in compatibility for OpenSSL 1.1 style init functions.

This adds OPENSSL_init_crypto and OPENSSL_init_ssl, as well
thread safety modifications for the existing LibreSSL init
functions.  The initialization routines are called automatically
by the normal entry points into the library, as in newer OpenSSL

ok jsing@, nits by tb@ and deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jan 29 17:49:22 2017 UTC (7 years, 4 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.18: +9 -11 lines
Diff to previous 1.18 (colored)

Send the function codes from the error functions to the bit bucket,
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Feb 10 11:22:21 2015 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.17: +1 -3 lines
Diff to previous 1.17 (colored)

Remove more IMPLEMENT_STACK_OF noops that have been hiding for the last
15 years.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 11 08:44:47 2014 UTC (9 years, 11 months ago) by jsing
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Only import cryptlib.h in the four source files that actually need it.
Remove the openssl public includes from cryptlib.h and add a small number
of includes into the source files that actually need them. While here,
also sort/group/tidy the includes.

ok beck@ miod@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 12 15:49:27 2014 UTC (10 years ago) by deraadt
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

tags as requested by miod and tedu

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jun 7 14:41:56 2014 UTC (10 years ago) by deraadt
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

malloc() result does not need a cast.
ok miod

Revision 1.14 / (download) - annotate - [select for diffs], Thu May 29 21:07:42 2014 UTC (10 years ago) by deraadt
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

convert 53 malloc(a*b) to reallocarray(NULL, a, b).  that is 53
potential integer overflows easily changed into an allocation return
of NULL, with errno nicely set if need be.  checks for an allocations
returning NULL are commonplace, or if the object is dereferenced
(quite normal) will result in a nice fault which can be detected &
repaired properly.
ok tedu

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 22 21:12:15 2014 UTC (10 years ago) by miod
Branch: MAIN
Changes since 1.12: +3 -6 lines
Diff to previous 1.12 (colored)

if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully
eyeballed before applying. Contributed by Cyril Roelandt on tech@

Revision 1.12 / (download) - annotate - [select for diffs], Sun Apr 20 14:32:19 2014 UTC (10 years, 1 month ago) by jsing
Branch: MAIN
Changes since 1.11: +31 -24 lines
Diff to previous 1.11 (colored)

More KNF.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 17 17:50:44 2014 UTC (10 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored)

some KNF cleanup following the script

Revision 1.10 / (download) - annotate - [select for diffs], Thu Apr 17 13:37:48 2014 UTC (10 years, 1 month ago) by beck
Branch: MAIN
Changes since 1.9: +12 -12 lines
Diff to previous 1.9 (colored)

Change library to use intrinsic memory allocation functions instead of
OPENSSL_foo wrappers. This changes:
OPENSSL_malloc->malloc
OPENSSL_free->free
OPENSSL_relloc->realloc
OPENSSL_freeFunc->free

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 15 13:41:53 2014 UTC (10 years, 1 month ago) by jsing
Branch: MAIN
Changes since 1.8: +220 -220 lines
Diff to previous 1.8 (colored)

First pass at applying KNF to the OpenSSL code, which almost makes it
readable. This pass is whitespace only and can readily be verified using
tr and md5.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Oct 1 22:58:53 2010 UTC (13 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.7: +23 -19 lines
Diff to previous 1.7 (colored)

resolve conflicts, fix local changes

Revision 1.1.1.4 / (download) - annotate - [select for diffs] (vendor branch), Fri Oct 1 22:54:02 2010 UTC (13 years, 8 months ago) by djm
Changes since 1.1.1.3: +23 -19 lines
Diff to previous 1.1.1.3 (colored)

import OpenSSL-1.0.0a

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 6 12:17:48 2008 UTC (15 years, 9 months ago) by djm
Branch: MAIN
Changes since 1.6: +3 -7 lines
Diff to previous 1.6 (colored)

resolve conflicts

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sat Sep 6 12:15:39 2008 UTC (15 years, 9 months ago) by djm
Changes since 1.1.1.2: +3 -7 lines
Diff to previous 1.1.1.2 (colored)

import of OpenSSL 0.9.8h

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Thu Sep 5 12:49:41 2002 UTC (21 years, 9 months ago) by markus
Changes since 1.1.1.1: +525 -125 lines
Diff to previous 1.1.1.1 (colored)

import openssl-0.9.7-beta1

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 15 02:29:10 2002 UTC (22 years, 1 month ago) by beck
Branch: MAIN
Changes since 1.5: +514 -101 lines
Diff to previous 1.5 (colored)

OpenSSL 0.9.7 stable 2002 05 08 merge

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 22 00:02:54 2001 UTC (22 years, 11 months ago) by beck
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

openssl-engine-0.9.6a merge

Revision 1.4 / (download) - annotate - [select for diffs], Fri Dec 15 02:57:02 2000 UTC (23 years, 6 months ago) by beck
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

openssl-engine-0.9.6 merge

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 19 11:08:29 2000 UTC (24 years, 2 months ago) by beck
Branch: MAIN
Changes since 1.2: +20 -20 lines
Diff to previous 1.2 (colored)

OpenSSL 0.9.5 merge

*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2
if you are using the ssl26 packages for ssh and other things to work you will
need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs

Revision 1.2 / (download) - annotate - [select for diffs], Wed Sep 29 04:35:24 1999 UTC (24 years, 8 months ago) by beck
Branch: MAIN
Changes since 1.1: +22 -35 lines
Diff to previous 1.1 (colored)

OpenSSL 0.9.4 merge

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Oct 5 20:12:34 1998 UTC (25 years, 8 months ago) by ryker
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD build
functionality for shared libs.

Note that routines such as sslv2_init and friends that use RSA will
not work due to lack of RSA in this library.

Needs documentation and help from ports for easy upgrade to full
functionality where legally possible.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 5 20:12:34 1998 UTC (25 years, 8 months ago) by ryker
Branch: MAIN

Initial revision

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.