summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_vms.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove parentheses of return.KaoruToda2017-10-181-6/+6
| | | | | | | | | 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)
* Partial revert of 3d8b2ec42 to add back DSO_pathbyaddrMatt Caswell2016-11-021-1/+3
| | | | | | | | | 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>
* VMS: be less picky when loading DSOsRichard Levitte2016-09-111-9/+7
| | | | | | | | | | | The DSO API was picky about casing of symbol names on VMS. There's really no reason to be that picky, it's mostly just annoying. Therefore, we take away the possibility to flag for a choice, and will instead first try to find a symbol with exact case, and failing that, we try to find it in upper case. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Copyright consolidation 07/10Rich Salz2016-05-171-54/+5
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* fix tab-space mixed indentationFdaSilvaYY2016-05-091-1/+1
| | | | | | | No code change Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* VMS: update the properties of symbol searchRichard Levitte2016-03-231-4/+4
| | | | | | | | In this OpenSSL version, we deliver engines with lower case symbol names. The DSO symbol finder must be updated to allow for mixed case symbols or it won't fine them. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove several unused undocumented functions.Rich Salz2016-03-231-9/+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-5/+2
| | | | | | 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>
* Fix some missing or faulty header file inclusionsRichard Levitte2015-12-301-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@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-2/+2
| | | | | | | Continuing from previous commit ensure our style is consistent for malloc return checks. Reviewed-by: Kurt Roeckx <kurt@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>
* Use safer sizeof variant in mallocRich Salz2015-05-041-1/+1
| | | | | | | | | | | | | 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>
* Code style: space after 'if'Viktor Dukhovni2015-04-161-1/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Unchecked malloc fixesMatt Caswell2015-03-051-1/+2
| | | | | | | Miscellaneous unchecked malloc fixes. Also fixed some mem leaks on error paths as I spotted them along the way. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Dead code removal: #if 0 conf, dso, pqueue, threadsRich Salz2015-01-301-12/+0
| | | | | | | Mostly, but not completely, debugging print statements. Some old logic kept for internal documentation reasons, perhaps. Reviewed-by: Richard Levitte <levitte@openssl.org>
* dso_vms needs to add the .EXE extension if there is none alreadyRichard Levitte2015-01-301-1/+15
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Re-align some comments after running the reformat script.Matt Caswell2015-01-221-17/+17
| | | | | | | This should be a one off operation (subsequent invokation of the script should not move them) Reviewed-by: Tim Hudson <tjh@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-416/+422
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* mark all block comments that need format preserving so thatTim Hudson2014-12-301-1/+2
| | | | | | | indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* dso: eliminate VMS code on non-VMS systemsGeoff Thorpe2014-05-011-8/+8
| | | | | | | | | Even though the meat of dso_vms.c is compiled out on non-VMS builds, the (pre-)compiler still traverses some of the macro handling. This trips up at least one non-VMS build configuration, so this commit makes the skip-VMS case more robust. Signed-off-by: Geoff Thorpe <geoff@openssl.org>
* PR: 2589Dr. Stephen Henson2011-09-011-1/+1
| | | | | | | Submitted by: Thomas Jarosch <thomas.jarosch@intra2net.com> Reviewed by: steve Initialise p pointer.
* Make some Unix builds work again.Dr. Stephen Henson2011-03-251-1/+1
|
* After some adjustments, apply the changes OpenSSL 1.0.0d on OpenVMSRichard Levitte2011-03-191-78/+99
| | | | submitted by Steven M. Schweda <sms@antinode.info>
* Stack changes made dso_vms.c not compile properly.Richard Levitte2008-12-161-6/+6
|
* Fix various incorrect error function codes.Bodo Möller2005-04-261-5/+5
| | | | ("perl util/ck_errf.pl */*.c */*/*.c" still reports many more.)
* The first compile of the new merger method for VMS *almost* gotRichard Levitte2002-07-191-20/+19
| | | | through. That's not enough, is it? :-)
* There's an ongoing project to bring some kind of path selectionRichard Levitte2002-07-151-1/+127
| | | | | | | | | | | 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.
* On VMS, the norm is still that symbols are uppercased, so for now it's betterRichard Levitte2001-11-161-0/+4
| | | | to trust that norm. I might implement a control for this later on
* libfisdef.h and LIB do not exist on older VMS versionsRichard Levitte2001-04-031-2/+2
|
* Include OpenSSL header files earlier so macros like OPENSSL_SYS_VMSRichard Levitte2001-02-201-4/+7
| | | | | | get a chance to be defined. Make a batter file name translator (uhm, no, that's not the finished variant :-)).
* Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte2001-02-201-3/+3
| | | | | | | 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 the DSO code for VMS work again. First attempt.Richard Levitte2000-12-311-30/+24
|
* This changes the behaviour of the DSO mechanism for determining anGeoff Thorpe2000-10-261-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-081-26/+2
| | | | These are now processed inside DSO_ctrl() itself.
* Unless we cast, thorough compilers will complainRichard Levitte2000-09-181-1/+1
|
* Make sure Compaq C doesn'r complain about dollars, and go around theRichard Levitte2000-09-171-10/+17
| | | | incompatibility between function and data pointers.
* Make sure dso_vms.c compiles on other operating systems as well.Richard Levitte2000-09-151-0/+2
|
* A DSO method for VMS was missing, and I had the code lying around...Richard Levitte2000-09-151-0/+362