summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/cryptlib.c
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2014-07-14 09:03:36 -0400
committerPeter Jones <pjones@redhat.com>2014-07-14 09:03:36 -0400
commitf9368474dd80b630adf745314b0336c16a35b0ad (patch)
treeb82d269a6f732af91e6b599003888d8b10a13bf2 /Cryptlib/OpenSSL/crypto/cryptlib.c
parent875eb1b9d501d853b2c44f86a32a51b59f85eef9 (diff)
downloadefi-boot-shim-f9368474dd80b630adf745314b0336c16a35b0ad.tar.gz
efi-boot-shim-f9368474dd80b630adf745314b0336c16a35b0ad.zip
Update openssl to 0.9.8za
Also update to Tiano Cryptlib r15638
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/cryptlib.c')
-rwxr-xr-xCryptlib/OpenSSL/crypto/cryptlib.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/Cryptlib/OpenSSL/crypto/cryptlib.c b/Cryptlib/OpenSSL/crypto/cryptlib.c
index dd74ea88..dec3286f 100755
--- a/Cryptlib/OpenSSL/crypto/cryptlib.c
+++ b/Cryptlib/OpenSSL/crypto/cryptlib.c
@@ -542,3 +542,19 @@ void OpenSSLDie(const char *file,int line,const char *assertion)
}
void *OPENSSL_stderr(void) { return stderr; }
+
+#ifndef OPENSSL_FIPS
+
+int CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len)
+ {
+ size_t i;
+ const unsigned char *a = in_a;
+ const unsigned char *b = in_b;
+ unsigned char x = 0;
+
+ for (i = 0; i < len; i++)
+ x |= a[i] ^ b[i];
+
+ return x;
+ }
+#endif