Migrated from x509_req_name to asn1_named_data structure

This commit is contained in:
Paul Bakker 2013-09-09 12:02:36 +02:00
parent c547cc992e
commit 5f45e62afe
4 changed files with 67 additions and 110 deletions

View file

@ -60,25 +60,13 @@ extern "C" {
* \{
*/
/**
* Container for CSR named objects
*/
typedef struct _x509_req_name
{
char oid[128];
char name[128];
struct _x509_req_name *next;
}
x509_req_name;
/**
* Container for a CSR
*/
typedef struct _x509_csr
{
rsa_context *rsa;
x509_req_name *subject;
asn1_named_data *subject;
md_type_t md_alg;
asn1_named_data *extensions;
}
@ -100,8 +88,8 @@ typedef struct _x509write_cert
mpi serial;
rsa_context *subject_key;
rsa_context *issuer_key;
x509_req_name *subject;
x509_req_name *issuer;
asn1_named_data *subject;
asn1_named_data *issuer;
md_type_t md_alg;
char not_before[X509_RFC5280_UTC_TIME_LEN + 1];
char not_after[X509_RFC5280_UTC_TIME_LEN + 1];