|
20 | 20 | // However, due to conflicts, some deprecated symbols are defined here.
|
21 | 21 | #include <openssl/x509.h>
|
22 | 22 |
|
| 23 | + |
| 24 | +// CRL reason constants. |
| 25 | + |
| 26 | +// TODO(davidben): These constants live here because strongswan defines |
| 27 | +// conflicting symbols and has been relying on them only being defined in |
| 28 | +// <openssl/x509v3.h>. Defining the constants in <openssl/x509.h> would break |
| 29 | +// strongswan, but we would also like for new code to only need |
| 30 | +// <openssl/x509.h>. Introduce properly namespaced versions of these constants |
| 31 | +// and, separately, see if we can fix strongswan to similarly avoid the |
| 32 | +// conflict. Between OpenSSL, strongswan, and wincrypt.h all defining these |
| 33 | +// constants, it seems best for everyone to just avoid them going forward. |
| 34 | +#define CRL_REASON_NONE (-1) |
| 35 | +#define CRL_REASON_UNSPECIFIED 0 |
| 36 | +#define CRL_REASON_KEY_COMPROMISE 1 |
| 37 | +#define CRL_REASON_CA_COMPROMISE 2 |
| 38 | +#define CRL_REASON_AFFILIATION_CHANGED 3 |
| 39 | +#define CRL_REASON_SUPERSEDED 4 |
| 40 | +#define CRL_REASON_CESSATION_OF_OPERATION 5 |
| 41 | +#define CRL_REASON_CERTIFICATE_HOLD 6 |
| 42 | +#define CRL_REASON_REMOVE_FROM_CRL 8 |
| 43 | +#define CRL_REASON_PRIVILEGE_WITHDRAWN 9 |
| 44 | +#define CRL_REASON_AA_COMPROMISE 10 |
| 45 | + |
| 46 | + |
23 | 47 | // Deprecated constants.
|
24 | 48 |
|
25 | 49 | // The following constants are legacy aliases for |X509v3_KU_*|. They are
|
|
0 commit comments