cert: move platform_oid.h to include/tools_share for all platforms
Platforms aligned with TBBR are supposed to use their own OIDs, but
defining the same macros with different OIDs does not provide any
value (at least technically).

For easier use of TBBR, this commit allows platforms to reuse the OIDs
obtained by ARM Ltd.  This will be useful for non-ARM vendors that
do not need their own extension fields in their certificate files.

The OIDs of ARM Ltd. have been moved to include/tools_share/tbbr_oid.h

Platforms can include <tbbr_oid.h> instead of <platform_oid.h> by
defining USE_TBBR_DEFS as 1.  USE_TBBR_DEFS is 0 by default to keep the
backward compatibility.

For clarification, I inserted a blank line between headers from the
include/ directory (#include <...>) and ones from a local directory
(#include "..." ).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 2a6c1a8 commit bb41eb7a9dc3e3b31df2e20237a2bcf1a3cae72a
@Masahiro Yamada Masahiro Yamada authored on 21 May 2017
Showing 14 changed files
View
Makefile
View
docs/user-guide.md
View
drivers/auth/tbbr/tbbr_cot.c
View
include/plat/arm/board/common/board_arm_oid.h 100644 → 0
View
include/tools_share/tbbr_oid.h 0 → 100644
View
make_helpers/defaults.mk
View
plat/arm/board/fvp/include/platform_oid.h
View
plat/arm/board/juno/include/platform_oid.h
View
plat/common/tbbr/plat_tbbr.c
View
tools/cert_create/Makefile
View
tools/cert_create/src/cert.c
View
tools/cert_create/src/key.c
View
tools/cert_create/src/main.c
View
tools/cert_create/src/tbbr/tbb_ext.c