Mercurial > hg > freeDiameter-dtls
comparison freeDiameterd/main.c @ 1219:8802d3fa5876
Got successful handshake over DTLS with this version
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 18 Jun 2013 15:51:11 +0800 |
parents | cc96a4dfb3d1 |
children |
comparison
equal
deleted
inserted
replaced
1218:876cb3e4d738 | 1219:8802d3fa5876 |
---|---|
49 static char *conffile = NULL; | 49 static char *conffile = NULL; |
50 static int gnutls_debug = 0; | 50 static int gnutls_debug = 0; |
51 | 51 |
52 /* gnutls debug */ | 52 /* gnutls debug */ |
53 static void fd_gnutls_debug(int level, const char * str) { | 53 static void fd_gnutls_debug(int level, const char * str) { |
54 fd_log_debug(" [gnutls:%d] %s", level, str); | 54 int len = strlen(str); |
55 if (str[len-1] == '\n') | |
56 len--; | |
57 fd_log_debug(" [gnutls:%d] %.*s", level, len, str); | |
55 } | 58 } |
56 | 59 |
57 | 60 |
58 /* freeDiameter starting point */ | 61 /* freeDiameter starting point */ |
59 int main(int argc, char * argv[]) | 62 int main(int argc, char * argv[]) |