aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-06-02 22:18:05 +0000
committerMark Johnston <markj@FreeBSD.org>2023-06-04 16:39:44 +0000
commit9d5a47e13c175adf7486956847c3d060fe059f2c (patch)
tree02b3f91a2910ee718a8551003b01447dfc876698
parentc8dbef44ffbe8d8acf33a5f20e20ca6b48beb4fa (diff)
downloadsrc-9d5a47e13c175adf7486956847c3d060fe059f2c.tar.gz
src-9d5a47e13c175adf7486956847c3d060fe059f2c.zip
ossl: Provide a fallback definition of __uint128_t when needed
This is required on i386. The patch has no functional change, since AES-GCM isn't implemented for that platform. Fixes: 9a3444d91c70 ("ossl: Add a VAES-based AES-GCM implementation for amd64") Reported by: Jenkins
-rw-r--r--sys/crypto/openssl/ossl_aes_gcm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/crypto/openssl/ossl_aes_gcm.h b/sys/crypto/openssl/ossl_aes_gcm.h
index 9ce8ee193483..cd0c1e324354 100644
--- a/sys/crypto/openssl/ossl_aes_gcm.h
+++ b/sys/crypto/openssl/ossl_aes_gcm.h
@@ -49,6 +49,10 @@ struct ossl_aes_gcm_ops {
size_t len);
};
+#ifndef __SIZEOF_INT128__
+typedef struct { uint64_t v[2]; } __uint128_t;
+#endif
+
struct ossl_gcm_context {
struct {
union {