OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/cert/sct_status_flags.h" |
| 6 |
| 7 namespace net { |
| 8 |
| 9 namespace ct { |
| 10 |
| 11 bool IsValidSCTStatus(uint32_t status) { |
| 12 switch (status) { |
| 13 case net::ct::SCT_STATUS_LOG_UNKNOWN: |
| 14 case net::ct::SCT_STATUS_INVALID_SIGNATURE: |
| 15 case net::ct::SCT_STATUS_OK: |
| 16 case net::ct::SCT_STATUS_INVALID_TIMESTAMP: |
| 17 return true; |
| 18 case net::ct::SCT_STATUS_NONE: |
| 19 return false; |
| 20 } |
| 21 |
| 22 return false; |
| 23 } |
| 24 |
| 25 } // namespace ct |
| 26 |
| 27 } // namespace net |
OLD | NEW |