mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 17:21:09 +00:00
Remove raw SubjectAltNames and ExtKeyUsage from legacy CRT struct
This commit is contained in:
parent
ea32d8ba2a
commit
4e021c8f50
|
@ -155,7 +155,6 @@ typedef struct mbedtls_x509_crt
|
|||
mbedtls_x509_buf subject_id; /**< Optional X.509 v2/v3 subject unique identifier. */
|
||||
mbedtls_x509_buf v3_ext; /**< Optional X.509 v3 extensions. */
|
||||
mbedtls_x509_sequence subject_alt_names; /**< Optional list of Subject Alternative Names (Only dNSName supported). */
|
||||
mbedtls_x509_buf_raw subject_alt_raw; /**< Raw data for SubjectAlternativeNames extension. */
|
||||
|
||||
int ext_types; /**< Bit string containing detected and parsed extensions */
|
||||
int ca_istrue; /**< Optional Basic Constraint extension value: 1 if this certificate belongs to a CA, 0 otherwise. */
|
||||
|
@ -164,7 +163,6 @@ typedef struct mbedtls_x509_crt
|
|||
unsigned int key_usage; /**< Optional key usage extension value: See the values in x509.h */
|
||||
|
||||
mbedtls_x509_sequence ext_key_usage; /**< Optional list of extended key usage OIDs. */
|
||||
mbedtls_x509_buf_raw ext_key_usage_raw; /**< Raw data of ExtendedKeyUsage extensions. */
|
||||
|
||||
unsigned char ns_cert_type; /**< Optional Netscape certificate type extension value: See the values in x509.h */
|
||||
|
||||
|
|
|
@ -136,8 +136,6 @@ int mbedtls_x509_crt_cache_provide_frame( mbedtls_x509_crt const *crt )
|
|||
frame->sig.len = crt->sig.len;
|
||||
frame->v3_ext.p = crt->v3_ext.p;
|
||||
frame->v3_ext.len = crt->v3_ext.len;
|
||||
frame->subject_alt_raw = crt->subject_alt_raw;
|
||||
frame->ext_key_usage_raw = crt->ext_key_usage_raw;
|
||||
frame->issuer_raw_with_hdr.p = crt->issuer_raw.p;
|
||||
frame->issuer_raw_with_hdr.len = crt->issuer_raw.len;
|
||||
frame->subject_raw_with_hdr.p = crt->subject_raw.p;
|
||||
|
@ -1467,8 +1465,6 @@ static int x509_crt_parse_der_core( mbedtls_x509_crt *crt,
|
|||
crt->subject_id.len = frame->subject_id.len;
|
||||
crt->pk_raw.p = frame->pubkey_raw.p;
|
||||
crt->pk_raw.len = frame->pubkey_raw.len;
|
||||
crt->ext_key_usage_raw = frame->ext_key_usage_raw;
|
||||
crt->subject_alt_raw = frame->subject_alt_raw;
|
||||
crt->sig.p = frame->sig.p;
|
||||
crt->sig.len = frame->sig.len;
|
||||
crt->valid_from = frame->valid_from;
|
||||
|
|
Loading…
Reference in a new issue