diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2015-09-09 15:29:44 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-09-09 18:28:13 -0400 |
commit | 05d7bf6c5b729b88992b5474c21a24aa542f6e75 (patch) | |
tree | 72ea65c85ab1fedadc2474905175e8da9b559eef /crypto/x509v3 | |
parent | 84d90cf335209e6c1dcb5124d2ddf14ea617212f (diff) |
RT3992: Make SCT #ifdeffable.
This code does open-coded division on 64-bit quantities and thus when
building with GCC on 32-bit platforms will require functions such as
__umoddi3 and __udivdi3 from libgcc.
In constrained environments such as firmware, those functions may not
be available. So make it possible to compile out SCT support, which in
fact (in the case of UEFI) we don't need anyway.
Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/ext_dat.h | 2 | ||||
-rw-r--r-- | crypto/x509v3/v3_scts.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/crypto/x509v3/ext_dat.h b/crypto/x509v3/ext_dat.h index 9c3529b1ce..76be62103d 100644 --- a/crypto/x509v3/ext_dat.h +++ b/crypto/x509v3/ext_dat.h @@ -127,8 +127,10 @@ static const X509V3_EXT_METHOD *standard_exts[] = { &v3_idp, &v3_alt[2], &v3_freshest_crl, +#ifndef OPENSSL_NO_SCT &v3_ct_scts[0], &v3_ct_scts[1], +#endif }; /* Number of standard extensions */ diff --git a/crypto/x509v3/v3_scts.c b/crypto/x509v3/v3_scts.c index 61e5a83b68..0ffdfb84b5 100644 --- a/crypto/x509v3/v3_scts.c +++ b/crypto/x509v3/v3_scts.c @@ -61,6 +61,7 @@ #include <openssl/asn1.h> #include <openssl/x509v3.h> +#ifndef OPENSSL_NO_SCT /* Signature and hash algorithms from RFC 5246 */ #define TLSEXT_hash_sha256 4 @@ -321,3 +322,4 @@ static int i2r_SCT_LIST(X509V3_EXT_METHOD *method, STACK_OF(SCT) *sct_list, return 1; } +#endif |