Lines Matching refs:protos
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()
3678 if (protos[idx] == 0) in alpn_value_ok()
3688 int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos, 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()
3718 int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos, 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()