Lines Matching refs:ta
117 br_x509_trust_anchor *ta; in load_cafile() local
197 ta = &ca.anchors[ca.anchors_len - 1]; in load_cafile()
198 ta->dn.data = NULL; in load_cafile()
199 ta->flags = 0; in load_cafile()
201 ta->flags |= BR_X509_TA_CA; in load_cafile()
207 ta->pkey = *pkey; in load_cafile()
224 ta->dn.data = malloc(ta_size); in load_cafile()
225 if(!ta->dn.data) { in load_cafile()
229 memcpy(ta->dn.data, ca.dn, ca.dn_len); in load_cafile()
230 ta->dn.len = ca.dn_len; in load_cafile()
233 ta->pkey.key.rsa.n = ta->dn.data + ta->dn.len; in load_cafile()
234 memcpy(ta->pkey.key.rsa.n, pkey->key.rsa.n, pkey->key.rsa.nlen); in load_cafile()
235 ta->pkey.key.rsa.e = ta->pkey.key.rsa.n + ta->pkey.key.rsa.nlen; in load_cafile()
236 memcpy(ta->pkey.key.rsa.e, pkey->key.rsa.e, pkey->key.rsa.elen); in load_cafile()
239 ta->pkey.key.ec.q = ta->dn.data + ta->dn.len; in load_cafile()
240 memcpy(ta->pkey.key.ec.q, pkey->key.ec.q, pkey->key.ec.qlen); in load_cafile()