summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-03-28free NULL cleanupRich Salz
EVP_.*free; this gets: EVP_CIPHER_CTX_free EVP_PKEY_CTX_free EVP_PKEY_asn1_free EVP_PKEY_asn1_set_free EVP_PKEY_free EVP_PKEY_free_it EVP_PKEY_meth_free; and also EVP_CIPHER_CTX_cleanup Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-03-28Engage vpaes-armv8 module.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28Add vpaes-amrv8.pl module.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28Configure: remove unused variables.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-28Make asn1_ex_i2c, asn1_ex_c2i static.Dr. Stephen Henson
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-03-26Remove combine option from ASN.1 code.Dr. Stephen Henson
Remove the combine option. This was used for compatibility with some non standard behaviour in ancient versions of OpenSSL: specifically the X509_ATTRIBUTE and DSAPublicKey handling. Since these have now been revised it is no longer needed. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Simplify DSA public key handling.Dr. Stephen Henson
DSA public keys could exist in two forms: a single Integer type or a SEQUENCE containing the parameters and public key with a field called "write_params" deciding which form to use. These forms are non standard and were only used by functions containing "DSAPublicKey" in the name. Simplify code to only use the parameter form and encode the public key component directly in the DSA public key method. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26ASN1_TYPE documentation.Dr. Stephen Henson
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Add Record Layer documentationMatt Caswell
Add some design documentation on how the record layer works to aid future maintenance. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Fix formatting odditiesMatt Caswell
Fix some formatting oddities in rec_layer_d1.c. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Fix record.h formattingMatt Caswell
Fix some strange formatting in record.h. This was probably originally introduced as part of the reformat work. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Define SEQ_NUM_SIZEMatt Caswell
Replace the hard coded value 8 (the size of the sequence number) with a constant defined in a macro. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Fix compilation on windows for record layerMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Rename record layer source filesMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Remove some unneccessary macrosMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Renamed record layer header filesMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Reorganise header filesMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Remove last trace of non-record layer code reading and writing sequenceMatt Caswell
numbers directly Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move last_write_sequence from s->d1 to s->rlayer.d.Matt Caswell
Also push some usage of last_write_sequence out of dtls1_retransmit_message and into the record layer. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move ssl3_record_sequence_update into record layerMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move buffered_app_data from s->d1 to s->rlayer.dMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move handshake_fragment, handshake_fragment_len, alert_fragment andMatt Caswell
alert_fragment_len from s->d1 to s->rlayer.d Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Fix seg fault in dtls1_newMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Moved processed_rcds and unprocessed_rcds from s->d1 to s->rlayer.dMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move bitmap and next_bitmap from s->d1 to s->rlayer.d.Matt Caswell
Create dtls_bitmap.h and dtls_bitmap.c Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move r_epoch and w_epoch from s->d1 to s->rlayer.dMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Introduce a DTLS_RECORD_LAYER type for DTLS record layer stateMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move DTLS1_RECORD_DATA into rec_layer.hMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move read_sequence and write_sequence from s->s3 to s->rlayerMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move s->s3->wpend_* to s->rlayerMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move handshake_fragment, handshake_fragment_len, alert_fragment andMatt Caswell
alert_fragment_len from s->s3 into s->rlayer Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move s->s3->wnum to s->rlayer.wnumMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move s->rstate to s->rlayer.rstateMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move s->packet and s->packet_length into s->rlayerMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Remove unneccessary use of accessor function now code is moved into recordMatt Caswell
layer Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Make rrec, wrec, rbuf and wbuf fully private to the record layer. Also, cleanMatt Caswell
up some access to them. Now that various functions have been moved into the record layer they no longer need to use the accessor macros. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Removed dependency on rrec from heartbeat processingMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Introduce macro RECORD_LAYER_setup_comp_bufferMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Fix bug where rrec was being released...should have been removed by one ofMatt Caswell
the earlier record layer commits Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move ssl3_pending into the record layerMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Remove RECORD_LAYER_set_ssl and introduce RECORD_LAYER_initMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Provide RECORD_LAYER_set_data functionMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Introduce the functions RECORD_LAYER_release, RECORD_LAYER_read_pending, andMatt Caswell
RECORD_LAYER_write_pending. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Create RECORD_LAYER_clear function.Matt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Tidy up rec_layer.h. Add some comments regarding which functions should beMatt Caswell
being used for what purpose. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Moved s3_pkt.c, s23_pkt.c and d1_pkt.c into the record layer.Matt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Split out non record layer functions out of s3_pkt.c and d1_pkt.c intoMatt Caswell
the new files s3_msg.c and s1_msg.c respectively. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move more SSL3_RECORD oriented functions into ssl3_record.cMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move SSL3_RECORD oriented functions into ssl3_record.cMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-26Move SSL3_BUFFER set up and release code into ssl3_buffer.cMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org>