aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bio/bss_file.c
Commit message (Collapse)AuthorAgeFilesLines
* BIO: respect opening in text modeRichard Levitte2016-04-111-1/+5
| | | | | | | When a file is opened with BIO_new_file(), make sure that the internal mode TEXT vs BINARY setting reflects what's given in the mode string. Reviewed-by: Andy Polyakov <appro@openssl.org>
* bio/bss_file.c: since VS2015 one can't tell apart own and "alien" FILEAndy Polyakov2016-04-071-2/+5
| | | | | | pointers, except for minimal std[in|out|err]. Reviewed-by: Richard Levitte <levitte@openssl.org>
* RT4660: BIO_METHODs should be const.David Benjamin2016-03-211-4/+4
| | | | | | | BIO_new, etc., don't need a non-const BIO_METHOD. This allows all the built-in method tables to live in .rodata. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove Netware and OS/2Rich Salz2016-03-171-19/+2
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* GH601: Various spelling fixes.FdaSilvaYY2016-02-051-2/+2
| | | | | Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Refactoring BIO: Small adjustmentsRichard Levitte2016-02-031-1/+0
| | | | | | | | Because of the way bio_lcl.h is organised, we must not include internal/cryptlib.h before it. As a matter of fact, bio_lcl.h includes internal/cryptlib.h on its own. Reviewed-by: Kurt Roeckx <kurt@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>
* Rename some BUF_xxx to OPENSSL_xxxRich Salz2015-12-161-5/+5
| | | | | | | | | 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>
* Fix no-stdio buildDavid Woodhouse2015-09-291-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Much related/similar work also done by Ivan Nestlerode <ivan.nestlerode@sonos.com> +Replace FILE BIO's with dummy ops that fail. +Include <stdio.h> for sscanf() even with no-stdio (since the declaration is there). We rely on sscanf() to parse the OPENSSL_ia32cap environment variable, since it can be larger than a 'long'. And we don't rely on the availability of strtoull(). +Remove OPENSSL_stderr(); not used. +Make OPENSSL_showfatal() do nothing (currently without stdio there's nothing we can do). +Remove file-based functionality from ssl/. The function prototypes were already gone, but not the functions themselves. +Remove unviable conf functionality via SYS_UEFI +Add fallback definition of BUFSIZ. +Remove functions taking FILE * from header files. +Add missing DECLARE_PEM_write_fp_const +Disable X509_LOOKUP_hash_dir(). X509_LOOKUP_file() was already compiled out, so remove its prototype. +Use OPENSSL_showfatal() in CRYPTO_destroy_dynlockid(). +Eliminate SRP_VBASE_init() and supporting functions. Users will need to build the verifier manually instead. +Eliminate compiler warning for unused do_pk8pkey_fp(). +Disable TEST_ENG_OPENSSL_PKEY. +Disable GOST engine as is uses [f]printf all over the place. +Eliminate compiler warning for unused send_fp_chars(). Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT3479: Add UTF8 support to BIO_read_filename()David Woodhouse2015-09-211-3/+10
| | | | | | | | | | | | | | | | If we use BIO_new_file(), on Windows it'll jump through hoops to work around their unusual charset/Unicode handling. it'll convert a UTF-8 filename to UCS-16LE and attempt to use _wfopen(). If you use BIO_read_filename(), it doesn't do this. Shouldn't it be consistent? It would certainly be nice if SSL_use_certificate_chain_file() worked. Also made BIO_C_SET_FILENAME work (rsalz) Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Andy Polyakov <appro@openssl.org>
* Identify and move common internal libcrypto header filesRichard Levitte2015-05-141-1/+1
| | | | | | | | | | | | | There are header files in crypto/ that are used by a number of crypto/ submodules. Move those to crypto/include/internal and adapt the affected source code and Makefiles. The header files that got moved are: crypto/cryptolib.h crypto/md32_common.h Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add OSSL_NELEM macro.Dr. Stephen Henson2015-05-031-1/+1
| | | | | | | Add OSSL_NELEM macro to e_os.h to determine the number of elements in an array. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Rerun util/openssl-format-source -v -c .master-post-auto-reformatMatt Caswell2015-01-221-2/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-390/+374
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* indent has problems with comments that are on the right hand side of a line.Matt Caswell2015-01-221-2/+7
| | | | | | | Sometimes it fails to format them very well, and sometimes it corrupts them! This commit moves some particularly problematic ones. Reviewed-by: Tim Hudson <tjh@openssl.org>
* More commentsMatt Caswell2015-01-221-1/+1
| | | | | | | | | | | | | | | | | Conflicts: crypto/dsa/dsa_vrf.c crypto/ec/ec2_smpl.c crypto/ec/ecp_smpl.c Conflicts: demos/bio/saccept.c ssl/d1_clnt.c Conflicts: bugs/dggccbug.c demos/tunala/cb.c Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT3548: Remove unsupported platformsRich Salz2015-01-121-14/+14
| | | | | | | This last one for this ticket. Removes WIN16. So long, MS_CALLBACK and MS_FAR. We won't miss you. Reviewed-by: Richard Levitte <levitte@openssl.org>
* bss_file.c: refine UTF8 logic.Andy Polyakov2010-12-111-3/+9
| | | | PR: 2382
* bss_file.c: refine UTF-8 logic on Windows.Andy Polyakov2010-04-281-18/+35
|
* bss_file.c: reserve for option to encode file name with UTF-8.Andy Polyakov2010-04-211-1/+21
|
* bss_file.c: fix MSC 6.0 warning.Andy Polyakov2010-03-221-1/+1
|
* Fix UPLINK typo.Andy Polyakov2010-03-151-2/+2
|
* Prevent ignored return value warningDr. Stephen Henson2009-10-041-2/+9
|
* This _WIN32-specific patch makes it possible to "wrap" OpenSSL in anotherAndy Polyakov2008-12-221-1/+1
| | | | | | | .DLL, in particular static build. The issue has been discussed in RT#1230 and later on openssl-dev, and mutually exclusive approaches were suggested. This completes compromise solution suggested in RT#1230. PR: 1230
* Netware support.Dr. Stephen Henson2008-01-031-2/+6
| | | | Submitted by: Guenter Knauf <eflash@gmx.net>
* add additional checks + cleanupNils Larsch2006-01-291-0/+3
| | | | Submitted by: David Hartman <david_hartman@symantec.com>
* Keep disclaiming 16-bit platform support. For now remove WIN16 referencesAndy Polyakov2005-12-181-1/+1
| | | | from .h files...
* Make cygwin work in directories mounted with 'text' attribute.Andy Polyakov2005-11-031-3/+2
|
* Fix typo.Andy Polyakov2005-09-291-1/+1
|
* Fix missing applink call.Andy Polyakov2005-09-291-1/+4
|
* Allow BIO_s_file to open and sequentially access files larger than 2GB onAndy Polyakov2005-06-061-0/+18
| | | | | affected platforms. PR: 973
* Engage Applink in mingw. Note that application-side module is notAndy Polyakov2005-05-181-1/+6
| | | | | | | compiled into *our* aplpications. That's because mingw is always consistent with itself. Having library-side code linked into .dll makes it possible to deploy the .dll with user-code compiled with another compiler [which is pretty much the whole point behind Applink].
* OPENSSL_Applink update.Andy Polyakov2005-05-171-12/+50
|
* Minor cygwin update.Andy Polyakov2004-12-271-1/+1
| | | | PR: 949
* Don't define fd for platforms that do not use it, as some may not declare ↵Richard Levitte2004-03-241-1/+4
| | | | fileno() properly
* Make sure fd is defined where it should.Richard Levitte2004-03-211-7/+7
| | | | PR: 849
* Use BUF_strlcpy() instead of strcpy().Richard Levitte2003-12-271-5/+5
| | | | | | | Use BUF_strlcat() instead of strcat(). Use BIO_snprintf() instead of sprintf(). In some cases, keep better track of buffer lengths. This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
* Netware-specific changes,Richard Levitte2003-11-281-1/+14
| | | | | | PR: 780 Submitted by: Verdon Walker <VWalker@novell.com> Reviewed by: Richard Levitte
* Uhmm, It seem to have forgotten one file when I committed the MSDOSRichard Levitte2003-09-281-3/+20
| | | | | change yesterday. PR: 669
* OS/2 does binary by default, apparently.Richard Levitte2002-12-291-1/+1
| | | | Reported by Brian Havard <brianh@kheldar.apana.org.au>.
* Handle read errors.Ben Laurie2002-06-111-0/+6
|
* New functionsBodo Möller2002-01-241-1/+1
| | | | | | | | | | | ERR_peek_last_error ERR_peek_last_error_line ERR_peek_last_error_line_data (supersedes ERR_peek_top_error). Rename OPENSSL_NO_OLD_DES_SUPPORT into OPENSSL_DISABLE_OLD_DES_SUPPORT because OPENSSL_NO_... indicates disabled algorithms (according to mkdef.pl).
* Make no config file not an error. Move /dev/crypto config to ctrl.Ben Laurie2002-01-221-1/+4
|
* Changes to have OpenSSL compile on OS/2.Richard Levitte2001-07-011-0/+5
| | | | Contributed by "Brian Havard" <brianh@kheldar.apana.org.au>
* Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte2001-02-201-2/+2
| | | | | | | missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
* Make all configuration macros available for application by makingRichard Levitte2001-02-191-2/+2
| | | | | | | | | | | | sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
* Get rid of more non-ANSI declarations.Ulf Möller2000-05-151-8/+8
|
* Move the registration of callback functions to special functionsRichard Levitte2000-02-201-0/+1
| | | | | | | | | | designed for that. This removes the potential error to mix data and function pointers. Please note that I'm a little unsure how incorrect calls to the old ctrl functions should be handled, in som cases. I currently return 0 and that's it, but it may be more correct to generate a genuine error in those cases.
* ispell (and minor modifications)Ulf Möller2000-02-031-1/+1
|
* Survive pedanticism.Ben Laurie1999-06-081-1/+1
|