Skip to content

Commit

Permalink
tls.c cert attribute formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ablanken authored and ablanken-equinox committed Oct 18, 2024
1 parent b08021c commit e7b2f12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2930,22 +2930,22 @@ static ocsp_status_t ocsp_check(REQUEST *request, X509_STORE *store, X509 *issue
*/
static char const *cert_attr_names[10][2] = {
{ "TLS-Client-Cert-Serial", "TLS-Cert-Serial" },
{ "TLS-Client-Cert-Expiration", "TLS-Cert-Expiration" },
{ "TLS-Client-Cert-Subject", "TLS-Cert-Subject" },
{ "TLS-Client-Cert-Expiration", "TLS-Cert-Expiration" },
{ "TLS-Client-Cert-Subject", "TLS-Cert-Subject" },
{ "TLS-Client-Cert-Issuer", "TLS-Cert-Issuer" },
{ "TLS-Client-Cert-Common-Name", "TLS-Cert-Common-Name" },
{ "TLS-Client-Cert-Common-Name", "TLS-Cert-Common-Name" },
{ "TLS-Client-Cert-Subject-Alt-Name-Email", "TLS-Cert-Subject-Alt-Name-Email" },
{ "TLS-Client-Cert-Subject-Alt-Name-Dns", "TLS-Cert-Subject-Alt-Name-Dns" },
{ "TLS-Client-Cert-Subject-Alt-Name-Upn", "TLS-Cert-Subject-Alt-Name-Upn" },
{ "TLS-Client-Cert-Subject-Alt-Name-Uri", "TLS-Cert-Subject-Alt-Name-Uri" },
{ "TLS-Client-Cert-Valid-Since", "TLS-Cert-Valid-Since" }
{ "TLS-Client-Cert-Valid-Since", "TLS-Cert-Valid-Since" }
};

#define FR_TLS_SERIAL (0)
#define FR_TLS_EXPIRATION (1)
#define FR_TLS_SUBJECT (2)
#define FR_TLS_ISSUER (3)
#define FR_TLS_CN (4)
#define FR_TLS_CN (4)
#define FR_TLS_SAN_EMAIL (5)
#define FR_TLS_SAN_DNS (6)
#define FR_TLS_SAN_UPN (7)
Expand Down

0 comments on commit e7b2f12

Please sign in to comment.