- /*
- * Grab the dirty data, and copy it to our buffer.
- *
- * I *really* don't like these 'record_t' things...
- */
- data_len = (tls_session->record_minus)(&tls_session->dirty_in, buffer, sizeof(buffer));
- data = buffer;
-
- /*
- * Write the data from the dirty buffer (i.e. packet
- * data) into the buffer which we will give to SSL for
- * decoding.
- *
- * Some of this code COULD technically go into the TLS
- * module, in eaptls_process(), where it returns EAPTLS_OK.
- *
- * Similarly, the writing of data to the SSL context could
- * go there, too...
- */
- BIO_write(tls_session->into_ssl, buffer, data_len);
- (tls_session->record_init)(&tls_session->clean_out);