Lines Matching refs:security_params
64 dtls_security_parameters_t *security_params[2]; member
70 if (peer->security_params[0] && peer->security_params[0]->epoch == epoch) { in dtls_security_params_epoch()
71 return peer->security_params[0]; in dtls_security_params_epoch()
72 } else if (peer->security_params[1] && peer->security_params[1]->epoch == epoch) { in dtls_security_params_epoch()
73 return peer->security_params[1]; in dtls_security_params_epoch()
81 return peer->security_params[0]; in dtls_security_params()
86 if (peer->security_params[1]) in dtls_security_params_next()
87 dtls_security_free(peer->security_params[1]); in dtls_security_params_next()
89 peer->security_params[1] = dtls_security_new(); in dtls_security_params_next()
90 if (!peer->security_params[1]) { in dtls_security_params_next()
93 peer->security_params[1]->epoch = peer->security_params[0]->epoch + 1; in dtls_security_params_next()
94 return peer->security_params[1]; in dtls_security_params_next()
99 dtls_security_parameters_t * security0 = peer->security_params[0]; in dtls_security_params_free_other()
100 dtls_security_parameters_t * security1 = peer->security_params[1]; in dtls_security_params_free_other()
106 peer->security_params[1] = NULL; in dtls_security_params_free_other()
111 dtls_security_parameters_t * security = peer->security_params[1]; in dtls_security_params_switch()
113 peer->security_params[1] = peer->security_params[0]; in dtls_security_params_switch()
114 peer->security_params[0] = security; in dtls_security_params_switch()