Lines Matching refs:curves_len
411 size_t curves_len, i; in tls1_check_curve() local
420 tls1_get_curvelist(s, 0, &curves, &curves_len); in tls1_check_curve()
421 for (i = 0; i < curves_len; i++) { in tls1_check_curve()
433 size_t curves_len, peer_curves_len, pref_len, supp_len, i, j; in tls1_get_shared_curve() local
440 tls1_get_curvelist(s, 0 /* local curves */, &curves, &curves_len); in tls1_get_shared_curve()
447 return (curves_len == 0) ? NID_undef : tls1_ec_curve_id2nid(curves[0]); in tls1_get_shared_curve()
452 pref_len = curves_len; in tls1_get_shared_curve()
459 supp_len = curves_len; in tls1_get_shared_curve()
565 size_t curves_len, i, get_peer_curves; in tls1_check_curve_id() local
575 tls1_get_curvelist(s, get_peer_curves, &curves, &curves_len); in tls1_check_curve_id()
576 if (get_peer_curves && curves_len == 0) { in tls1_check_curve_id()
582 for (i = 0; i < curves_len; i++) { in tls1_check_curve_id()
588 if (i == curves_len) { in tls1_check_curve_id()
1032 size_t formats_len, curves_len, i; in ssl_add_clienthello_tlsext() local
1055 tls1_get_curvelist(s, 0, &curves, &curves_len); in ssl_add_clienthello_tlsext()
1061 if (curves_len * 2 > (size_t)lenmax) { in ssl_add_clienthello_tlsext()
1064 if (curves_len * 2 > 65532) { in ssl_add_clienthello_tlsext()
1070 s2n((curves_len * 2) + 2, ret); in ssl_add_clienthello_tlsext()
1072 s2n(curves_len * 2, ret); in ssl_add_clienthello_tlsext()
1073 for (i = 0; i < curves_len; i++) { in ssl_add_clienthello_tlsext()