summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2001-02-23Describe new callback for session id generation.Lutz Jänicke
2001-02-23SSL_get_version() was an easy one :-)Lutz Jänicke
2001-02-23That statement seems to be not true. In fact, I have said that I wouldUlf Möller
like to use libtool, but not automake. Let's investigate that further, or leave the question open for now.
2001-02-23autoconf would be useful...Ulf Möller
2001-02-23Make OCSP cert id code tolerate a missing issuer certificateDr. Stephen Henson
or serial number.
2001-02-23Oops, forgot CHANGES entry for ASN1_ITEM_FUNCTIONS.Dr. Stephen Henson
2001-02-23Get rid of ASN1_ITEM_FUNCTIONS dummy functionDr. Stephen Henson
prototype hack. This unfortunately means that every ASN1_*_END construct cannot have a trailing ;
2001-02-23make depend.Richard Levitte
2001-02-23Initial support for ASN1_ITEM_FUNCTION option toDr. Stephen Henson
change the way ASN1 modules are exported. Still needs a bit of work for example the hack which a dummy function prototype to avoid compilers warning about multiple ;s.
2001-02-23I missed one.Geoff Thorpe
2001-02-23Fix an oversight - when checking a potential session ID for conflicts withGeoff Thorpe
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 Levitte
correct declaration of strdup()
2001-02-22e_os.h defines Getenv()Richard Levitte
2001-02-22CONF_METHOD is one of the few places where you find MS_FAR. I can'tRichard Levitte
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 Levitte
thathaven't yet been changed
2001-02-22e_os.h problems have been solved in the main branch.Bodo Möller
2001-02-22undo previous change: "e_os.h" is now the official name for the fileBodo Möller
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öller
2001-02-22e_os.h does not belong with the exported headers. Do not put it thereRichard Levitte
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 Levitte
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 Levitte
defined there.
2001-02-22Exported header files should not include e_os.h.Richard Levitte
2001-02-22Since opensslconf.h might be included over and over, undefineRichard Levitte
OPENSSL_UNISTD before redefining it, to avoid compiler warnings.
2001-02-22One indirection level too little compared to theRichard Levitte
pre-CRYPTO_MEM_LEAK_CB time.
2001-02-22Windows does not know of strigs.h or strcasecmp, so when in Windows,Richard Levitte
make strcasecmp a macro to _stricmp.
2001-02-22Always include opensslconf.h, even if it's already been done before.Richard Levitte
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 Levitte
2001-02-22Since SSL_add_dir_cert_subjects_to_stack isn't impemented on VMS,Richard Levitte
there's no point creating an alias for it.
2001-02-22Include e_os2.h instead of opensslconf.h.Richard Levitte
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 Henson
2001-02-21If a callback is generating a new session ID for SSLv2, then upon exiting,Geoff Thorpe
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 Thorpe
2001-02-21This adds command-line support to s_server for controlling the generationGeoff Thorpe
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 Thorpe
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 Thorpe
2001-02-21'make update'Richard Levitte
2001-02-21Modify mkdef.pl to recognise and parse prprocessor conditionals of theRichard Levitte
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 Levitte
2001-02-20strdup() is a X/Open extension.Richard Levitte
2001-02-20With later version of DEC C on VMS, some functions (strcmp(), forRichard Levitte
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 Levitte
strings.h according to X/Open.
2001-02-20I forgot there was a reason why the inclusions and definition of u_intRichard Levitte
was made in a certain sequence. This change restores the earlier "chain of command".
2001-02-20OpenVMS catches up.Richard Levitte
2001-02-20The callbacks in the NAME_FUNCS structure are not used directly as LHASHGeoff Thorpe
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öller
2001-02-20Get e_os2.h to get all the system definitions correctly.Richard Levitte
2001-02-20Get the right cast for lhash callback functions.Richard Levitte
2001-02-20Include string.h so mem*() functions get properly declared.Richard Levitte
2001-02-20Fix typo.Dr. Stephen Henson
2001-02-20A new bunch of too long symbols to hack.Richard Levitte
OCSP_CRLID_new and OCSP_crlID_new clash on case-insensitive systems.