Lines Matching refs:x
121 long X509_ACERT_get_version(const X509_ACERT *x) in X509_ACERT_get_version() argument
123 return ASN1_INTEGER_get(&x->acinfo->version); in X509_ACERT_get_version()
126 void X509_ACERT_get0_signature(const X509_ACERT *x, in X509_ACERT_get0_signature() argument
131 *psig = &x->signature; in X509_ACERT_get0_signature()
133 *palg = &x->sig_alg; in X509_ACERT_get0_signature()
136 int X509_ACERT_get_signature_nid(const X509_ACERT *x) in X509_ACERT_get_signature_nid() argument
138 return OBJ_obj2nid(x->sig_alg.algorithm); in X509_ACERT_get_signature_nid()
141 const GENERAL_NAMES *X509_ACERT_get0_holder_entityName(const X509_ACERT *x) in X509_ACERT_get0_holder_entityName() argument
143 return x->acinfo->holder.entityName; in X509_ACERT_get0_holder_entityName()
146 const OSSL_ISSUER_SERIAL *X509_ACERT_get0_holder_baseCertId(const X509_ACERT *x) in X509_ACERT_get0_holder_baseCertId() argument
148 return x->acinfo->holder.baseCertificateID; in X509_ACERT_get0_holder_baseCertId()
151 const OSSL_OBJECT_DIGEST_INFO *X509_ACERT_get0_holder_digest(const X509_ACERT *x) in X509_ACERT_get0_holder_digest() argument
153 return x->acinfo->holder.objectDigestInfo; in X509_ACERT_get0_holder_digest()
156 const X509_NAME *X509_ACERT_get0_issuerName(const X509_ACERT *x) in X509_ACERT_get0_issuerName() argument
158 if (x->acinfo->issuer.type != X509_ACERT_ISSUER_V2 in X509_ACERT_get0_issuerName()
159 || x->acinfo->issuer.u.v2Form == NULL) in X509_ACERT_get0_issuerName()
162 return get_dirName(x->acinfo->issuer.u.v2Form->issuerName); in X509_ACERT_get0_issuerName()
165 const ASN1_BIT_STRING *X509_ACERT_get0_issuerUID(const X509_ACERT *x) in X509_ACERT_get0_issuerUID() argument
167 return x->acinfo->issuerUID; in X509_ACERT_get0_issuerUID()
170 const X509_ALGOR *X509_ACERT_get0_info_sigalg(const X509_ACERT *x) in X509_ACERT_get0_info_sigalg() argument
172 return &x->acinfo->signature; in X509_ACERT_get0_info_sigalg()
175 const ASN1_INTEGER *X509_ACERT_get0_serialNumber(const X509_ACERT *x) in X509_ACERT_get0_serialNumber() argument
177 return &x->acinfo->serialNumber; in X509_ACERT_get0_serialNumber()
180 const ASN1_GENERALIZEDTIME *X509_ACERT_get0_notBefore(const X509_ACERT *x) in X509_ACERT_get0_notBefore() argument
182 return x->acinfo->validityPeriod.notBefore; in X509_ACERT_get0_notBefore()
185 const ASN1_GENERALIZEDTIME *X509_ACERT_get0_notAfter(const X509_ACERT *x) in X509_ACERT_get0_notAfter() argument
187 return x->acinfo->validityPeriod.notAfter; in X509_ACERT_get0_notAfter()
192 int X509_ACERT_get_attr_count(const X509_ACERT *x) in X509_ACERT_get_attr_count() argument
194 return X509at_get_attr_count(x->acinfo->attributes); in X509_ACERT_get_attr_count()
197 int X509_ACERT_get_attr_by_NID(const X509_ACERT *x, int nid, int lastpos) in X509_ACERT_get_attr_by_NID() argument
199 return X509at_get_attr_by_NID(x->acinfo->attributes, nid, lastpos); in X509_ACERT_get_attr_by_NID()
202 int X509_ACERT_get_attr_by_OBJ(const X509_ACERT *x, const ASN1_OBJECT *obj, in X509_ACERT_get_attr_by_OBJ() argument
205 return X509at_get_attr_by_OBJ(x->acinfo->attributes, obj, lastpos); in X509_ACERT_get_attr_by_OBJ()
208 X509_ATTRIBUTE *X509_ACERT_get_attr(const X509_ACERT *x, int loc) in X509_ACERT_get_attr() argument
210 return X509at_get_attr(x->acinfo->attributes, loc); in X509_ACERT_get_attr()
213 X509_ATTRIBUTE *X509_ACERT_delete_attr(X509_ACERT *x, int loc) in X509_ACERT_delete_attr() argument
215 return X509at_delete_attr(x->acinfo->attributes, loc); in X509_ACERT_delete_attr()
218 int X509_ACERT_add1_attr(X509_ACERT *x, X509_ATTRIBUTE *attr) in X509_ACERT_add1_attr() argument
220 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr()
225 int X509_ACERT_add1_attr_by_OBJ(X509_ACERT *x, const ASN1_OBJECT *obj, in X509_ACERT_add1_attr_by_OBJ() argument
228 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr_by_OBJ()
233 int X509_ACERT_add1_attr_by_NID(X509_ACERT *x, int nid, int type, in X509_ACERT_add1_attr_by_NID() argument
236 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr_by_NID()
241 int X509_ACERT_add1_attr_by_txt(X509_ACERT *x, const char *attrname, int type, in X509_ACERT_add1_attr_by_txt() argument
244 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr_by_txt()
314 void *X509_ACERT_get_ext_d2i(const X509_ACERT *x, int nid, int *crit, int *idx) in X509_ACERT_get_ext_d2i() argument
316 return X509V3_get_d2i(x->acinfo->extensions, nid, crit, idx); in X509_ACERT_get_ext_d2i()
319 int X509_ACERT_add1_ext_i2d(X509_ACERT *x, int nid, void *value, int crit, in X509_ACERT_add1_ext_i2d() argument
322 return X509V3_add1_i2d(&x->acinfo->extensions, nid, value, crit, flags); in X509_ACERT_add1_ext_i2d()
325 const STACK_OF(X509_EXTENSION) *X509_ACERT_get0_extensions(const X509_ACERT *x) in STACK_OF()
327 return x->acinfo->extensions; in STACK_OF()