blob: be7cec7eb9670fd8ec59de720bbbf9354f665496 [file] [log] [blame]
Torne (Richard Coles)5d1f7b12014-02-21 12:16:55 +00001// Copyright 2014 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// This file intentionally does not have header guards, it's included
6// inside a macro to generate enum values.
7
8// This file contains the list of certificate verification results returned
9// from Java side to the C++ side.
10
11// Certificate is trusted.
12CERT_VERIFY_STATUS_ANDROID(OK, 0)
13
14// Certificate verification could not be conducted.
15CERT_VERIFY_STATUS_ANDROID(FAILED, -1)
16
17// Certificate is not trusted due to non-trusted root of the certificate chain.
18CERT_VERIFY_STATUS_ANDROID(NO_TRUSTED_ROOT, -2)
19
20// Certificate is not trusted because it has expired.
21CERT_VERIFY_STATUS_ANDROID(EXPIRED, -3)
22
23// Certificate is not trusted because it is not valid yet.
24CERT_VERIFY_STATUS_ANDROID(NOT_YET_VALID, -4)
25
26// Certificate is not trusted because it could not be parsed.
27CERT_VERIFY_STATUS_ANDROID(UNABLE_TO_PARSE, -5)
28
29// Certificate is not trusted because it has an extendedKeyUsage field, but
30// its value is not correct for a web server.
31CERT_VERIFY_STATUS_ANDROID(INCORRECT_KEY_USAGE, -6)