Added certificate DTLS.
FossilOrigin-Name: f48a964a6a7bbe940ebf53806baf4b0361eae79226e08687ac42faf2125378c2
This commit is contained in:
parent
3adee200f1
commit
976ac0975d
@ -97,9 +97,22 @@ int join(struct sockaddr *sa)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
conn->dtls_psk=conf_dtls_psk;
|
if (conf_dtls_psk){
|
||||||
conn->dtls_psk_len=strlen(conn->dtls_psk);
|
conn->dtls_psk=conf_dtls_psk;
|
||||||
conn->dtls_cipher=conf_dtls_cipher;
|
conn->dtls_psk_len=strlen(conn->dtls_psk);
|
||||||
|
conn->dtls_cipher=conf_dtls_cipher;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conf_sslkeyfilename && conf_sslcertfilename){
|
||||||
|
|
||||||
|
conn->dtls_key_file = conf_sslkeyfilename;
|
||||||
|
conn->dtls_cert_file = conf_sslcertfilename;
|
||||||
|
conn->dtls_key_pass = conf_sslkeypass;
|
||||||
|
conn->dtls_cipher=conf_dtls_cipher;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
rc = dtls_connect(conn);
|
rc = dtls_connect(conn);
|
||||||
if (rc!=1){
|
if (rc!=1){
|
||||||
|
Loading…
Reference in New Issue
Block a user