summaryrefslogtreecommitdiff
path: root/Cryptlib/SysCall/CrtWrapper.c
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2017-04-07 17:14:09 +0800
committerPeter Jones <pjones@redhat.com>2017-08-31 15:14:20 -0400
commite06765ae0dbbc874ff9e04dbd0e7d82989048261 (patch)
treeab0159ba445235664c190b5a5190f882c0fce0b6 /Cryptlib/SysCall/CrtWrapper.c
parent1b5dbc4b4df297e4a351ed2b8434a9021c4041d1 (diff)
downloadefi-boot-shim-e06765ae0dbbc874ff9e04dbd0e7d82989048261.tar.gz
efi-boot-shim-e06765ae0dbbc874ff9e04dbd0e7d82989048261.zip
Cryptlib: implement strcmp() and strcasecmp()
strcmp() and strcasecmp() are widely used in openssl. Implement those two functions to eliminate the gcc warnings and the potential crash. Signed-off-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'Cryptlib/SysCall/CrtWrapper.c')
-rw-r--r--Cryptlib/SysCall/CrtWrapper.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Cryptlib/SysCall/CrtWrapper.c b/Cryptlib/SysCall/CrtWrapper.c
index 1afe319f..698e1eef 100644
--- a/Cryptlib/SysCall/CrtWrapper.c
+++ b/Cryptlib/SysCall/CrtWrapper.c
@@ -424,11 +424,6 @@ int stat (const char *c, struct stat *s)
return -1;
}
-int strcasecmp (const char *c, const char *s)
-{
- return 0;
-}
-
int strncasecmp (const char *c, const char *s, size_t l)
{
return 0;