New functions SSL[_CTX]_set_msg_callback().
authorBodo Möller <bodo@openssl.org>
Sat, 20 Oct 2001 17:56:36 +0000 (17:56 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 20 Oct 2001 17:56:36 +0000 (17:56 +0000)
commita661b6535744f41b428bb35a7fc3e5747900e9ef
treeb0407e3532c11891d2a7a9d22475a2db85db5ce7
parent98e665493818493e9a2bb4fce30127aca052f47a
New functions SSL[_CTX]_set_msg_callback().
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.
20 files changed:
CHANGES
apps/apps.c
apps/apps.h
apps/openssl.c
apps/rand.c
apps/s_apps.h
apps/s_cb.c
apps/s_client.c
apps/s_server.c
apps/version.c
doc/ssl/SSL_CTX_ctrl.pod
ssl/s23_srvr.c
ssl/s2_lib.c
ssl/s3_both.c
ssl/s3_lib.c
ssl/s3_pkt.c
ssl/s3_srvr.c
ssl/ssl.h
ssl/ssl_lib.c
ssl/ssl_locl.h