Lines Matching refs:sigalgs
490 return ctx->cert->sigalgs.CopyFrom(MakeConstSpan(prefs, num_prefs)); in SSL_CTX_set_signing_algorithm_prefs()
498 return ssl->config->cert->sigalgs.CopyFrom(MakeConstSpan(prefs, num_prefs)); in SSL_set_signing_algorithm_prefs()
571 Array<uint16_t> sigalgs; in sigalgs_unique() local
572 if (!sigalgs.CopyFrom(in_sigalgs)) { in sigalgs_unique()
576 qsort(sigalgs.data(), sigalgs.size(), sizeof(uint16_t), compare_uint16_t); in sigalgs_unique()
578 for (size_t i = 1; i < sigalgs.size(); i++) { in sigalgs_unique()
579 if (sigalgs[i - 1] == sigalgs[i]) { in sigalgs_unique()
589 Array<uint16_t> sigalgs; in SSL_CTX_set1_sigalgs() local
590 if (!parse_sigalg_pairs(&sigalgs, values, num_values) || in SSL_CTX_set1_sigalgs()
591 !sigalgs_unique(sigalgs)) { in SSL_CTX_set1_sigalgs()
595 if (!SSL_CTX_set_signing_algorithm_prefs(ctx, sigalgs.data(), in SSL_CTX_set1_sigalgs()
596 sigalgs.size()) || in SSL_CTX_set1_sigalgs()
597 !ctx->verify_sigalgs.CopyFrom(sigalgs)) { in SSL_CTX_set1_sigalgs()
610 Array<uint16_t> sigalgs; in SSL_set1_sigalgs() local
611 if (!parse_sigalg_pairs(&sigalgs, values, num_values) || in SSL_set1_sigalgs()
612 !sigalgs_unique(sigalgs)) { in SSL_set1_sigalgs()
616 if (!SSL_set_signing_algorithm_prefs(ssl, sigalgs.data(), sigalgs.size()) || in SSL_set1_sigalgs()
617 !ssl->config->verify_sigalgs.CopyFrom(sigalgs)) { in SSL_set1_sigalgs()
779 Array<uint16_t> sigalgs; in SSL_CTX_set1_sigalgs_list() local
780 if (!parse_sigalgs_list(&sigalgs, str) || in SSL_CTX_set1_sigalgs_list()
781 !sigalgs_unique(sigalgs)) { in SSL_CTX_set1_sigalgs_list()
785 if (!SSL_CTX_set_signing_algorithm_prefs(ctx, sigalgs.data(), in SSL_CTX_set1_sigalgs_list()
786 sigalgs.size()) || in SSL_CTX_set1_sigalgs_list()
787 !ctx->verify_sigalgs.CopyFrom(sigalgs)) { in SSL_CTX_set1_sigalgs_list()
800 Array<uint16_t> sigalgs; in SSL_set1_sigalgs_list() local
801 if (!parse_sigalgs_list(&sigalgs, str) || in SSL_set1_sigalgs_list()
802 !sigalgs_unique(sigalgs)) { in SSL_set1_sigalgs_list()
806 if (!SSL_set_signing_algorithm_prefs(ssl, sigalgs.data(), sigalgs.size()) || in SSL_set1_sigalgs_list()
807 !ssl->config->verify_sigalgs.CopyFrom(sigalgs)) { in SSL_set1_sigalgs_list()