openssl/crypto/objects
David Woodhouse 2d51c28ff7 RT4335: Fix UEFI build of OBJ_NAME_new_index()
We are using strcmp() as the cmp_func, where in the EDK2 environment
strcmp actually ends up being the external AsciiStrCmp() function —
an EFI library function defined with the Microsoft ABI.

This means that we can't just assign function pointers to it, since
in GCC-hosted builds the ABI of any function *not* explicitly marked
EFIAPI is the native SysV ABI.

Arguably this stupidity ought to be resolved on the UEFI side, but in
the general case that would mean that we need to provide ABI-compatible
wrappers for *all* the "standard" functions, just in case they're used
like this.

And in fact we already have a workaround here for DEC C. So instead of
playing games with casting function pointers, it's nicer just to use a
simple function to wrap the strcmp() call. That cleans up the DEC C
workaround, *and* it works around the UEFI bogosity at the same time.

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-02-26 11:03:28 -05:00
..
build.info unified build scheme: add build.info files 2016-02-01 12:46:58 +01:00
Makefile.in Always build library object files with shared library cflags 2016-02-20 16:51:31 +01:00
o_names.c RT4335: Fix UEFI build of OBJ_NAME_new_index() 2016-02-26 11:03:28 -05:00
obj_dat.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
obj_dat.h update OID tables 2016-02-04 14:10:52 +00:00
obj_dat.pl Perl's chop / chomp considered bad, use a regexp instead 2016-02-11 22:11:48 +01:00
obj_err.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
obj_lcl.h Use ossl_inline and DEFINE_LHASH_OF 2016-01-11 17:50:42 +00:00
obj_lib.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
obj_mac.num update OID tables 2016-02-04 14:10:52 +00:00
obj_xref.c Remove /* foo.c */ comments 2016-01-26 16:40:43 -05:00
obj_xref.h Only declare stacks in headers 2016-01-07 18:00:51 +00:00
obj_xref.txt Add new GOST OIDs 2015-08-17 15:34:30 +01:00
objects.pl Perl's chop / chomp considered bad, use a regexp instead 2016-02-11 22:11:48 +01:00
objects.README RT3230: Better test for C identifier 2015-06-02 17:16:54 -04:00
objects.txt Add Curve OIDs from draft-josefsson-pkix-newcurves 2016-02-04 14:08:34 +00:00
objxref.pl Perl's chop / chomp considered bad, use a regexp instead 2016-02-11 22:11:48 +01:00