Lines Matching refs:security
92 static void dtls_security_dealloc(dtls_security_parameters_t *security) { in dtls_security_dealloc() argument
93 free(security); in dtls_security_dealloc()
118 static void dtls_security_dealloc(dtls_security_parameters_t *security) { in dtls_security_dealloc() argument
119 memb_free(&security_storage, security); in dtls_security_dealloc()
157 dtls_security_parameters_t *security; in dtls_security_new() local
159 security = dtls_security_malloc(); in dtls_security_new()
160 if (!security) { in dtls_security_new()
165 memset(security, 0, sizeof(*security)); in dtls_security_new()
167 if (security) { in dtls_security_new()
168 security->cipher = TLS_NULL_WITH_NULL_NULL; in dtls_security_new()
169 security->compression = TLS_COMPRESSION_NULL; in dtls_security_new()
171 return security; in dtls_security_new()
174 void dtls_security_free(dtls_security_parameters_t *security) in dtls_security_free() argument
176 if (!security) in dtls_security_free()
179 dtls_security_dealloc(security); in dtls_security_free()