Lines Matching refs:ta
342 certificate_to_trust_anchor_inner(br_x509_trust_anchor *ta, in certificate_to_trust_anchor_inner() argument
358 ta->dn.data = VEC_TOARRAY(vdn); in certificate_to_trust_anchor_inner()
359 ta->dn.len = VEC_LEN(vdn); in certificate_to_trust_anchor_inner()
361 ta->flags = 0; in certificate_to_trust_anchor_inner()
363 ta->flags |= BR_X509_TA_CA; in certificate_to_trust_anchor_inner()
367 ta->pkey.key_type = BR_KEYTYPE_RSA; in certificate_to_trust_anchor_inner()
368 ta->pkey.key.rsa.n = xblobdup(pk->key.rsa.n, pk->key.rsa.nlen); in certificate_to_trust_anchor_inner()
369 ta->pkey.key.rsa.nlen = pk->key.rsa.nlen; in certificate_to_trust_anchor_inner()
370 ta->pkey.key.rsa.e = xblobdup(pk->key.rsa.e, pk->key.rsa.elen); in certificate_to_trust_anchor_inner()
371 ta->pkey.key.rsa.elen = pk->key.rsa.elen; in certificate_to_trust_anchor_inner()
374 ta->pkey.key_type = BR_KEYTYPE_EC; in certificate_to_trust_anchor_inner()
375 ta->pkey.key.ec.curve = pk->key.ec.curve; in certificate_to_trust_anchor_inner()
376 ta->pkey.key.ec.q = xblobdup(pk->key.ec.q, pk->key.ec.qlen); in certificate_to_trust_anchor_inner()
377 ta->pkey.key.ec.qlen = pk->key.ec.qlen; in certificate_to_trust_anchor_inner()
381 xfree(ta->dn.data); in certificate_to_trust_anchor_inner()
389 free_ta_contents(br_x509_trust_anchor *ta) in free_ta_contents() argument
391 xfree(ta->dn.data); in free_ta_contents()
392 switch (ta->pkey.key_type) { in free_ta_contents()
394 xfree(ta->pkey.key.rsa.n); in free_ta_contents()
395 xfree(ta->pkey.key.rsa.e); in free_ta_contents()
398 xfree(ta->pkey.key.ec.q); in free_ta_contents()