Lines Matching refs:protos_len
3670 static int alpn_value_ok(const unsigned char *protos, unsigned int protos_len) in alpn_value_ok() argument
3674 if (protos_len < 2 || protos == NULL) in alpn_value_ok()
3677 for (idx = 0; idx < protos_len; idx += protos[idx] + 1) { in alpn_value_ok()
3681 return idx == protos_len; in alpn_value_ok()
3689 unsigned int protos_len) in SSL_CTX_set_alpn_protos() argument
3693 if (protos_len == 0 || protos == NULL) { in SSL_CTX_set_alpn_protos()
3700 if (!alpn_value_ok(protos, protos_len)) in SSL_CTX_set_alpn_protos()
3703 alpn = OPENSSL_memdup(protos, protos_len); in SSL_CTX_set_alpn_protos()
3708 ctx->ext.alpn_len = protos_len; in SSL_CTX_set_alpn_protos()
3719 unsigned int protos_len) in SSL_set_alpn_protos() argument
3727 if (protos_len == 0 || protos == NULL) { in SSL_set_alpn_protos()
3734 if (!alpn_value_ok(protos, protos_len)) in SSL_set_alpn_protos()
3737 alpn = OPENSSL_memdup(protos, protos_len); in SSL_set_alpn_protos()
3742 sc->ext.alpn_len = protos_len; in SSL_set_alpn_protos()