aboutsummaryrefslogtreecommitdiff
path: root/libstb/status_codes.h
blob: 0f5e1a52f7a228fc280ef266fe35c73639680a39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: Apache-2.0
/* Copyright 2013-2016 IBM Corp. */

#ifndef __STB_STATUS_CODES_H
#define __STB_STATUS_CODES_H

/*  general return codes */
#define STB_ERROR		-1
#define STB_ARG_ERROR		-2
#define STB_DRIVER_ERROR	-3

/* secure boot */
#define STB_SECURE_MODE_DISABLED	 100
#define STB_VERIFY_FAILED  		-100

/* trusted boot */
#define STB_TRUSTED_MODE_DISABLED	 200
#define STB_MEASURE_FAILED		-200

/* TPM */
#define STB_NO_TPM_INITIALIZED	 300
#define STB_TPM_OVERFLOW	-300
#define STB_TPM_TIMEOUT	-301

#endif /* __STB_STATUS_CODES_H */