summaryrefslogtreecommitdiffstats
path: root/crypto/store/str_lib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove store.Rich Salz2016-02-101-1759/+0
| | | | | | | Rebased and merged by me, with Ben's approval. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Ben Laurie <ben@openssl.org>
* Remove /* foo.c */ commentsRich Salz2016-01-261-1/+0
| | | | | | | | | | | | This was done by the following find . -name '*.[ch]' | /tmp/pl where /tmp/pl is the following three-line script: print unless $. == 1 && m@/\* .*\.[ch] \*/@; close ARGV if eof; # Close file to reset $. And then some hand-editing of other files. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Fix store with opaque dataTodd Short2016-01-231-7/+7
| | | | | | | | | | | | When experimental-store is enabled, it does not compile due to the change to opaque data structures. Change CRYPTO_add() to EVP_PKEY_up_ref() as needed. Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Rich Salz <rsalz@openssl.org> RT: #4263, GH: #579
* Remove the "eay" c-file-style indicatorsRichard Levitte2015-12-181-1/+1
| | | | | | | Since we don't use the eay style any more, there's no point tryint to tell emacs to use it. Reviewed-by: Matt Caswell <matt@openssl.org>
* Rename some BUF_xxx to OPENSSL_xxxRich Salz2015-12-161-2/+2
| | | | | | | | | Rename BUF_{strdup,strlcat,strlcpy,memdup,strndup,strnlen} to OPENSSL_{strdup,strlcat,strlcpy,memdup,strndup,strnlen} Add #define's for the old names. Add CRYPTO_{memdup,strndup}, called by OPENSSL_{memdup,strndup} macros. Reviewed-by: Tim Hudson <tjh@openssl.org>
* ex_data part 2: doc fixes and CRYPTO_free_ex_index.Rich Salz2015-12-011-7/+0
| | | | | | | | | | Add CRYPTO_free_ex_index (for shared libraries) Unify and complete the documentation for all "ex_data" API's and objects. Replace xxx_get_ex_new_index functions with a macro. Added an exdata test. Renamed the ex_data internal datatypes. Reviewed-by: Matt Caswell <matt@openssl.org>
* Continue standardising malloc style for libcryptoMatt Caswell2015-11-091-13/+13
| | | | | | | Continuing from previous commit ensure our style is consistent for malloc return checks. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* fix discrepancyDr. Stephen Henson2015-11-051-1/+1
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add and use OPENSSL_zallocRich Salz2015-09-031-3/+1
| | | | | | | | | There are many places (nearly 50) where we malloc and then memset. Add an OPENSSL_zalloc routine to encapsulate that. (Missed one conversion; thanks Richard) Also fixes GH328 Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add X509_up_ref function.Dr. Stephen Henson2015-09-011-5/+3
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add X509_CRL_up_ref functionDr. Stephen Henson2015-09-011-4/+4
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Use safer sizeof variant in mallocRich Salz2015-05-041-6/+7
| | | | | | | | | | | | | For a local variable: TYPE *p; Allocations like this are "risky": p = OPENSSL_malloc(sizeof(TYPE)); if the type of p changes, and the malloc call isn't updated, you could get memory corruption. Instead do this: p = OPENSSL_malloc(sizeof(*p)); Also fixed a few memset() calls that I noticed while doing this. Reviewed-by: Richard Levitte <levitte@openssl.org>
* remove malloc castsRich Salz2015-04-281-2/+2
| | | | | | | Following ANSI C rules, remove the casts from calls to OPENSSL_malloc and OPENSSL_realloc. Reviewed-by: Richard Levitte <levitte@openssl.org>
* util/mkstack.pl now generates entire safestack.hRich Salz2015-02-061-2/+0
| | | | | | | | | 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>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-1571/+1515
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* More type-checking.Ben Laurie2008-06-041-3/+7
|
* Typo in str_lib.cAndy Polyakov2007-07-071-1/+1
| | | | PR: 1177
* Wrap the inclusion of openssl/engine.h with a protective check forRichard Levitte2005-06-231-0/+2
| | | | | | the absence of OPENSSL_NO_ENGINE. PR: 1123
* Fix more error codes.Bodo Möller2005-05-111-26/+26
| | | | | (Also improve util/ck_errf.pl script, and occasionally fix source code formatting.)
* Deprecate some recursive includes from the store.h API header, and put backGeoff Thorpe2004-05-171-0/+2
| | | | required includes back via the internal header and str_lib.c.
* Implement missing functions.Richard Levitte2003-06-261-0/+121
| | | | | | Have the f parameter to _ctrl functions have the prototype (*)(void) rather than (*)(), for the sake of C++ compilers. Disable unimplemented functionality.
* Missing string and potential memory leaks.Richard Levitte2003-06-181-14/+22
| | | | Notified by Goetz Babin-Ebell <goetz@shomitefo.de>
* Slightly better check of attributes. Now, mem_list_next can actually stop ↵Richard Levitte2003-06-121-11/+84
| | | | when the searched for key doesn't have it's attributes within the range of the checked key.
* BeautifyRichard Levitte2003-06-121-2/+2
|
* Remove extra ;Richard Levitte2003-06-041-1/+1
|
* I have no idea how I cut away that piece of text...Richard Levitte2003-05-211-1/+5
|
* Some misspelled function names.Richard Levitte2003-05-201-10/+6
|
* Add the possibility to hand execution parameters (for exampleRichard Levitte2003-05-071-64/+107
| | | | | authentication material) to the STORE functions. Suggested by Götz Babin-Ebell <babin-ebell@trustcenter.de>.
* Add the possibility to store arbitrary data in a STORE.Richard Levitte2003-05-061-1/+69
| | | | Suggested by Götz Babin-Ebell <babin-ebell@trustcenter.de>.
* It's usually best if the function name matches everywhere...Richard Levitte2003-05-021-1/+1
|
* Define a STORE type. For documentation, read the entry in CHANGES,Richard Levitte2003-05-011-0/+1507
crypto/store/README, crypto/store/store.h and crypto/store/str_locl.h.