Work on join with DTLS
FossilOrigin-Name: 555c5e22a849ebc1ec62ef358a31c32cd2dbb1af099224897ef5c803370b543b
This commit is contained in:
@ -47,6 +47,7 @@ static int detect(struct conn *conn, const uint8_t * rawmsg, int rawlen, int ele
|
||||
int static setup_cfg(struct conn * conn)
|
||||
{
|
||||
int security;
|
||||
|
||||
security = cw_setup_dtls(conn,conn->local_cfg,"capwap",CAPWAP_CIPHER);
|
||||
cw_ktv_set_byte(conn->local_cfg,"ac-descriptor/security",security);
|
||||
|
||||
|
@ -191,6 +191,16 @@ static struct cw_Mod capwap_ac = {
|
||||
};
|
||||
*/
|
||||
|
||||
int static setup_cfg(struct conn * conn)
|
||||
{
|
||||
int security;
|
||||
|
||||
security = cw_setup_dtls(conn,conn->local_cfg,"cisco",CAPWAP_CIPHER);
|
||||
cw_ktv_set_byte(conn->local_cfg,"ac-descriptor/security",security);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
struct cw_Mod mod_cisco = {
|
||||
"cisco", /* name */
|
||||
@ -198,7 +208,8 @@ struct cw_Mod mod_cisco = {
|
||||
detect, /* detect */
|
||||
register_messages, /* register_messages */
|
||||
NULL, /* dll_handle */
|
||||
NULL /* data */
|
||||
NULL, /* data */
|
||||
setup_cfg /* setup_cfg */
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user