1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 
8 
9 #ifndef _BOOT_IMAGES_VERIFIER_X509_ERROR_H
10 #define _BOOT_IMAGES_VERIFIER_X509_ERROR_H
11 
12 /*! @file
13 @brief This file contains error code definitions used for the Secure Boot and Secure Debug X509 APIs.
14 */
15 
16 #include "secureboot_error.h"
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 /*! Defines error code for invalid input parameters. */
24 #define CC_BOOT_IMG_VERIFIER_CERT_INV_PARAM                 CC_BOOT_IMG_VERIFIER_CERT_BASE_ERROR + 0x00000001
25 /*! Defines error code for invalid token. */
26 #define CC_BOOT_IMG_VERIFIER_CERT_ILLEGAL_TOKEN             CC_BOOT_IMG_VERIFIER_CERT_BASE_ERROR + 0x00000002
27 /*! Defines error code for invalid certificate type. */
28 #define CC_BOOT_IMG_VERIFIER_CERT_ILLEGAL_CERT_TYPE         CC_BOOT_IMG_VERIFIER_CERT_BASE_ERROR + 0x00000003
29 /*! Defines error code for illegal workspace size. */
30 #define CC_BOOT_IMG_VERIFIER_CERT_WSP_SIZE_TOO_SMALL        CC_BOOT_IMG_VERIFIER_CERT_BASE_ERROR + 0x00000004
31 /*! Defines error code for unsupported hash algorithm. */
32 #define CC_BOOT_IMG_VERIFIER_CERT_UNSUPPORTED_HASH_ALG          CC_BOOT_IMG_VERIFIER_CERT_BASE_ERROR + 0x00000005
33 /*! Defines error code for unsupported certificate version. */
34 #define CC_BOOT_IMG_VERIFIER_CERT_ILLEGAL_VERSION           CC_BOOT_IMG_VERIFIER_CERT_BASE_ERROR + 0x00000006
35 /*! Defines error code for illegal X509 extension size. */
36 #define CC_BOOT_IMG_VERIFIER_CERT_ILLEGAL_EXT_SIZE              CC_BOOT_IMG_VERIFIER_CERT_BASE_ERROR + 0x00000007
37 
38 
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif
45 
46 
47