Changeset 438:e7814e24e57b in freeDiameter for extensions/app_diameap/diameap_tls.c
- Timestamp:
- Jul 28, 2010, 3:59:39 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_diameap/diameap_tls.c
r425 r438 39 39 #include "diameap_tls.h" 40 40 41 //GCRY_THREAD_OPTION_PTHREAD_IMPL; 42 41 43 int diameap_tls_init(struct tls_config * tls_conf) 42 44 { … … 102 104 if (text == NULL) 103 105 return; 104 msg = strdup(text);106 msg = (u8 *) strdup(text); 105 107 int i; 106 108 for (i = 0; (G8(text+i) != '\n') && (G8(text+i) != '\0'); i++) … … 170 172 size_t length) 171 173 { 172 int i;173 174 struct tls_data * data = (struct tls_data *) ptr; 174 u8 * buff;175 176 175 data->tlsReq.data = realloc(data->tlsReq.data, data->tlsReq.datalength 177 176 + length); … … 251 250 252 251 int diameap_tls_get_data(struct tls_msg tlsmsg, u8** tls_data, 253 int* data_length)252 u32 * data_length) 254 253 { 255 254 if (tlsmsg.datalength > 0) … … 332 331 333 332 if (data == NULL) 334 return ;333 return EINVAL; 335 334 int pos = 0; 336 335 diameap_tls_new(tlsmsg);
Note: See TracChangeset
for help on using the changeset viewer.