summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_win32.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove parentheses of return.KaoruToda2017-10-181-25/+25
| | | | | | | | | Since return is inconsistent, I removed unnecessary parentheses and unified them. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4541)
* Since return is inconsistent, I removed unnecessary parentheses andKaoruToda2017-10-091-3/+3
| | | | | | | | | | | unified them. - return (0); -> return 0; - return (1); -> return 1; - return (-1); -> return -1; Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4500)
* Replace malloc+strcpy with strdupRich Salz2017-09-141-4/+2
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4371)
* e_os.h removal from other headers and source files.Pauli2017-08-291-1/+2
| | | | | | | | | | | | | Removed e_os.h from all bar three headers (apps/apps.h crypto/bio/bio_lcl.h and ssl/ssl_locl.h). Added e_os.h into the files that need it now. Directly reference internal/nelem.h when required. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4188)
* Remove some commented out code in libcryptoMatt Caswell2017-02-281-6/+0
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2774)
* Partial revert of 3d8b2ec42 to add back DSO_pathbyaddrMatt Caswell2016-11-031-0/+1
| | | | | | | | | Commit 3d8b2ec42 removed various unused functions. However now we need to use one of them! This commit resurrects DSO_pathbyaddr(). We're not going to resurrect the Windows version though because what we need to achieve can be done a different way on Windows. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Copyright consolidation 07/10Rich Salz2016-05-171-54/+5
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove several unused undocumented functions.Rich Salz2016-03-231-138/+0
| | | | | | | | | | Removed the following: DSO_bind_var, DSO_bind_var, DSO_get_default_method, DSO_get_loaded_filename, DSO_get_loaded_filename, DSO_get_method, DSO_new_method, DSO_pathbyaddr, DSO_set_default_method, DSO_set_method, DSO_set_name_converter, DSO_set_name_converter Reviewed-by: Richard Levitte <levitte@openssl.org>
* Have only one DSO_METHOD_opensslRich Salz2016-03-221-8/+3
| | | | | | | Instead of have every DSO_METHOD_xxx in all platforms, ensure that only one DSO_METHOD_openssl is available on all platforms. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Make DSO opaque.Rich Salz2016-03-221-4/+1
| | | | | | This was really easy. Reviewed-by: Tim Hudson <tjh@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>
* 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>
* Continue standardising malloc style for libcryptoMatt Caswell2015-11-091-3/+3
| | | | | | | Continuing from previous commit ensure our style is consistent for malloc return checks. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Fix pedantic warnings in mingw builds.Andy Polyakov2015-09-291-11/+20
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add and use OPENSSL_zallocRich Salz2015-09-031-2/+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>
* 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>
* memset, memcpy, sizeof consistency fixesRich Salz2015-05-061-1/+1
| | | | | | | | Just as with the OPENSSL_malloc calls, consistently use sizeof(*ptr) for memset and memcpy. Remove needless casts for those functions. For memset, replace alternative forms of zero with 0. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Use safer sizeof variant in mallocRich Salz2015-05-041-2/+2
| | | | | | | | | | | | | 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>
* free null cleanup finaleRich Salz2015-05-011-4/+2
| | | | | | Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
* remove malloc castsRich Salz2015-04-281-1/+1
| | | | | | | Following ANSI C rules, remove the casts from calls to OPENSSL_malloc and OPENSSL_realloc. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Dead code removal: #if 0 conf, dso, pqueue, threadsRich Salz2015-01-301-26/+0
| | | | | | | Mostly, but not completely, debugging print statements. Some old logic kept for internal documentation reasons, perhaps. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-737/+678
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* dso/dso_win32.c: fix compiler warning.Andy Polyakov2012-12-181-3/+6
|
* Updates from 1.0.0-stableDr. Stephen Henson2009-07-151-0/+3
|
* Fix "possible loss of data" Win64 compiler warnings.Andy Polyakov2008-12-291-9/+9
|
* Make DSO WIN32 compile again.Dr. Stephen Henson2008-06-041-8/+8
|
* Fix mingw warnings.Andy Polyakov2006-10-231-1/+1
|
* Fix from stable branch.Dr. Stephen Henson2006-01-151-2/+2
|
* Some error code cleanups (SSL lib. used SSL_R_... codes reserved for alerts)Bodo Möller2006-01-081-7/+7
|
* Typo in win32_globallookup.Andy Polyakov2006-01-021-1/+1
|
* "Relax" prototype and rename DSO_global_lookup_func to DSO_global_lookup.Andy Polyakov2006-01-021-2/+2
|
* Fix mapping "leak" in newly introduced win32_globallookup.Andy Polyakov2006-01-011-1/+6
|
* Add DSO_global_lookup_func implementation. See commentary in dso_lib.cAndy Polyakov2005-12-301-1/+64
| | | | for further details.
* Eliminate possible mapping leak.Andy Polyakov2005-12-181-0/+1
|
* Fix numerous bugs in the Win32 path splitterRichard Levitte2005-11-011-5/+29
|
* WCE update, mostly typos.Andy Polyakov2005-08-031-2/+2
|
* Implement complementary LoadLibraryA shim under WCE.Andy Polyakov2005-08-021-0/+24
|
* Eliminate gcc warning in dso_win32.c.Andy Polyakov2005-07-241-2/+2
|
* Eliminate dependency on UNICODE macro.Andy Polyakov2005-06-271-16/+19
|
* Eliminate gcc -pedantic warnings.Andy Polyakov2005-06-091-1/+6
|
* New function, DSO_pathbyaddr, to find pathname for loaded shared objectAndy Polyakov2005-06-051-3/+122
| | | | | by an address within it. Tested on Linux, Solaris, IRIX, Tru64, Darwin, HP-UX, Win32, few BSD flavors...
* Fix more error codes.Bodo Möller2005-05-111-6/+6
| | | | | (Also improve util/ck_errf.pl script, and occasionally fix source code formatting.)
* Cygwin to use DSO_FLFCN and mingw to use DSO_WIN32.Andy Polyakov2005-03-121-1/+1
|
* WinCE patchesRichard Levitte2002-11-151-1/+1
|
* Various Win32 fixes.Dr. Stephen Henson2002-10-061-7/+24
| | | | | | Resolve signed/unsigned conflicts Make dso_win32.c compile.
* There's an ongoing project to bring some kind of path selectionRichard Levitte2002-07-151-1/+302
| | | | | | | | | | | mechanism to the ENGINE framework. This means there there are going to be new functionality for the DSO part, and ultimately some way of merging two file specifications together. This commit places the merging code into the repository. It's currently not used anywhere, and hasn't been tested at all. It may be full of errors, including syntactical ones. Those will be fixed as promptly as possible.
* This change to the "dl", "dlfcn", and "win32" DSO_METHODs adds the filenameGeoff Thorpe2001-04-261-0/+3
| | | | | or symbol name to the error stack in the event a load or bind operation failed.
* 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.
* This changes the behaviour of the DSO mechanism for determining anGeoff Thorpe2000-10-261-27/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | appropriate filename translation on the host system. Apart from this point, users should also note that there's a slight change in the API functions too. The DSO now contains its own to-be-converted filename ("dso->filename"), and at the time the DSO loads the "dso->loaded_filename" value is set to the translated form. As such, this also provides an impicit way of determining if the DSO is currently loaded or not. Except, perhaps, VMS .... :-) The various DSO_METHODs have been updated for this mechanism except VMS which is deliberately broken for now, Richard is going to look at how to fit it in (the source comments in there explain "the issue"). Basically, the new callback scheme allows the filename conversion to (a) be turned off altogether through the use of the DSO_FLAG_NO_NAME_TRANSLATION flag, (b) be handled in the default way using the default DSO_METHOD's converter (c) overriden per-DSO by setting the override callback (d) a mix of (b) and (c) - eg. implement an override callback that; (i) checks if we're win32 "if(strstr(dso->meth->name, "win32"))..." and if so, convert "blah" into "blah32.dll" (the default is otherwise to make it "blah.dll"). (ii) default to the normal behaviour - eg. we're not on win32, so finish with (return dso->meth->dso_name_converter(dso,NULL)). (e) be retried a number of times by writing a new DSO_METHOD where the "dso_load()" handler will call the converter repeatedly. Then the custom converter could use state information in the DSO to suggest different conversions or paths each time it is invoked.
* None of the DSO_METHOD's were handling anything except generic messages.Geoff Thorpe2000-10-091-26/+2
| | | | These are now processed inside DSO_ctrl() itself.