mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
173e72e64c
Revise DTLS code. There was a *lot* of code duplication in the DTLS code that generates records. This makes it harder to maintain and sometimes a TLS update is omitted by accident from the DTLS code. Specifically almost all of the record generation functions have code like this: some_pointer = buffer + HANDSHAKE_HEADER_LENGTH; ... Record creation stuff ... set_handshake_header(ssl, SSL_MT_SOMETHING, message_len); ... write_handshake_message(ssl); Where the "Record creation stuff" is identical between SSL/TLS and DTLS or in some cases has very minor differences. By adding a few fields to SSL3_ENC to include the header length, some flags and function pointers for handshake header setting and handshake writing the code can cope with both cases. Note: although this passes "make test" and some simple DTLS tests there may be some minor differences in the DTLS code that have to be accounted for. |
||
---|---|---|
.. | ||
.cvsignore | ||
bio_ssl.c | ||
d1_both.c | ||
d1_clnt.c | ||
d1_enc.c | ||
d1_lib.c | ||
d1_meth.c | ||
d1_pkt.c | ||
d1_srtp.c | ||
d1_srvr.c | ||
dtls1.h | ||
install-ssl.com | ||
kssl_lcl.h | ||
kssl.c | ||
kssl.h | ||
Makefile | ||
s2_clnt.c | ||
s2_enc.c | ||
s2_lib.c | ||
s2_meth.c | ||
s2_pkt.c | ||
s2_srvr.c | ||
s3_both.c | ||
s3_cbc.c | ||
s3_clnt.c | ||
s3_enc.c | ||
s3_lib.c | ||
s3_meth.c | ||
s3_pkt.c | ||
s3_srvr.c | ||
s23_clnt.c | ||
s23_lib.c | ||
s23_meth.c | ||
s23_pkt.c | ||
s23_srvr.c | ||
srtp.h | ||
ssl2.h | ||
ssl3.h | ||
ssl23.h | ||
ssl_algs.c | ||
ssl_asn1.c | ||
ssl_cert.c | ||
ssl_ciph.c | ||
ssl_conf.c | ||
ssl_err2.c | ||
ssl_err.c | ||
ssl_lib.c | ||
ssl_locl.h | ||
ssl_rsa.c | ||
ssl_sess.c | ||
ssl_stat.c | ||
ssl_task.c | ||
ssl_txt.c | ||
ssl-lib.com | ||
ssl.h | ||
ssltest.c | ||
t1_clnt.c | ||
t1_enc.c | ||
t1_lib.c | ||
t1_meth.c | ||
t1_reneg.c | ||
t1_srvr.c | ||
t1_trce.c | ||
tls1.h | ||
tls_srp.c |