Mercurial > hg > freeDiameter
comparison extensions/app_diameap/diameap_tls.h @ 438:e7814e24e57b
Corrected compilation warnings on app_diameap
author | Souheil Ben Ayed <souheil@tera.ics.keio.ac.jp> |
---|---|
date | Wed, 28 Jul 2010 15:59:39 +0900 |
parents | 0c6e50a5291d |
children | 64e55fc10ab3 |
comparison
equal
deleted
inserted
replaced
437:c405e93bb2cc | 438:e7814e24e57b |
---|---|
43 #include <gnutls/gnutls.h> | 43 #include <gnutls/gnutls.h> |
44 #include <gcrypt.h> | 44 #include <gcrypt.h> |
45 #include <errno.h> | 45 #include <errno.h> |
46 #include <pthread.h> | 46 #include <pthread.h> |
47 | 47 |
48 GCRY_THREAD_OPTION_PTHREAD_IMPL; | |
49 | 48 |
50 | 49 |
51 #define TLS_FLAG_LENGTH 0x80 | 50 #define TLS_FLAG_LENGTH 0x80 |
52 #define TLS_FLAG_MORE 0x40 | 51 #define TLS_FLAG_MORE 0x40 |
53 #define TLS_FLAG_START 0x20 | 52 #define TLS_FLAG_START 0x20 |
93 int diameap_tls_set_message_length(struct tls_msg * tlsmsg, u32 length); | 92 int diameap_tls_set_message_length(struct tls_msg * tlsmsg, u32 length); |
94 | 93 |
95 int diameap_tls_get_flags(struct tls_msg tlsmsg, u8 * flags); | 94 int diameap_tls_get_flags(struct tls_msg tlsmsg, u8 * flags); |
96 int diameap_tls_set_flags(struct tls_msg * tlsmsg, u8 flags); | 95 int diameap_tls_set_flags(struct tls_msg * tlsmsg, u8 flags); |
97 | 96 |
98 int diameap_tls_get_data(struct tls_msg tlsmsg, u8** tls_data, int * data_length); | 97 int diameap_tls_get_data(struct tls_msg tlsmsg, u8** tls_data, u32 * data_length); |
99 int diameap_tls_set_data(struct tls_msg * tlsmsg, u8* tls_data, int data_length); | 98 int diameap_tls_set_data(struct tls_msg * tlsmsg, u8* tls_data, int data_length); |
100 | 99 |
101 int diameap_tls_parse(u8* data, int length, struct tls_msg * tlsmsg); | 100 int diameap_tls_parse(u8* data, int length, struct tls_msg * tlsmsg); |
102 | 101 |
103 int diameap_tls_new_tls_packet(u8** data, int * len, struct tls_msg tlsmsg); | 102 int diameap_tls_new_tls_packet(u8** data, int * len, struct tls_msg tlsmsg); |