int newSuiteSize = 0, i;
gnutls_certificate_credentials_t cert_cred;
gnutls_kx_algorithm_t kx;
+ gnutls_cipher_algorithm_t cid;
int server = session->security_parameters.entity == GNUTLS_SERVER ? 1 : 0;
gnutls_kx_algorithm_t *alg = NULL;
int alg_size = 0;
delete = 1;
}
+ /* if dtls and not appropriate for dtls */
+ if(_gnutls_is_dtls(session))
+ {
+ cid = _gnutls_cipher_suite_get_cipher_algo (&(*cipherSuites)[i]);
+
+ if(cid == GNUTLS_CIPHER_ARCFOUR_128 || cid == GNUTLS_CIPHER_ARCFOUR_40)
+ delete = 1;
+ }
+
memcpy (&cs.suite, &(*cipherSuites)[i].suite, 2);
if (delete == 0)