Lines Matching refs:aux

38     return x->aux ? 1 : 0;
45 if (x->aux == NULL && (x->aux = X509_CERT_AUX_new()) == NULL) in aux_get()
47 return x->aux; in aux_get()
52 X509_CERT_AUX *aux; in X509_alias_set1() local
54 if (!x || !x->aux || !x->aux->alias) in X509_alias_set1()
56 ASN1_UTF8STRING_free(x->aux->alias); in X509_alias_set1()
57 x->aux->alias = NULL; in X509_alias_set1()
60 if ((aux = aux_get(x)) == NULL) in X509_alias_set1()
62 if (aux->alias == NULL && (aux->alias = ASN1_UTF8STRING_new()) == NULL) in X509_alias_set1()
64 return ASN1_STRING_set(aux->alias, name, len); in X509_alias_set1()
69 X509_CERT_AUX *aux; in X509_keyid_set1() local
71 if (!x || !x->aux || !x->aux->keyid) in X509_keyid_set1()
73 ASN1_OCTET_STRING_free(x->aux->keyid); in X509_keyid_set1()
74 x->aux->keyid = NULL; in X509_keyid_set1()
77 if ((aux = aux_get(x)) == NULL) in X509_keyid_set1()
79 if (aux->keyid == NULL in X509_keyid_set1()
80 && (aux->keyid = ASN1_OCTET_STRING_new()) == NULL) in X509_keyid_set1()
82 return ASN1_STRING_set(aux->keyid, id, len); in X509_keyid_set1()
87 if (!x->aux || !x->aux->alias) in X509_alias_get0()
90 *len = x->aux->alias->length; in X509_alias_get0()
91 return x->aux->alias->data; in X509_alias_get0()
96 if (!x->aux || !x->aux->keyid) in X509_keyid_get0()
99 *len = x->aux->keyid->length; in X509_keyid_get0()
100 return x->aux->keyid->data; in X509_keyid_get0()
105 X509_CERT_AUX *aux; in X509_add1_trust_object() local
112 if ((aux = aux_get(x)) == NULL) in X509_add1_trust_object()
114 if (aux->trust == NULL in X509_add1_trust_object()
115 && (aux->trust = sk_ASN1_OBJECT_new_null()) == NULL) in X509_add1_trust_object()
117 if (!objtmp || sk_ASN1_OBJECT_push(aux->trust, objtmp)) in X509_add1_trust_object()
126 X509_CERT_AUX *aux; in X509_add1_reject_object() local
132 if ((aux = aux_get(x)) == NULL) in X509_add1_reject_object()
134 if (aux->reject == NULL in X509_add1_reject_object()
135 && (aux->reject = sk_ASN1_OBJECT_new_null()) == NULL) in X509_add1_reject_object()
137 if (sk_ASN1_OBJECT_push(aux->reject, objtmp) > 0) in X509_add1_reject_object()
148 if (x->aux) { in X509_trust_clear()
149 sk_ASN1_OBJECT_pop_free(x->aux->trust, ASN1_OBJECT_free); in X509_trust_clear()
150 x->aux->trust = NULL; in X509_trust_clear()
156 if (x->aux) { in X509_reject_clear()
157 sk_ASN1_OBJECT_pop_free(x->aux->reject, ASN1_OBJECT_free); in X509_reject_clear()
158 x->aux->reject = NULL; in X509_reject_clear()
164 if (x->aux != NULL) in STACK_OF()
165 return x->aux->trust; in STACK_OF()
171 if (x->aux != NULL) in STACK_OF()
172 return x->aux->reject; in STACK_OF()