aboutsummaryrefslogtreecommitdiffstats
path: root/util/mkstack.pl
Commit message (Collapse)AuthorAgeFilesLines
* use more descriptive name DEFINE_STACK_OF_CONSTDr. Stephen Henson2016-01-071-1/+1
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Rename DECLARE*STACK_OF to DEFINE*STACK_OFDr. Stephen Henson2016-01-071-6/+6
| | | | | | | | | | Applications wishing to include their own stacks now just need to include DEFINE_STACK_OF(foo) in a header file. Reviewed-by: Richard Levitte <levitte@openssl.org>
* remove unused PREDECLAREDr. Stephen Henson2016-01-071-1/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Change STACK_OF to use inline functions.Dr. Stephen Henson2016-01-071-145/+102
| | | | | | | Change DECLARE_STACK_OF into inline functions. This avoids the need for auto generated mkstack.pl macros and now handles const properly. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add crypto/include/internal to the directories to scan for stack declarationsRichard Levitte2015-10-181-1/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Sort @sstacklst correctly.Dr. Stephen Henson2015-07-091-1/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Stop symlinking, move files to intended directoryRichard Levitte2015-03-311-2/+2
| | | | | | | | | | | | | Rather than making include/openssl/foo.h a symlink to crypto/foo/foo.h, this change moves the file to include/openssl/foo.h once and for all. Likewise, move crypto/foo/footest.c to test/footest.c, instead of symlinking it there. Originally-by: Geoff Thorpe <geoff@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove obsolete declarations.Dr. Stephen Henson2015-03-121-28/+0
| | | | | | | Remove DECLARE_ASN1_SET_OF and DECLARE_PKCS12_STACK_OF these haven't been used internally in OpenSSL for some time. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Update mkstack.pl to match safestack.hDr. Stephen Henson2015-03-121-10/+2
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* util/mkstack.pl now generates entire safestack.hRich Salz2015-02-061-166/+368
| | | | | | | | | The mkstack.pl script now generates the entire safestack.h file. It generates output that follows the coding style. Also, removed all instances of the obsolete IMPLEMENT_STACK_OF macro. Reviewed-by: Andy Polyakov <appro@openssl.org>
* Implement sk_deep_copy.Viktor Dukhovni2014-06-221-1/+3
|
* Assorted bugfixes:Bodo Möller2011-02-031-10/+10
| | | | | | | | - safestack macro changes for C++ were incomplete - RLE decompression boundary case - SSL 2.0 key arg length check Submitted by: Google (Adam Langley, Neel Mehta, Bodo Moeller)
* Updates from 1.0.0-stable.Dr. Stephen Henson2009-04-151-1/+15
|
* More type-checking.Ben Laurie2008-06-041-1/+23
|
* LHASH revamp. make depend.Ben Laurie2008-05-261-3/+33
|
* Fix race condition when CRL checking is enabled.Dr. Stephen Henson2004-10-041-0/+1
|
* Add an extended variant of sk_find() which returns a non-NULL pointerRichard Levitte2003-04-291-0/+1
| | | | even if an exact match wasn't found.
* Remove references to RSAref. The glue library is but a memory to fadeRichard Levitte2000-11-081-1/+1
| | | | away now...
* Change mkstack.pl so it now sorts each groupDr. Stephen Henson2000-06-221-3/+3
| | | | | | | | | | | | into lexical order. Previously it depended on the order of files in the directory. This should now mean that all systems will agree on the order of safestack.h and will not change it needlessly and avoid massive needless commits to safestack.h in future. It wont however avoid this one :-(
* Handle ASN1_SET_OF and PKCS12_STACK_OF using functionDr. Stephen Henson2000-06-201-0/+25
| | | | casts in the same way as STACK_OF.
* Using speaking "variable" names in macros so that e.g. grepping forBodo Möller2000-06-171-71/+64
| | | | | | | | sk_whatever_insert and sk_whatever_set immediately reveals the subtle difference in parameter order. Change mkstack.pl so that safestack.h is not rewritten when nothing has changed.
* Safe stack reorganisation in terms of function casts.Dr. Stephen Henson2000-06-161-49/+43
| | | | | | | | | | | | After some messing around this seems to work but needs a few more tests. Working out the syntax for sk_set_cmp_func() (cast it to a function that itself returns a function pointer) was painful :-( Needs some testing to see what other compilers think of this syntax. Also needs similar stuff for ASN1_SET_OF etc etc.
* This change will cause builds (by default) to not use different STACKGeoff Thorpe2000-06-011-0/+112
structures and functions for each stack type. The previous behaviour can be enabled by configuring with the "-DDEBUG_SAFESTACK" option. This will also cause "make update" (mkdef.pl in particular) to update the libeay.num and ssleay.num symbol tables with the number of extra functions DEBUG_SAFESTACK creates. The way this change works is to accompany each DECLARE_STACK_OF() macro with a set of "#define"d versions of the sk_##type##_*** functions that ensures all the existing "type-safe" stack calls are precompiled into the underlying stack calls. The presence or abscence of the DEBUG_SAFESTACK symbol controls whether this block of "#define"s or the DECLARE_STACK_OF() macro is taking effect. The block of "#define"s is in turn generated and maintained by a perl script (util/mkstack.pl) that encompasses the block with delimiting C comments. This works in a similar way to the auto-generated error codes and, like the other such maintenance utilities, is invoked by the "make update" target. A long (but mundane) commit will follow this with the results of "make update" - this will include all the "#define" blocks for each DECLARE_STACK_OF() statement, along with stripped down libeay.num and ssleay.num files.