added CERT_ROOF

This commit is contained in:
Andreas Steffen 2007-03-23 22:01:40 +00:00
parent d7eee6e1ca
commit 387c29c62d
2 changed files with 3 additions and 2 deletions

View File

@ -129,7 +129,7 @@ encoding_rule_t cert_payload_encodings[] = {
static status_t verify(private_cert_payload_t *this)
{
if ((this->cert_encoding == 0) ||
((this->cert_encoding >= 15) && (this->cert_encoding <= 200)))
((this->cert_encoding >= CERT_ROOF) && (this->cert_encoding <= 200)))
{
/* reserved IDs */
return FAILED;

View File

@ -57,7 +57,8 @@ enum cert_encoding_t {
CERT_RAW_RSA_KEY = 11,
CERT_X509_HASH_AND_URL = 12,
CERT_X509_HASH_AND_URL_BUNDLE = 13,
CERT_OCSP_CONTENT = 14 /* from RFC 4806 */
CERT_OCSP_CONTENT = 14, /* from RFC 4806 */
CERT_ROOF = 15
};
/**