Lines Matching defs:ta
40 certificate_to_trust_anchor_inner(br_x509_trust_anchor *ta,
56 ta->dn.data = VEC_TOARRAY(vdn);
57 ta->dn.len = VEC_LEN(vdn);
59 ta->flags = 0;
61 ta->flags |= BR_X509_TA_CA;
65 ta->pkey.key_type = BR_KEYTYPE_RSA;
66 ta->pkey.key.rsa.n = xblobdup(pk->key.rsa.n, pk->key.rsa.nlen);
67 ta->pkey.key.rsa.nlen = pk->key.rsa.nlen;
68 ta->pkey.key.rsa.e = xblobdup(pk->key.rsa.e, pk->key.rsa.elen);
69 ta->pkey.key.rsa.elen = pk->key.rsa.elen;
72 ta->pkey.key_type = BR_KEYTYPE_EC;
73 ta->pkey.key.ec.curve = pk->key.ec.curve;
74 ta->pkey.key.ec.q = xblobdup(pk->key.ec.q, pk->key.ec.qlen);
75 ta->pkey.key.ec.qlen = pk->key.ec.qlen;
79 xfree(ta->dn.data);
89 br_x509_trust_anchor ta;
91 if (certificate_to_trust_anchor_inner(&ta, xc) < 0) {
94 return xblobdup(&ta, sizeof ta);
100 free_ta_contents(br_x509_trust_anchor *ta)
102 xfree(ta->dn.data);
103 switch (ta->pkey.key_type) {
105 xfree(ta->pkey.key.rsa.n);
106 xfree(ta->pkey.key.rsa.e);
109 xfree(ta->pkey.key.ec.q);
127 br_x509_trust_anchor ta;
129 if (certificate_to_trust_anchor_inner(&ta, &xcs[u]) < 0) {
134 VEC_ADD(tas, ta);