Lines Matching defs:ta
344 certificate_to_trust_anchor_inner(br_x509_trust_anchor *ta,
360 ta->dn.data = VEC_TOARRAY(vdn);
361 ta->dn.len = VEC_LEN(vdn);
363 ta->flags = 0;
365 ta->flags |= BR_X509_TA_CA;
369 ta->pkey.key_type = BR_KEYTYPE_RSA;
370 ta->pkey.key.rsa.n = xblobdup(pk->key.rsa.n, pk->key.rsa.nlen);
371 ta->pkey.key.rsa.nlen = pk->key.rsa.nlen;
372 ta->pkey.key.rsa.e = xblobdup(pk->key.rsa.e, pk->key.rsa.elen);
373 ta->pkey.key.rsa.elen = pk->key.rsa.elen;
376 ta->pkey.key_type = BR_KEYTYPE_EC;
377 ta->pkey.key.ec.curve = pk->key.ec.curve;
378 ta->pkey.key.ec.q = xblobdup(pk->key.ec.q, pk->key.ec.qlen);
379 ta->pkey.key.ec.qlen = pk->key.ec.qlen;
383 xfree(ta->dn.data);
391 free_ta_contents(br_x509_trust_anchor *ta)
393 xfree(ta->dn.data);
394 switch (ta->pkey.key_type) {
396 xfree(ta->pkey.key.rsa.n);
397 xfree(ta->pkey.key.rsa.e);
400 xfree(ta->pkey.key.ec.q);