mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
added CERT_ROOF
This commit is contained in:
parent
d7eee6e1ca
commit
387c29c62d
@ -129,7 +129,7 @@ encoding_rule_t cert_payload_encodings[] = {
|
|||||||
static status_t verify(private_cert_payload_t *this)
|
static status_t verify(private_cert_payload_t *this)
|
||||||
{
|
{
|
||||||
if ((this->cert_encoding == 0) ||
|
if ((this->cert_encoding == 0) ||
|
||||||
((this->cert_encoding >= 15) && (this->cert_encoding <= 200)))
|
((this->cert_encoding >= CERT_ROOF) && (this->cert_encoding <= 200)))
|
||||||
{
|
{
|
||||||
/* reserved IDs */
|
/* reserved IDs */
|
||||||
return FAILED;
|
return FAILED;
|
||||||
|
@ -57,7 +57,8 @@ enum cert_encoding_t {
|
|||||||
CERT_RAW_RSA_KEY = 11,
|
CERT_RAW_RSA_KEY = 11,
|
||||||
CERT_X509_HASH_AND_URL = 12,
|
CERT_X509_HASH_AND_URL = 12,
|
||||||
CERT_X509_HASH_AND_URL_BUNDLE = 13,
|
CERT_X509_HASH_AND_URL_BUNDLE = 13,
|
||||||
CERT_OCSP_CONTENT = 14 /* from RFC 4806 */
|
CERT_OCSP_CONTENT = 14, /* from RFC 4806 */
|
||||||
|
CERT_ROOF = 15
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user