Lines Matching refs:x
24 static X509_CERT_AUX *aux_get(X509 *x);
36 int X509_trusted(const X509 *x)
38 return x->aux ? 1 : 0;
41 static X509_CERT_AUX *aux_get(X509 *x) in aux_get() argument
43 if (x == NULL) in aux_get()
45 if (x->aux == NULL && (x->aux = X509_CERT_AUX_new()) == NULL) in aux_get()
47 return x->aux; in aux_get()
50 int X509_alias_set1(X509 *x, const unsigned char *name, int len) in X509_alias_set1() argument
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()
67 int X509_keyid_set1(X509 *x, const unsigned char *id, int len) in X509_keyid_set1() argument
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()
85 unsigned char *X509_alias_get0(X509 *x, int *len) in X509_alias_get0() argument
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()
94 unsigned char *X509_keyid_get0(X509 *x, int *len) in X509_keyid_get0() argument
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()
103 int X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj) in X509_add1_trust_object() argument
112 if ((aux = aux_get(x)) == NULL) in X509_add1_trust_object()
124 int X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj) in X509_add1_reject_object() argument
132 if ((aux = aux_get(x)) == NULL) in X509_add1_reject_object()
146 void X509_trust_clear(X509 *x) in X509_trust_clear() argument
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()
154 void X509_reject_clear(X509 *x) in X509_reject_clear() argument
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()
162 STACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x) in STACK_OF()
164 if (x->aux != NULL) in STACK_OF()
165 return x->aux->trust; in STACK_OF()
169 STACK_OF(ASN1_OBJECT) *X509_get0_reject_objects(X509 *x) in STACK_OF()
171 if (x->aux != NULL) in STACK_OF()
172 return x->aux->reject; in STACK_OF()