Home | History | Annotate | Download | only in ssl

Lines Matching refs:cbb

647   CBB client_hello, hello_body, cipher_suites;
1142 CBB cbb, session_id;
1144 CBB_zero(&cbb);
1145 if (!CBB_init_fixed(&cbb, ssl_handshake_start(ssl),
1147 !CBB_add_u16(&cbb, ssl->version) ||
1148 !CBB_add_bytes(&cbb, ssl->s3->server_random, SSL3_RANDOM_SIZE) ||
1149 !CBB_add_u8_length_prefixed(&cbb, &session_id) ||
1152 !CBB_add_u16(&cbb, ssl_cipher_get_value(ssl->s3->tmp.new_cipher)) ||
1153 !CBB_add_u8(&cbb, 0 /* no compression */) ||
1154 !ssl_add_serverhello_tlsext(ssl, &cbb) ||
1155 !CBB_finish(&cbb, NULL, &length) ||
1158 CBB_cleanup(&cbb);
1168 CBB out, ocsp_response;
1209 CBB cbb, child;
1210 if (!CBB_init_fixed(&cbb, ssl_handshake_start(ssl),
1224 if (!CBB_add_u16_length_prefixed(&cbb, &child) ||
1251 if (!CBB_add_u16_length_prefixed(&cbb, &child) ||
1253 !CBB_add_u16_length_prefixed(&cbb, &child) ||
1255 !CBB_add_u16_length_prefixed(&cbb, &child) ||
1271 !CBB_add_u8(&cbb, NAMED_CURVE_TYPE) ||
1272 !CBB_add_u16(&cbb, curve_id) ||
1273 !CBB_add_u8_length_prefixed(&cbb, &child) ||
1281 /* Otherwise, restore |cbb| from the previous iteration.
1283 * pattern. Probably keep the |CBB| around in the handshake state. */
1284 } else if (!CBB_did_write(&cbb, ssl->init_num - SSL_HM_HEADER_LENGTH(ssl))) {
1301 if (!CBB_flush(&cbb)) {
1304 size_t params_len = CBB_len(&cbb);
1310 if (!tls12_add_sigandhash(ssl, &cbb, md)) {
1330 EVP_DigestUpdate(&md_ctx, CBB_data(&cbb), params_len) &&
1335 !CBB_add_u16_length_prefixed(&cbb, &child) ||
1346 if (!CBB_add_u16_length_prefixed(&cbb, &child) ||
1365 /* Discard the unfinished signature and save the state of |cbb| for the
1367 CBB_discard_child(&cbb);
1368 ssl->init_num = SSL_HM_HEADER_LENGTH(ssl) + CBB_len(&cbb);
1376 if (!CBB_finish(&cbb, NULL, &length) ||
1384 CBB_cleanup(&cbb);
1686 CBB new_premaster, child;