summaryrefslogtreecommitdiffstats
path: root/perl (unfollow)
Commit message (Collapse)AuthorFilesLines
2001-02-23I missed one.Geoff Thorpe1-1/+1
2001-02-23Fix an oversight - when checking a potential session ID for conflicts withGeoff Thorpe3-8/+8
an SSL_CTX's session cache, it is necessary to compare the ssl_version at the same time (a conflict is defined, courtesy of SSL_SESSION_cmp(), as a matching id/id_length pair and a matching ssl_version). However, the SSL_SESSION that will result from the current negotiation does not necessarily have the same ssl version as the "SSL_METHOD" in use by the SSL_CTX - part of the work in a handshake is to agree on an ssl version! This is fixed by having the check function accept an SSL pointer rather than the SSL_CTX it belongs to. [Thanks to Lutz for illuminating the full extent of my stupidity]
2001-02-22Define the right macro for Linux and other GNU-based systems to get a ↵Richard Levitte1-0/+5
correct declaration of strdup()
2001-02-22e_os.h defines Getenv()Richard Levitte1-0/+1
2001-02-22CONF_METHOD is one of the few places where you find MS_FAR. I can'tRichard Levitte1-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.
2001-02-22Define the OPENSSL_NO_* macros as NO_* macros for the sake of applications ↵Richard Levitte1-0/+10
thathaven't yet been changed
2001-02-22e_os.h problems have been solved in the main branch.Bodo Möller1-6/+3
2001-02-22undo previous change: "e_os.h" is now the official name for the fileBodo Möller1-1/+1
to include (but the OpenSSL_0_9_6-stable branche still has inconsistencies)
2001-02-22include e_os.h as "openssl/e_os.h" (as elsewhere)Bodo Möller1-1/+1
2001-02-22e_os.h does not belong with the exported headers. Do not put it thereRichard Levitte54-3704/+3625
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.
2001-02-22Since RAND_file_name() uses strlen, make sure the number that'sRichard Levitte2-13/+11
compared to it has the type size_t. Included the needed headers to make that happen.
2001-02-22Use e_os2.h rather than opensslconf.h, since some needed macros areRichard Levitte5-8/+9
defined there.
2001-02-22Exported header files should not include e_os.h.Richard Levitte2-2/+1
2001-02-22Since opensslconf.h might be included over and over, undefineRichard Levitte1-0/+1
OPENSSL_UNISTD before redefining it, to avoid compiler warnings.
2001-02-22One indirection level too little compared to theRichard Levitte2-4/+4
pre-CRYPTO_MEM_LEAK_CB time.
2001-02-22Windows does not know of strigs.h or strcasecmp, so when in Windows,Richard Levitte2-2/+12
make strcasecmp a macro to _stricmp.
2001-02-22Always include opensslconf.h, even if it's already been done before.Richard Levitte1-2/+5
The reason is that some parts are only included when certain other include files have been included. Also, it seems that the rest of the OpenSSL code assumes that all kinds of M$ Windows are MSDOS as well...
2001-02-22When inside a #if 0..#endif, do not define anything.Richard Levitte1-107/+108
2001-02-22Since SSL_add_dir_cert_subjects_to_stack isn't impemented on VMS,Richard Levitte1-0/+2
there's no point creating an alias for it.
2001-02-22Include e_os2.h instead of opensslconf.h.Richard Levitte1-7/+8
SSL_add_dir_cert_subjects_to_stack is not implemented on WIN32 and VMS, so declare it the same way.
2001-02-22Rebuild ASN1 error codes to remove unused function and reason codes.Dr. Stephen Henson2-200/+46
2001-02-21If a callback is generating a new session ID for SSLv2, then upon exiting,Geoff Thorpe1-0/+11
the ID will be padded out to 16 bytes if the callback attempted to generate a shorter one. The problem is that the uniqueness checking function used in callbacks may mistakenly think a 9-byte ID is unique when in fact its padded 16-byte version is not. This makes the checking function detect SSLv2 cases, and ensures the padded form is checked rather than the shorter one passed by the callback.
2001-02-21Note changes re: session ID generation callbacks, etc.Geoff Thorpe1-0/+9
2001-02-21This adds command-line support to s_server for controlling the generationGeoff Thorpe1-1/+48
of session IDs. Namely, passing "-id_prefix <text>" will set a generate_session_id() callback that generates session IDs as random data with <text> block-copied over the top of the start of the ID. This can be viewed by watching the session ID s_client's output when it connects. This is mostly useful for testing any SSL/TLS code (eg. proxies) that wish to deal with multiple servers, when each of which might be generating a unique range of session IDs (eg. with a certain prefix).
2001-02-21This change allows a callback to be used to override the generation ofGeoff Thorpe5-18/+150
SSL/TLS session IDs in a server. According to RFC2246, the session ID is an arbitrary value chosen by the server. It can be useful to have some control over this "arbitrary value" so as to choose it in ways that can aid in things like external session caching and balancing (eg. clustering). The default session ID generation is to fill the ID with random data. The callback used by default is built in to ssl_sess.c, but registering a callback in an SSL_CTX or in a particular SSL overrides this. BTW: SSL callbacks will override SSL_CTX callbacks, and a new SSL structure inherits any callback set in its 'parent' SSL_CTX. The header comments describe how this mechanism ticks, and source code comments describe (hopefully) why it ticks the way it does. Man pages are on the way ... [NB: Lutz was also hacking away and helping me to figure out how best to do this.]
2001-02-21'make update'Geoff Thorpe4-57/+43
2001-02-21'make update'Richard Levitte2-9/+15
2001-02-21Modify mkdef.pl to recognise and parse prprocessor conditionals of theRichard Levitte2-58/+116
form '#if defined(...) || defined(...) || ...' and '#if !defined(...) && !defined(...) && ...'. This also avoids the growing number of special cases it was previously handling (some of them wrongly).
2001-02-21I had forgotten to change mkerr.pl to use the new macro system.Richard Levitte1-3/+3
2001-02-20strdup() is a X/Open extension.Richard Levitte1-1/+4
2001-02-20With later version of DEC C on VMS, some functions (strcmp(), forRichard Levitte1-1/+13
example) are declared with some extra linkage information. This generates a warning when using the function name as a value to a regular function pointer with the "correct" definition of the function. Therefore, use a macro to cast the appropriate function on VMS.
2001-02-20Some functions, like strdup() and strcasecmp(), are defined inRichard Levitte3-0/+3
strings.h according to X/Open.
2001-02-20I forgot there was a reason why the inclusions and definition of u_intRichard Levitte1-7/+8
was made in a certain sequence. This change restores the earlier "chain of command".
2001-02-20OpenVMS catches up.Richard Levitte3-52/+4
2001-02-20The callbacks in the NAME_FUNCS structure are not used directly as LHASHGeoff Thorpe1-10/+10
callbacks, and their prototypes were consistent as they were. These casts need reversing. Also, I personally find line breaks during parameter lists (ie a line ending in a comma) easier to read at a glance than line breaks at the end of a function call and before a dereference on the return value (ie a line ending in a closed-bracket followed by a line starting with "->").
2001-02-20make it a loop as in dsaUlf Möller1-1/+3
2001-02-20Get e_os2.h to get all the system definitions correctly.Richard Levitte3-2/+3
2001-02-20Get the right cast for lhash callback functions.Richard Levitte1-2/+2
2001-02-20Include string.h so mem*() functions get properly declared.Richard Levitte1-0/+1
2001-02-20Fix typo.Dr. Stephen Henson1-1/+1
2001-02-20A new bunch of too long symbols to hack.Richard Levitte1-0/+14
OCSP_CRLID_new and OCSP_crlID_new clash on case-insensitive systems.
2001-02-20DEC C on VMS is pedantic by definition.Richard Levitte1-1/+2
2001-02-20Include OpenSSL header files earlier so macros like OPENSSL_SYS_VMSRichard Levitte1-4/+7
get a chance to be defined. Make a batter file name translator (uhm, no, that's not the finished variant :-)).
2001-02-20Include OpenSSL header files earlier so macros like OPENSSL_SYS_VMSRichard Levitte2-3/+3
get a chance to be defined.
2001-02-20Include opensslconf.h or the like early to make sure system macros getRichard Levitte3-8/+10
correctly defined.
2001-02-20Let VMS catch up.Richard Levitte4-59/+62
2001-02-20DEC C on VMS is pedantic by definition.Richard Levitte1-1/+1
2001-02-20Use sk_*_new_null() instead of sk_*_new(NULL). That avoids gettingRichard Levitte1-2/+2
lots of silly warnings from the compiler.
2001-02-20honour '-no_tmp_rsa'Bodo Möller1-1/+2
2001-02-20Include string.h so mem* functions get properly declared.Richard Levitte1-0/+1