Skip to content

Commit

Permalink
Turn on OCSP functionality for AWS-LC (#3058)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 authored Sep 21, 2021
1 parent baa2f5b commit 279a749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tls/s2n_x509_validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <openssl/asn1.h>
#include <openssl/x509.h>

#if !defined(OPENSSL_IS_BORINGSSL) && !defined(OPENSSL_IS_AWSLC)
#if !defined(OPENSSL_IS_BORINGSSL)
#include <openssl/ocsp.h>
#endif

Expand Down
6 changes: 3 additions & 3 deletions tls/s2n_x509_validator.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

#include <openssl/x509v3.h>

/* one day, BoringSSL/AWS-LC, may add ocsp stapling support. Let's future proof this a bit by grabbing a definition
/* one day, BoringSSL may add ocsp stapling support. Let's future proof this a bit by grabbing a definition
* that would have to be there when they add support */
#if (defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_AWSLC)) && !defined(OCSP_RESPONSE_STATUS_SUCCESSFUL)
#if defined(OPENSSL_IS_BORINGSSL) && !defined(OCSP_RESPONSE_STATUS_SUCCESSFUL)
#define S2N_OCSP_STAPLING_SUPPORTED 0
#else
#define S2N_OCSP_STAPLING_SUPPORTED 1
#endif /* (defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_AWSLC)) && !defined(OCSP_RESPONSE_STATUS_SUCCESSFUL) */
#endif /* defined(OPENSSL_IS_BORINGSSL) && !defined(OCSP_RESPONSE_STATUS_SUCCESSFUL) */

typedef enum {
S2N_CERT_OK = 0,
Expand Down

0 comments on commit 279a749

Please sign in to comment.