aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/conf
Commit message (Collapse)AuthorAgeFilesLines
* make updateRichard Levitte2001-07-311-1/+4
|
* Really add the EVP and all of the DES changes.Ben Laurie2001-07-301-4/+1
|
* Modify apps to use NCONF code instead of old CONF code.Dr. Stephen Henson2001-06-282-36/+20
| | | | | | | | | | Add new extension functions which work with NCONF. Tidy up extension config routines and remove redundant code. Fix NCONF_get_number(). Todo: more testing of apps to see they still work...
* Instead of telling both 'make' and the user that ranlibBodo Möller2001-03-091-2/+1
| | | | | | errors can be tolerated, hide the error from 'make'. This gives shorter output both if ranlib fails and if it works.
* make depend.Richard Levitte2001-02-231-14/+13
|
* e_os.h defines Getenv()Richard Levitte2001-02-221-0/+1
|
* CONF_METHOD is one of the few places where you find MS_FAR. I can'tRichard Levitte2001-02-221-9/+9
| | | | | | | | really see why we need to define these function pointers with MS_FAR if it's not done cosistently everywhere. If we decide to support MS_FAR modifiers, it's better to have the named something more unique for OpenSSL and to define them in e_os2.h.
* e_os.h does not belong with the exported headers. Do not put it thereRichard Levitte2001-02-221-12/+12
| | | | | | | | and make all files the depend on it include it without prefixing it with openssl/. This means that all Makefiles will have $(TOP) as one of the include directories.
* Exported header files should not include e_os.h.Richard Levitte2001-02-221-1/+1
|
* Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte2001-02-202-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-194-10/+14
| | | | | | | | | | | | 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.
* Avoid coredumps for CONF_get_...(NULL, ...)Bodo Möller2001-02-061-18/+41
|
* Move all the existing function pointer casts associated with LHASH's twoGeoff Thorpe2001-01-093-6/+11
| | | | | | | "doall" functions to using type-safe wrappers. As and where required, this can be replaced by redeclaring the underlying callbacks to use the underlying "void"-based prototypes (eg. if performance suffers from an extra level of function invocation).
* Constification of the data of a hash table. This means the callbackRichard Levitte2000-12-131-4/+4
| | | | | | | functions need to be constified, and therefore meant a number of easy changes a little everywhere. Now, if someone could explain to me why OBJ_dup() cheats...
* Next step in tidying up the LHASH code.Geoff Thorpe2000-12-081-9/+14
| | | | | | | | | | | | | | | | DECLARE/IMPLEMENT macros now exist to create type (and prototype) safe wrapper functions that avoid the use of function pointer casting yet retain type-safety for type-specific callbacks. However, most of the usage within OpenSSL itself doesn't really require the extra function because the hash and compare callbacks are internal functions declared only for use by the hash table. So this change catches all those cases and reimplements the functions using the base-level LHASH prototypes and does per-variable casting inside those functions to convert to the appropriate item type. The exception so far is in ssl_lib.c where the hash and compare callbacks are not static - they're exposed in ssl.h so their prototypes should not be changed. In this last case, the IMPLEMENT_LHASH_*** macros have been left intact.
* Make the remaining LHASH macro changes. This should leave no remainingGeoff Thorpe2000-12-041-2/+5
| | | | | cases of function pointer casting in lh_new() calls - and leave only the lh_doall and lh_doall_arg cases to be finished.
* First step in tidying up the LHASH code. The callback prototypes (andGeoff Thorpe2000-12-013-5/+8
| | | | | | | | | | | | | | | | casts) used in the lhash code are about as horrible and evil as they can be. For starters, the callback prototypes contain empty parameter lists. Yuck. This first change defines clearer prototypes - including "typedef"'d function pointer types to use as "hash" and "compare" callbacks, as well as the callbacks passed to the lh_doall and lh_doall_arg iteration functions. Now at least more explicit (and clear) casting is required in all of the dependant code - and that should be included in this commit. The next step will be to hunt down and obliterate some of the function pointer casting being used when it's not necessary - a particularly evil variant exists in the implementation of lh_doall.
* Keep binary backward compatibility by putting new method functionRichard Levitte2000-10-193-5/+7
| | | | pointers at the end of the structure.
* Make it possible for methods to load from something other than a BIO,Richard Levitte2000-10-193-19/+36
| | | | | | by providing a function pointer that is given a name instead of a BIO. For example, this could be used to load configuration data from an LDAP server.
* NCONF_get_number() has no error checking at all. As a replacement,Richard Levitte2000-10-194-14/+61
| | | | | | NCONF_get_number_e() is defined (_e for "error checking") and is promoted strongly. The old NCONF_get_number is kept around for binary backward compatibility.
* Always return a value.Ben Laurie2000-10-161-1/+1
| | | | | | Submitted by: Reviewed by: PR:
* Make the new conf implementatoin bug-compatible with the old one.Richard Levitte2000-10-133-3/+26
| | | | | | | Actually, it's a feature that it goes looking at environment variables. It's just a pity that it's at the cost of the error checking... I'll see if I can come up with a better interface for this.
* 'ranlib' doesn't always run on some systems. That's actuallyRichard Levitte2000-09-251-1/+2
| | | | | acceptable, since all that happens if it fails is a library with an index, which makes linking slower, but still working correctly.
* More VMS synchronisationRichard Levitte2000-09-091-0/+1
|
* 'make update'Richard Levitte2000-09-071-4/+5
|
* Avoid abort() throughout the library, except when preprocessorBodo Möller2000-09-041-7/+7
| | | | symbols for debugging are defined.
* Safe stack reorganisation in terms of function casts.Dr. Stephen Henson2000-06-161-31/+0
| | | | | | | | | | | | After some messing around this seems to work but needs a few more tests. Working out the syntax for sk_set_cmp_func() (cast it to a function that itself returns a function pointer) was painful :-( Needs some testing to see what other compilers think of this syntax. Also needs similar stuff for ASN1_SET_OF etc etc.
* Compaq C warns that "the expression 'p=scan_esc(p)' modifies the variableAndy Polyakov2000-06-061-3/+4
| | | | | | 'p' more than once without an intervening sequence point. This behavior is undefined." What it essentially complains about is 'p=p+=1'. Now it's changed to 'p=p+1'...
* There have been a number of complaints from a number of sources that namesRichard Levitte2000-06-012-28/+28
| | | | | | | | | like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
* "make update" + stripping the type-specific stack functions out ofGeoff Thorpe2000-06-011-0/+31
| | | | libeay.num and ssleay.num.
* This declaration seems to have been added into the header file accidently.Geoff Thorpe2000-05-291-1/+0
| | | | | | There's no trace of it being implemented and it doesn't seem to have been intended given that it is prototyped with a BIO yet there was a BIO- specific version added in at the same time.
* In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>,Richard Levitte2000-05-022-7/+7
| | | | | | "Jan Mikkelsen" <janm@transactionsite.com> correctly states that the OpenSSL header files have #include's and extern "C"'s in an incorrect order. Thusly fixed.
* Use CONFerr, not RSAerr, in the conf library...Richard Levitte2000-04-261-1/+1
|
* Clarifications and removal of double declaration...Richard Levitte2000-04-262-7/+6
|
* "make update"Richard Levitte2000-04-091-4/+3
|
* I've always wanted to make the CONF library more adaptable. Here'sRichard Levitte2000-04-0910-325/+1265
| | | | | | | | | | | | | | | | | | | | | the result. I have retained the old behavior of the CONF_* functions, and have added a more "object oriented" interface through NCONF_* functions (New CONF, you see :-)), working the same way as, for example, the BIO interface. Really, the CONF_* are rewritten so they use the NCONF_* functions internally. In addition to that, I've split the old conf.c code into two files, conf_def.c and conf_api.c. conf_def.c contains the default config object that reads a configuration file the standard OpenSSL way, as well as configuration file with Win32 registry file syntax (I'm not sure I got that one right). conf_api.c provides an API to build other configuration file readers around (can you see a configuraion file in XML? I can :-)). Finally, I've changed the name conf_lcl.h to conf_def.h, since it's made specifically for that "class" and none others.
* Preserve reason strings in automatically build tables.Bodo Möller2000-03-051-1/+2
|
* Source code cleanups: Use void * rather than char * in lhash,Ulf Möller2000-01-301-8/+8
| | | | eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
* It's possible that considering the configuration file as a binary fileRichard Levitte1999-11-121-0/+4
| | | | | works on Unix and MS-DOS/Windows. It does not under VMS, so open it as text.
* Fix a couple of outstanding issues: update STATUS file, fix NO_FP_API problems.Dr. Stephen Henson1999-11-112-12/+8
| | | | | Update docs, change 'ca' to use the new callback parameter. Now moved key_callback into app.c because some other utilities will use it soon.
* Don't shadow.Ben Laurie1999-06-211-3/+3
|
* "make update"Bodo Möller1999-06-211-2/+3
|
* Convert the CONF library to use a typesafe stack: a STACK_OF(CONF_VALUE). ItDr. Stephen Henson1999-06-202-11/+16
| | | | | | seemed like a good idea at the time... several hours later it was rather obvious that these are used all over the place making the changes rather extensive.
* New functions CONF_load_bio() and CONF_load_fp() to load a configurationDr. Stephen Henson1999-06-204-36/+75
| | | | file from a bio or fp. Added some more constification to the BN library.
* Support the EBCDIC character set and BS2000/OSD-POSIX (work in progress).Ulf Möller1999-06-041-0/+14
| | | | Submitted by: Martin Kraemer <Martin.Kraemer@MchP.Siemens.De>
* Fix for memory leak.Dr. Stephen Henson1999-05-261-1/+1
|
* It was a very bad idea to use #include "../e_os.h" -- when this occursBodo Möller1999-05-211-1/+2
| | | | | | | | | | in cryptlib.h (which is often included as "../cryptlib.h"), then the question remains relative to which directory this is to be interpreted. gcc went one further directory up, as intended; but makedepend thinks differently, and so probably do some C compilers. So the ../ must go away; thus e_os.h goes back into include/openssl (but I now use #include "openssl/e_os.h" instead of <openssl/e_os.h> to make the point) -- and we have another huge bunch of dependency changes. Argh.
* Add a kludge :-(Bodo Möller1999-05-201-4/+3
| | | | | | | There were problems with putting e_os.h just into the top directory, because the test programs are compiled within test/ in the "standard" case in in their original directories in the makefile.one case; and in the latter symlinks may not be available.
* Don't install e_os.h in include/openssl, use it only as a localBodo Möller1999-05-201-4/+4
| | | | include file.
* Update dependencies.Bodo Möller1999-05-151-4/+4
|