|
API Documentation |
|
Functions to get information |
|
#define PEM_read_X509AC(fp,x,cb,u) (X509AC *)PEM_ASN1_read( \ (char *(*)())d2i_X509AC,PEM_STRING_X509AC,fp,(char **)x,cb,u) |
|
|
|
|
X509AC_ISSUER_SERIAL* X509_get_basecertID(X509 *x) |
|
|
|
|
X509_NAME *X509AC_get_issuer_name(X509AC *a) |
|
|
|
|
X509_NAME *X509AC_get_holder_entity_name(X509AC *a) |
|
|
|
|
X509AC_ISSUER_SERIAL *X509AC_get_holder_baseCertID(X509AC *a) |
|
|
|
|
ASN1_BIT_STRING *X509AC_get_holder_objectDigestInfo(X509AC *a) |
|
|
|
|
X509AC_ISSUER_SERIAL *X509AC_get_issuer_baseCertID(X509AC *a) |
|
|
|
|
ASN1_BIT_STRING *X509AC_get_issuer_objectDigestInfo(X509AC *a) |
|
|
|
|
long X509AC_get_version(X509AC *a); int X509AC_set_version(X509AC *a, long version) |
|
|
|
|
Functions to set information |
|
int X509AC_set_holder_entity_name(X509AC* a, X509_NAME *name) |
|
|
|
|
int X509AC_set_holder_serialNumber(X509AC *x, ASN1_INTEGER *serial) |
|
|
|
|
int X509AC_set_holder_name(X509AC* a, X509_NAME *name) |
|
|
|
|
int X509AC_set_holder_objectDigestInfo(X509AC *a, X509AC_OBJECT_DIGESTINFO *odig) |
|
|
|
|
int X509AC_set_holder_baseCertID(X509AC* a, X509AC_ISSUER_SERIAL *bci) |
|
|
|
|
int X509AC_set_issuer_baseCertID(X509AC* a, X509AC_ISSUER_SERIAL *bci) |
|
|
|
|
int X509AC_set_issuer_name(X509AC* a, X509_NAME *name) |
|
|
|
|
General tools to fill up some of the necessary structures: |
|
int X509AC_set_GENERAL_NAME_name(GENERAL_NAMES *gens, X509_NAME *name) |
|
|
|
|
int X509AC_set_baseCertID_name(X509AC_ISSUER_SERIAL *bci, X509_NAME *name) |
|
|
|
|
int X509AC_set_baseCertID_serial(X509AC_ISSUER_SERIAL *bci, ASN1_INTEGER *serial) |
|
|
|
|
int X509AC_set_baseCertID_issuerUniqueID(X509AC_ISSUER_SERIAL *bci, ASN1_BIT_STRING *uid) |
|
|
|
|
Attribute functions |
|
X509_ATTRIBUTE * X509AC_get_attr( X509AC *a, int idx ) |
|
|
|
|
int X509AC_add_attribute_by_NID(X509AC *a, int nid, int atrtype, void *value) |
|
|
|
|
int X509AC_add_attribute(X509AC *a, X509_ATTRIBUTE *attr); int X509AC_add_X509_ATTRIBUTE(X509AC *a, X509_ATTRIBUTE *attr) |
|
|
|
|
ASN1_TYPE *X509AC_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx) |
|
|
|
|
void *X509AC_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int atrtype, void *data) |
|
|
|
|
int X509AC_get_attributecount(X509AC *a) |
|
|
|
|
Extensions |
|
int X509AC_add_extension(X509AC *a, X509_EXTENSION *ex, int loc) |
|
|
|
|
Signature |
|
int X509AC_sign_rsa(X509AC *a, RSA *rsa, EVP_MD *md); int X509AC_sign_pkey(X509AC *a, EVP_PKEY *pkey, EVP_MD *md) |
|
|
|
|
Presentation |
|
void X509AC_print(X509AC *ac) |
|
|
|
|
int GENERAL_NAMES_print(FILE *out, GENERAL_NAMES *gens) |
|
|
|
|
int GENERAL_NAME_print(FILE *out, GENERAL_NAME *gen) |
|
|
|
|
Misc |
|
int X509AC_X509_NAME_dup(X509_NAME **xn, X509_NAME *name) |
|
|
|
|
Support for RFC3281 attributes |
|
xxx* xxx_new(); xxx* xxx_dup(xxx*); void xxx_free(xxx*); d2i_xxx(...); i2d_xxx(...); |
|
|
|
|
X509attr_xxx_add_value(...) |
|
|
|