Lines Matching defs:ciphers
26 ssl_cipher_in_list(STACK_OF(SSL_CIPHER) *ciphers, const SSL_CIPHER *cipher)
30 for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) {
31 if (sk_SSL_CIPHER_value(ciphers, i)->value == cipher->value)
54 ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *ciphers, CBB *cbb)
61 if (ciphers == NULL)
67 for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) {
68 if ((cipher = sk_SSL_CIPHER_value(ciphers, i)) == NULL)
81 /* Add SCSV if there are other ciphers and we're not renegotiating. */
96 STACK_OF(SSL_CIPHER) *ciphers = NULL;
103 if ((ciphers = sk_SSL_CIPHER_new_null()) == NULL) {
150 if (!sk_SSL_CIPHER_push(ciphers, cipher)) {
157 return (ciphers);
160 sk_SSL_CIPHER_free(ciphers);
206 STACK_OF(SSL_CIPHER) *ciphers;
213 if ((ciphers = sk_SSL_CIPHER_new_null()) == NULL)
216 /* An empty string is valid and means no ciphers. */
240 if (!sk_SSL_CIPHER_push(ciphers, cipher))
246 *out_ciphers = ciphers;
247 ciphers = NULL;
251 sk_SSL_CIPHER_free(ciphers);
262 STACK_OF(SSL_CIPHER) *ciphers = NULL;
266 if ((ciphers = sk_SSL_CIPHER_dup(cipherlist_tls13)) == NULL)
272 if (!sk_SSL_CIPHER_push(ciphers, cipher))
277 *out_cipherlist = ciphers;
278 ciphers = NULL;
283 sk_SSL_CIPHER_free(ciphers);