]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Fri, 2 Aug 2019 18:07:19 +0000 (11:07 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 2 Aug 2019 18:07:19 +0000 (11:07 -0700)
open-vm-tools/lib/include/sha1.h

index 02ae8be922cda593c134534c483f3cbd2470402a..de4242694ff201104f49478f022d023f1ff0593c 100644 (file)
@@ -143,11 +143,11 @@ void SHA1MultiBuffer(uint32 numBuffers,
 #if !defined VMKBOOT && !defined VMKERNEL
 
 /* Opaque handle */
-typedef struct {
-#if defined __APPLE__
-   uint8 _private[96];  // sizeof CC_SHA1_CTX
-#else
+typedef union {
    void *_private;
+#if defined __APPLE__
+   uint8 _pad[104 + 8];  // sizeof CC_SHA256_CTX + extra field,
+                         // where SHA256 is largest CTX
 #endif
 } CryptoHash_SHA1_CTX;