summaryrefslogtreecommitdiffstats
path: root/ssl/s3_pkt.c
AgeCommit message (Collapse)Author
2002-07-10Reorder inclusion of header files:Lutz Jänicke
des_old.h redefines crypt: #define crypt(b,s)\ DES_crypt((b),(s)) This scheme leads to failure, if header files with the OS's true definition of crypt() are processed _after_ des_old.h was processed. This is e.g. the case on HP-UX with unistd.h. As evp.h now again includes des.h (which includes des_old.h), this problem only came up after this modification. Solution: move header files (indirectly) including e_os.h before the header files (indirectly) including evp.h. Submitted by: Reviewed by: PR:
2002-05-06fix warningBodo Möller
2002-05-05fix castsBodo Möller
2002-04-29Synchronise with 0.9.7-stable.Richard Levitte
2002-04-20Signedness mismatch.Richard Levitte
Notified by Bernd Matthes <bernd.matthes@gemplus.com>
2002-04-13Implement known-IV countermeasure.Bodo Möller
Fix length checks in ssl3_get_client_hello(). Use s->s3->in_read_app_data differently to fix ssl3_read_internal().
2002-01-12Prototype info function.Ben Laurie
2001-12-28ssl3_read_bytes bug fixUlf Möller
Submitted by: D P Chang <dpc@qualys.com> Reviewed by: Bodo
2001-10-20New functions SSL[_CTX]_set_msg_callback().Bodo Möller
New macros SSL[_CTX]_set_msg_callback_arg(). Message callback imlementation for SSL 3.0/TLS 1.0 (no SSL 2.0 yet). New '-msg' option for 'openssl s_client' and 'openssl s_server' that enable a message callback that displays all protocol messages. In ssl3_get_client_hello (ssl/s3_srvr.c), generate a fatal alert if client_version is smaller than the protocol version in use. Also change ssl23_get_client_hello (ssl/s23_srvr.c) to select TLS 1.0 if the client demanded SSL 3.0 but only TLS 1.0 is enabled; then the client will at least see that alert. Fix SSL[_CTX]_ctrl prototype (void * instead of char * for generic pointer). Add/update some OpenSSL copyright notices.
2001-10-16Add per-SSL 'msg_callback' with 'msg_callback_arg'.Bodo Möller
Both have per-SSL_CTX defaults. These new values can be set by calling SSL[_CTX]_[callback_]ctrl with codes SSL_CTRL_SET_MSG_CALLBACK and SSL_CTRL_SET_MSG_CALLBACK_ARG. So far, the callback is never actually called. Also rearrange some SSL_CTX struct members (some exist just in SSL_CTXs, others are defaults for SSLs and are either copied during SSL_new, or used if the value in the SSL is not set; these three classes of members were not in a logical order), and add some missing assignments to SSL_dup.
2001-09-20Fix ssl/s3_enc.c, ssl/t1_enc.c and ssl/s3_pkt.c so that we don'tBodo Möller
reveal whether illegal block cipher padding was found or a MAC verification error occured. In ssl/s2_pkt.c, verify that the purported number of padding bytes is in the legal range.
2001-03-07Fix ERR_R_... problems.Bodo Möller
2001-02-20Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte
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.
2000-12-25Fix SSL_peek and SSL_pending.Bodo Möller
2000-12-14First step towards SSL_peek fix.Bodo Möller
2000-09-12New SSL API mode 'SSL_MODE_AUTO_RETRY', which disables the defaultBodo Möller
behaviour that SSL_read may result in SSL_ERROR_WANT_READ.
2000-05-21Avoid sprintfBodo Möller
2000-02-26Fix shadow warning.Dr. Stephen Henson
2000-02-25Use unsigned loop index to make compilers happyBodo Möller
2000-02-25The previous revision should have generated _more_ warnings, not less ...Bodo Möller
The return value of handshake_func is signed, not unsigned.
2000-02-25More VC++ pickiness. (destest.c doesn't have a "return" and the usualGeoff Thorpe
signed/unsigned stuff in s3_pkt.c) Submitted by: Reviewed by: PR:
2000-02-25Fix off-by-one error :-)Bodo Möller
2000-02-25Fix warnings by using unsigned int where appropriate.Bodo Möller
2000-02-25signed/unsigned mismatch (VC++)Ulf Möller
Submitted by: Peter 'Luna' Runestig" <peter+openssl-users@runestig.com>
2000-02-22Change EVP_MD_CTX_type so it is more logical and add EVP_MD_CTX_md forDr. Stephen Henson
the old functionality. Various warning fixes. Initial EVP symmetric cipher docs.
2000-02-21Workarounds to make broken programs happy (such as s_client and s_server).Bodo Möller
2000-02-21Fix some bugs and document othersBodo Möller
2000-02-21Move ssl3_do_write from s3_pkt.c to s3_both.c.Bodo Möller
2000-02-21Move MAC computations for Finished from ssl3_read_bytes intoBodo Möller
ssl3_get_message, which is more logical (and avoids a bug, in addition to the one that I introduced yesterday :-) and makes Microsoft "fast SGC" less special. MS SGC should still work now without an extra state of its own (it goes directly to SSL3_ST_SR_CLNT_HELLO_C, which is the usual state for reading the body of a Client Hello message), however this should be tested to make sure, and I don't have a MS SGC client.
2000-02-20Tolerate fragmentation and interleaving in the SSL 3/TLS record layer.Bodo Möller
2000-02-03ispell (and minor modifications)Ulf Möller
2000-01-26Some comments added, and slight code clean-ups.Bodo Möller
2000-01-17It doesn't make sense to try see if these variables are negative, since ↵Richard Levitte
they're unsigned.
2000-01-16In ssl3_read_n, set rwstate to SSL_NOTHING when the requestedBodo Möller
number of bytes could be read.
2000-01-11add check for internal errorBodo Möller
2000-01-11The buffer in ss3_read_n cannot actually occur because it is neverBodo Möller
called with max > n when extend is set.
2000-01-11Clean up some of the SSL server code.Bodo Möller
2000-01-06Use less complicated arrangement for data strutures related to FinishedBodo Möller
messages.
2000-01-06Use separate arrays for certificate verify and for finished hashes.Bodo Möller
2000-01-05Slight code cleanup for handling finished labels.Bodo Möller
1999-07-02typoBodo Möller
1999-07-02typoBodo Möller
1999-07-02New functions SSL[_CTX]_{set,get}_mode; the initial set of mode flags isBodo Möller
SSL_MODE_ENABLE_PARTIAL_WRITE, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER.
1999-06-10Avoid warnings.Bodo Möller
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller
Submitted by: Reviewed by: PR:
1999-04-23Work with -pedantic!Ben Laurie
1999-04-19Change functions to ANSI C.Ulf Möller
1999-04-17Massive constification.Ben Laurie
1999-02-16Updates to the new SSL compression codeMark J. Cox
[Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)] Fix so that the version number in the master secret, when passed via RSA, checks that if TLS was proposed, but we roll back to SSLv3 (because the server will not accept higher), that the version number is 0x03,0x01, not 0x03,0x00 [Eric A. Young, (from changes to C2Net SSLeay, integrated by Mark Cox)] Submitted by: Reviewed by: PR: