summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/cryptlib.c
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2014-07-09 15:02:50 +0800
committerPeter Jones <pjones@redhat.com>2014-07-14 09:03:36 -0400
commit76f8050ff6003e6048fdc4430d8b503aff934255 (patch)
treeb82d269a6f732af91e6b599003888d8b10a13bf2 /Cryptlib/OpenSSL/crypto/cryptlib.c
parente5f161147de6bea68e09f33bc294c6ab644d9a78 (diff)
downloadefi-boot-shim-76f8050ff6003e6048fdc4430d8b503aff934255.tar.gz
efi-boot-shim-76f8050ff6003e6048fdc4430d8b503aff934255.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