building

DALE REAMER dale_reamer at prodigy.net
Fri Jul 15 20:55:00 CEST 2005


    In tls.c I want to add some code to tls_handshake_send:
 
int tls_handshake_send(tls_session_t *ssn)
{
 int err;
 /*
  * If there's un-encrypted data in 'clean_in', then write
  * that data to the SSL session, and then call the BIO function
  * to get that encrypted data from the SSL session, into
  * a buffer which we can then package into an EAP packet.
  *
  * Based on Server's logic this clean_in is expected to
  * contain the data to send to the client.
  */
 
/* newpiece so I can see what is being encrypted */
for(i=0;i<ssn->clean_in.used;i++)
  printf("%x ", ssn->clean_in.data[i]);
printf("\n");
 

 if (ssn->clean_in.used > 0) {
  SSL_write(ssn->ssl, ssn->clean_in.data, ssn->clean_in.used);
  /* Get the dirty data from Bio to send it */
  err = BIO_read(ssn->from_ssl, ssn->dirty_out.data,
          sizeof(ssn->dirty_out.data));
  if (err > 0) {
   ssn->dirty_out.used = err;
  } else {
   int_ssl_check(ssn->ssl, err, "handshake_send");
  }
 }
 return 1;
}
 
    So I just want to biuld tls.c and use it.
    I know everybody already knows how to do this but I have time constraints(as usual);
 
Thanks

 
 
 
 
 
 


Alan DeKok <aland at ox.org> wrote:DALE REAMER wrote:
> I am new to tweaking freeradius code. Since I am having trouble
> forming the information to be encrypted by SSL and then sent to the
> wpa_supplicant (bad decryptopmn or bad mac error on the
> wpa_supplicant side, and also sometimes on the server side) I want
> to put in some printf's in freeradius, probably in tls.c. After I
> add code, what needs to be built and installed, every directory has
> a makefile.

Can you explain what you are trying to do, in a way other than
"tweaking the code"? It's pretty much impossible to help you if you
don't give any information.

If you're adding another EAP method, copy one of the existing ones
to a new directory and rename it.

Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20050715/9c0f9a59/attachment.html>


More information about the Freeradius-Users mailing list