|
29 | 29 | /*
|
30 | 30 | * Macro to generate mbedtls_oid_descriptor_t
|
31 | 31 | */
|
32 |
| -#if !defined(MBEDTLS_X509_REMOVE_INFO) |
| 32 | +#if 1 /* OID_INFO_STRINGS */ |
33 | 33 | #define OID_DESCRIPTOR(s, name, description) { ADD_LEN(s), name, description }
|
34 | 34 | #define NULL_OID_DESCRIPTOR { NULL, 0, NULL, NULL }
|
35 | 35 | #else
|
36 | 36 | #define OID_DESCRIPTOR(s, name, description) { ADD_LEN(s) }
|
37 | 37 | #define NULL_OID_DESCRIPTOR { NULL, 0 }
|
38 |
| -#endif |
| 38 | +#endif /* OID_INFO_STRINGS */ |
39 | 39 |
|
40 | 40 | /*
|
41 | 41 | * Macro to generate an internal function for oid_XXX_from_asn1() (used by
|
|
60 | 60 | return NULL; \
|
61 | 61 | }
|
62 | 62 |
|
63 |
| -#if !defined(MBEDTLS_X509_REMOVE_INFO) |
| 63 | +#if 1 /* OID_INFO_STRINGS */ |
64 | 64 | /*
|
65 | 65 | * Macro to generate a function for retrieving a single attribute from the
|
66 | 66 | * descriptor of an mbedtls_oid_descriptor_t wrapper.
|
|
73 | 73 | *ATTR1 = data->descriptor.ATTR1; \
|
74 | 74 | return 0; \
|
75 | 75 | }
|
76 |
| -#endif /* MBEDTLS_X509_REMOVE_INFO */ |
| 76 | +#endif /* OID_INFO_STRINGS */ |
77 | 77 |
|
78 | 78 | /*
|
79 | 79 | * Macro to generate a function for retrieving a single attribute from an
|
@@ -327,7 +327,7 @@ static const oid_x509_ext_t oid_x509_ext[] =
|
327 | 327 | FN_OID_TYPED_FROM_ASN1(oid_x509_ext_t, x509_ext, oid_x509_ext)
|
328 | 328 | FN_OID_GET_ATTR1(mbedtls_oid_get_x509_ext_type, oid_x509_ext_t, x509_ext, int, ext_type)
|
329 | 329 |
|
330 |
| -#if !defined(MBEDTLS_X509_REMOVE_INFO) |
| 330 | +#if 1 /* OID_INFO_STRINGS */ |
331 | 331 | static const mbedtls_oid_descriptor_t oid_ext_key_usage[] =
|
332 | 332 | {
|
333 | 333 | OID_DESCRIPTOR(MBEDTLS_OID_SERVER_AUTH,
|
@@ -365,7 +365,7 @@ FN_OID_GET_ATTR1(mbedtls_oid_get_certificate_policies,
|
365 | 365 | certificate_policies,
|
366 | 366 | const char *,
|
367 | 367 | description)
|
368 |
| -#endif /* MBEDTLS_X509_REMOVE_INFO */ |
| 368 | +#endif /* OID_INFO_STRINGS */ |
369 | 369 |
|
370 | 370 | /*
|
371 | 371 | * For SignatureAlgorithmIdentifier
|
@@ -472,13 +472,13 @@ static const oid_sig_alg_t oid_sig_alg[] =
|
472 | 472 |
|
473 | 473 | FN_OID_TYPED_FROM_ASN1(oid_sig_alg_t, sig_alg, oid_sig_alg)
|
474 | 474 |
|
475 |
| -#if !defined(MBEDTLS_X509_REMOVE_INFO) |
| 475 | +#if 1 /* OID_INFO_STRINGS */ |
476 | 476 | FN_OID_GET_DESCRIPTOR_ATTR1(mbedtls_oid_get_sig_alg_desc,
|
477 | 477 | oid_sig_alg_t,
|
478 | 478 | sig_alg,
|
479 | 479 | const char *,
|
480 | 480 | description)
|
481 |
| -#endif |
| 481 | +#endif /* OID_INFO_STRINGS */ |
482 | 482 |
|
483 | 483 | FN_OID_GET_ATTR2(mbedtls_oid_get_sig_alg,
|
484 | 484 | oid_sig_alg_t,
|
|
0 commit comments