summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a const qualifier to the return value of BIO_s_file().tb2018-05-301-3/+3
| | | | | tested in a bulk build by sthen ok bcook, jsing
* Send the function codes from the error functions to the bit bucket,beck2017-01-291-9/+9
| | | | | | as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
* f{read,write} take a number of items and an item size as arguments, andmiod2014-11-111-12/+5
| | | | | | | | | | | | | | | | | | | | | return the number of items read of written. When you intend to return the number of bytes actually processed, it is wise to pass 1 as the item size and the size as the number of items. But in *some* places, the OpenSSL does the opposite, and has extra logic to change a successful return of 1 (item processed) into the real size. And, guess why it does that? Because of old VMS, for they (used to) have a substandard stdio implementation. Note that this change causes the return values of BIO_dump_fp() and BIO_dump_indent_fp() to no longer be useless (actual number of callback calls), but actual bytes output. Given the irrelevance of the return value before, it is unlikely that anything depends upon it (and if something does, it probably has other problems in need for a fix...) ok tedu@ beck@ jsing@
* Only import cryptlib.h in the four source files that actually need it.jsing2014-07-111-2/+1
| | | | | | | | 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@
* Stop including standard headers via cryptlib.h - pull in the headers thatjsing2014-07-101-3/+4
| | | | | | are needed in the source files that actually require them. ok beck@ miod@
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* Any sane platform has stdio. Stop pretending we will ever use a platformbeck2014-05-291-2/+0
| | | | | that does not. "fire bomb" tedu@
* Use C99 initializers for the various FOO_METHOD structs. More readable, andmiod2014-04-271-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | avoid unreadable/unmaintainable constructs like that: const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { EVP_PKEY_CMAC, EVP_PKEY_CMAC, 0, "CMAC", "OpenSSL CMAC method", 0,0,0,0, 0,0,0, cmac_size, 0, 0,0,0,0,0,0,0, cmac_key_free, 0, 0,0 }; ok matthew@ deraadt@
* Replace all use of ERR_add_error_data with ERR_asprintf_error_data.beck2014-04-261-2/+2
| | | | | | | | This avoids a lot of ugly gymnastics to do snprintfs before sending the bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c where it was being called with the incorrect number of arguments and using random things off the stack as addresses of strings. ok krw@, jsing@
* use intrinsic strlcpy and strlcat everywhere so we only have one set ofbeck2014-04-191-5/+5
| | | | | | funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
* some KNF cleanup following the scriptderaadt2014-04-171-6/+6
|
* - Why do we hide from the OpenSSL police, dad?miod2014-04-161-55/+13
| | | | | | | | - Because they're not like us, son. They use macros to wrap stdio routines, for an undocumented (OPENSSL_USE_APPLINK) use case, which only serves to obfuscate the code. ok tedu@
* > As I walk through the valley of the shadow of deathtedu2014-04-161-87/+0
| | | | | | | | | > I take a look at my life and realize there's nothin' left > Cause I've been blasting and laughing so long, > That even my mama thinks that my mind is gone Remove even more unspeakable evil being perpetuated in the name of VMS. (and lesser evils done in the name of others.) ok miod
* Toss a `unifdef -U OPENSSL_SYS_WINDOWS' bomb into crypto/bio.jsing2014-04-151-7/+1
| | | | ok miod@
* First pass at applying KNF to the OpenSSL code, which almost makes itjsing2014-04-151-215/+203
| | | | | readable. This pass is whitespace only and can readily be verified using tr and md5.
* Remove various horrible socket syscall wrappers, especially SHUTDOWN*deraadt2014-04-131-3/+3
| | | | | | which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
* Remove some stuff that isn't needed.beck2014-04-131-14/+14
| | | | ok miod@ deraadt@
* openssl-1.0.0e: resolve conflictsdjm2011-11-031-3/+9
|
* resolve conflicts, fix local changesdjm2010-10-011-12/+55
|
* resolve conflictsdjm2009-01-091-1/+1
|
* resolve conflictsdjm2008-09-061-12/+97
|
* Proper use of fseek/fseeko macros.tobias2007-09-101-1/+1
| | | | OK joris@, otto@
* resolve conflictsdjm2005-04-291-7/+9
|
* merge 0.9.7dmarkus2004-04-081-5/+5
|
* merge 0.9.7c; minor bugsfixes;markus2003-11-111-2/+19
| | | | | API addition: ERR_release_err_state_table [make includes before you build libssl/libcrypto]
* merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus2003-05-121-1/+1
|
* str{cat,cpy}/sprintf cleanup. markus@, deraadt@ okho2003-04-031-5/+5
|
* merge openssl-0.9.7-beta3, tested on vax by miod@markus2002-09-101-0/+6
|
* OpenSSL 0.9.7 stable 2002 05 08 mergebeck2002-05-151-5/+13
|
* openssl-engine-0.9.6 mergebeck2000-12-151-8/+8
|
* OpenSSL 0.9.5 mergebeck2000-03-191-1/+2
| | | | | | *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
* OpenSSL 0.9.4 mergebeck1999-09-291-45/+15
|
* Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD buildryker1998-10-051-0/+339
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.