Index: net/cert/sct_status_flags.h |
diff --git a/net/cert/sct_status_flags.h b/net/cert/sct_status_flags.h |
index 123c25c89052acf0ca3e915d57555b452b04617b..8ee4db1fd280ba3cfdc07bcf34846727a597c290 100644 |
--- a/net/cert/sct_status_flags.h |
+++ b/net/cert/sct_status_flags.h |
@@ -21,12 +21,19 @@ enum SCTVerifyStatus { |
// The SCT is from an unknown log, so we cannot verify its signature. |
SCT_STATUS_LOG_UNKNOWN = 1, |
- // The SCT is from a known log, but the signature is invalid. |
- SCT_STATUS_INVALID = 2, |
+ // SCTVerifyStatus=2 used to represent SCT_STATUS_INVALID, which has now been |
+ // split into INVALID_SIGNATURE and INVALID_TIMESTAMP to represent the |
+ // different reasons an SCT could be invalid. |
// The SCT is from a known log, and the signature is valid. |
SCT_STATUS_OK = 3, |
+ // The SCT is from a known log, but the signature is invalid. |
+ SCT_STATUS_INVALID_SIGNATURE = 4, |
+ |
+ // The SCT is from a known log, but the timestamp is in the future. |
+ SCT_STATUS_INVALID_TIMESTAMP = 5, |
+ |
// Used to bound the enum values. |
SCT_STATUS_MAX, |
Avi (use Gerrit)
2016/08/16 15:25:47
That's not how MAX works; you assign MAX to the la
Eran Messeri
2016/08/16 16:06:09
Fixed.
The discrepancy comes, I believe, from usin
|
}; |