Navigation



Ignore:
Timestamp:
Jul 28, 2010, 3:59:39 PM (14 years ago)
Author:
Souheil Ben Ayed <souheil@tera.ics.keio.ac.jp>
Branch:
default
Phase:
public
Message:

Corrected compilation warnings on app_diameap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap_tls.c

    r425 r438  
    3939#include "diameap_tls.h"
    4040
     41//GCRY_THREAD_OPTION_PTHREAD_IMPL;
     42
    4143int diameap_tls_init(struct tls_config * tls_conf)
    4244{
     
    102104        if (text == NULL)
    103105                return;
    104         msg = strdup(text);
     106        msg = (u8 *) strdup(text);
    105107        int i;
    106108        for (i = 0; (G8(text+i) != '\n') && (G8(text+i) != '\0'); i++)
     
    170172                size_t length)
    171173{
    172         int i;
    173174        struct tls_data * data = (struct tls_data *) ptr;
    174         u8 * buff;
    175 
    176175        data->tlsReq.data = realloc(data->tlsReq.data, data->tlsReq.datalength
    177176                        + length);
     
    251250
    252251int diameap_tls_get_data(struct tls_msg tlsmsg, u8** tls_data,
    253                 int * data_length)
     252                u32 * data_length)
    254253{
    255254        if (tlsmsg.datalength > 0)
     
    332331
    333332        if (data == NULL)
    334                 return;
     333                return EINVAL;
    335334        int pos = 0;
    336335        diameap_tls_new(tlsmsg);
Note: See TracChangeset for help on using the changeset viewer.