Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: net/android/cert_verify_result_android_list.h

Issue 14358023: Differentiate between VERIFY_FAILED and VERIFY_INCORRECT_KEY_USAGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yep, joth was right. Hopefully this works. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file intentionally does not have header guards, it's included 5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum. 6 // inside a macro to generate enum.
7 7
8 // This file contains the list of certificate verification results returned 8 // This file contains the list of certificate verification results returned
9 // from Java side to the C++ side. 9 // from Java side to the C++ side.
10 10
11 // Certificate is trusted. 11 // Certificate is trusted.
12 CERT_VERIFY_RESULT_ANDROID(OK, 0) 12 CERT_VERIFY_RESULT_ANDROID(OK, 0)
13 13
14 // Certificate verification could not be conducted. 14 // Certificate verification could not be conducted.
15 CERT_VERIFY_RESULT_ANDROID(FAILED, -1) 15 CERT_VERIFY_RESULT_ANDROID(FAILED, -1)
16 16
17 // Certificate is not trusted due to non-trusted root of the certificate chain. 17 // Certificate is not trusted due to non-trusted root of the certificate chain.
18 CERT_VERIFY_RESULT_ANDROID(NO_TRUSTED_ROOT, -2) 18 CERT_VERIFY_RESULT_ANDROID(NO_TRUSTED_ROOT, -2)
19 19
20 // Certificate is not trusted because it has expired. 20 // Certificate is not trusted because it has expired.
21 CERT_VERIFY_RESULT_ANDROID(EXPIRED, -3) 21 CERT_VERIFY_RESULT_ANDROID(EXPIRED, -3)
22 22
23 // Certificate is not trusted because it is not valid yet. 23 // Certificate is not trusted because it is not valid yet.
24 CERT_VERIFY_RESULT_ANDROID(NOT_YET_VALID, -4) 24 CERT_VERIFY_RESULT_ANDROID(NOT_YET_VALID, -4)
25 25
26 // Certificate is not trusted because it could not be parsed. 26 // Certificate is not trusted because it could not be parsed.
27 CERT_VERIFY_RESULT_ANDROID(UNABLE_TO_PARSE, -5) 27 CERT_VERIFY_RESULT_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.
31 CERT_VERIFY_RESULT_ANDROID(INCORRECT_KEY_USAGE, -6)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698