...
FossilOrigin-Name: 2a80ff74e83e1f6e99aba589ec8cec08d640199362326c61959aff81e93c5e0c
This commit is contained in:
@ -89,6 +89,9 @@ int join(struct sockaddr *sa)
|
||||
|
||||
|
||||
#ifdef WITH_DTLS
|
||||
cw_dbg (DBG_DTLS,"Establishing DTLS session with %s",sock_addr2str(sa));
|
||||
|
||||
/*
|
||||
#ifdef WITH_CW_LOG_DEBUG
|
||||
{
|
||||
char str[100];
|
||||
@ -96,7 +99,7 @@ int join(struct sockaddr *sa)
|
||||
cw_log_debug0("Establishing DTLS connection to %s",str);
|
||||
}
|
||||
#endif
|
||||
|
||||
*/
|
||||
if (conf_dtls_psk){
|
||||
conn->dtls_psk=conf_dtls_psk;
|
||||
conn->dtls_psk_len=strlen(conn->dtls_psk);
|
||||
@ -125,6 +128,9 @@ int join(struct sockaddr *sa)
|
||||
}
|
||||
|
||||
#endif
|
||||
cw_dbg (DBG_DTLS,"DTLS session established with %s, cipher=%s",sock_addr2str(sa),dtls_get_cipher(conn));
|
||||
exit(0);
|
||||
|
||||
|
||||
#ifdef WITH_CW_LOG_DEBUG
|
||||
{
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
struct wtpinfo wtpinfo;
|
||||
|
||||
//int conf_rids[2];
|
||||
@ -100,17 +101,16 @@ int wtp_main(const char *ad)
|
||||
|
||||
wtpconf_init();
|
||||
|
||||
cw_log_debug_level=6; //conf_debug_level;
|
||||
// cw_log_debug_level=6; //conf_debug_level;
|
||||
|
||||
conf_dtls_psk="Tube";
|
||||
conf_dtls_psk=0;
|
||||
// conf_dtls_psk=0;
|
||||
// conf_sslkeyfilename="../../ssl/wtp.key";
|
||||
// conf_sslcertfilename="../../ssl/wtp.crt";
|
||||
// conf_sslkeypass="7u83";
|
||||
|
||||
|
||||
conf_sslkeyfilename="../../ssl/wtp.key";
|
||||
conf_sslcertfilename="../../ssl/wtp.crt";
|
||||
conf_sslkeypass="7u83";
|
||||
|
||||
|
||||
cw_dbg_opt_type = DBG_DTLS;
|
||||
|
||||
#ifdef WITH_DTLS
|
||||
dtls_init();
|
||||
|
Reference in New Issue
Block a user