Migrated from x509_req_name to asn1_named_data structure
This commit is contained in:
parent
c547cc992e
commit
5f45e62afe
4 changed files with 67 additions and 110 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue