Lines Matching refs:sinf

429     TLS_SIGALG_INFO *sinf = NULL;  in add_provider_sigalgs()  local
454 sinf = &ctx->sigalg_list[ctx->sigalg_list_len]; in add_provider_sigalgs()
462 OPENSSL_free(sinf->sigalg_name); in add_provider_sigalgs()
463 sinf->sigalg_name = OPENSSL_strdup(p->data); in add_provider_sigalgs()
464 if (sinf->sigalg_name == NULL) in add_provider_sigalgs()
472 OPENSSL_free(sinf->name); in add_provider_sigalgs()
473 sinf->name = OPENSSL_strdup(p->data); in add_provider_sigalgs()
474 if (sinf->name == NULL) in add_provider_sigalgs()
485 sinf->code_point = (uint16_t)code_point; in add_provider_sigalgs()
489 if (p == NULL || !OSSL_PARAM_get_uint(p, &sinf->secbits)) { in add_provider_sigalgs()
497 sinf->sigalg_oid = NULL; in add_provider_sigalgs()
501 OPENSSL_free(sinf->sigalg_oid); in add_provider_sigalgs()
502 sinf->sigalg_oid = OPENSSL_strdup(p->data); in add_provider_sigalgs()
503 if (sinf->sigalg_oid == NULL) in add_provider_sigalgs()
509 sinf->sig_name = NULL; in add_provider_sigalgs()
513 OPENSSL_free(sinf->sig_name); in add_provider_sigalgs()
514 sinf->sig_name = OPENSSL_strdup(p->data); in add_provider_sigalgs()
515 if (sinf->sig_name == NULL) in add_provider_sigalgs()
521 sinf->sig_oid = NULL; in add_provider_sigalgs()
525 OPENSSL_free(sinf->sig_oid); in add_provider_sigalgs()
526 sinf->sig_oid = OPENSSL_strdup(p->data); in add_provider_sigalgs()
527 if (sinf->sig_oid == NULL) in add_provider_sigalgs()
533 sinf->hash_name = NULL; in add_provider_sigalgs()
537 OPENSSL_free(sinf->hash_name); in add_provider_sigalgs()
538 sinf->hash_name = OPENSSL_strdup(p->data); in add_provider_sigalgs()
539 if (sinf->hash_name == NULL) in add_provider_sigalgs()
545 sinf->hash_oid = NULL; in add_provider_sigalgs()
549 OPENSSL_free(sinf->hash_oid); in add_provider_sigalgs()
550 sinf->hash_oid = OPENSSL_strdup(p->data); in add_provider_sigalgs()
551 if (sinf->hash_oid == NULL) in add_provider_sigalgs()
557 sinf->keytype = NULL; in add_provider_sigalgs()
561 OPENSSL_free(sinf->keytype); in add_provider_sigalgs()
562 sinf->keytype = OPENSSL_strdup(p->data); in add_provider_sigalgs()
563 if (sinf->keytype == NULL) in add_provider_sigalgs()
569 sinf->keytype_oid = NULL; in add_provider_sigalgs()
573 OPENSSL_free(sinf->keytype_oid); in add_provider_sigalgs()
574 sinf->keytype_oid = OPENSSL_strdup(p->data); in add_provider_sigalgs()
575 if (sinf->keytype_oid == NULL) in add_provider_sigalgs()
581 if (p == NULL || !OSSL_PARAM_get_int(p, &sinf->mintls)) { in add_provider_sigalgs()
585 if ((sinf->mintls != 0) && (sinf->mintls != -1) && in add_provider_sigalgs()
586 ((sinf->mintls < TLS1_3_VERSION))) { in add_provider_sigalgs()
593 if (p == NULL || !OSSL_PARAM_get_int(p, &sinf->maxtls)) { in add_provider_sigalgs()
597 if ((sinf->maxtls != 0) && (sinf->maxtls != -1) && in add_provider_sigalgs()
598 ((sinf->maxtls < sinf->mintls))) { in add_provider_sigalgs()
602 if ((sinf->maxtls != 0) && (sinf->maxtls != -1) && in add_provider_sigalgs()
603 ((sinf->maxtls < TLS1_3_VERSION))) { in add_provider_sigalgs()
617 keytype = (sinf->keytype != NULL in add_provider_sigalgs()
618 ? sinf->keytype in add_provider_sigalgs()
619 : (sinf->sig_name != NULL in add_provider_sigalgs()
620 ? sinf->sig_name in add_provider_sigalgs()
621 : sinf->sigalg_name)); in add_provider_sigalgs()
644 OBJ_create(sinf->sigalg_oid, sinf->sigalg_name, NULL); in add_provider_sigalgs()
646 if ((OBJ_txt2nid(sinf->sigalg_name) == NID_undef) || in add_provider_sigalgs()
647 (OBJ_nid2obj(OBJ_txt2nid(sinf->sigalg_name)) == NULL)) { in add_provider_sigalgs()
651 if (sinf->sig_name != NULL) in add_provider_sigalgs()
652 OBJ_create(sinf->sig_oid, sinf->sig_name, NULL); in add_provider_sigalgs()
653 if (sinf->keytype != NULL) in add_provider_sigalgs()
654 OBJ_create(sinf->keytype_oid, sinf->keytype, NULL); in add_provider_sigalgs()
655 if (sinf->hash_name != NULL) in add_provider_sigalgs()
656 OBJ_create(sinf->hash_oid, sinf->hash_name, NULL); in add_provider_sigalgs()
657 OBJ_add_sigid(OBJ_txt2nid(sinf->sigalg_name), in add_provider_sigalgs()
658 (sinf->hash_name != NULL in add_provider_sigalgs()
659 ? OBJ_txt2nid(sinf->hash_name) in add_provider_sigalgs()
663 sinf = NULL; in add_provider_sigalgs()
669 if (sinf != NULL) { in add_provider_sigalgs()
670 OPENSSL_free(sinf->name); in add_provider_sigalgs()
671 sinf->name = NULL; in add_provider_sigalgs()
672 OPENSSL_free(sinf->sigalg_name); in add_provider_sigalgs()
673 sinf->sigalg_name = NULL; in add_provider_sigalgs()
674 OPENSSL_free(sinf->sigalg_oid); in add_provider_sigalgs()
675 sinf->sigalg_oid = NULL; in add_provider_sigalgs()
676 OPENSSL_free(sinf->sig_name); in add_provider_sigalgs()
677 sinf->sig_name = NULL; in add_provider_sigalgs()
678 OPENSSL_free(sinf->sig_oid); in add_provider_sigalgs()
679 sinf->sig_oid = NULL; in add_provider_sigalgs()
680 OPENSSL_free(sinf->hash_name); in add_provider_sigalgs()
681 sinf->hash_name = NULL; in add_provider_sigalgs()
682 OPENSSL_free(sinf->hash_oid); in add_provider_sigalgs()
683 sinf->hash_oid = NULL; in add_provider_sigalgs()
684 OPENSSL_free(sinf->keytype); in add_provider_sigalgs()
685 sinf->keytype = NULL; in add_provider_sigalgs()
686 OPENSSL_free(sinf->keytype_oid); in add_provider_sigalgs()
687 sinf->keytype_oid = NULL; in add_provider_sigalgs()