Uses cipher from config.
FossilOrigin-Name: 101a634a2476cb858050401499d77060b7bd9bc7fc480a4b59a1def6a41917d1
This commit is contained in:
parent
dc3540ab26
commit
7bd48f5bc1
@ -451,15 +451,19 @@ static int wtpman_establish_dtls(void *arg)
|
||||
struct wtpman * wtpman = (struct wtpman *)arg;
|
||||
|
||||
/* setup cipher */
|
||||
wtpman->conn->dtls_cipher=CAPWAP_CIPHER;
|
||||
wtpman->conn->dtls_cipher=conf_sslcipher;
|
||||
|
||||
/* setup DTSL certificates */
|
||||
int dtls_ok=0;
|
||||
if (conf_sslkeyfilename && conf_sslcertfilename){
|
||||
|
||||
|
||||
wtpman->conn->dtls_key_file = conf_sslkeyfilename;
|
||||
wtpman->conn->dtls_cert_file = conf_sslcertfilename;
|
||||
wtpman->conn->dtls_key_pass = conf_sslkeypass;
|
||||
wtpman->conn->dtls_verify_peer = conf_dtls_verify_peer;
|
||||
cw_dbg(DBG_DTLS,"DTLS - Using key file %s",wtpman->conn->dtls_key_file);
|
||||
cw_dbg(DBG_DTLS,"DTLS - Using cert file %s",wtpman->conn->dtls_cert_file);
|
||||
dtls_ok=1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user