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

Side by Side Diff: net/third_party/mozilla_security_manager/nsNSSCertTrust.cpp

Issue 3104022: Move nsNSSCertTrust from chrome/third_party to net/third_party. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: header order Created 10 years, 4 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
« no previous file with comments | « net/third_party/mozilla_security_manager/nsNSSCertTrust.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 3 *
4 * The contents of this file are subject to the Mozilla Public License Version 4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with 5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at 6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
8 * 8 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 18 matching lines...) Expand all
29 * of those above. If you wish to allow use of your version of this file only 29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to 30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your 31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice 32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete 33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under 34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL. 35 * the terms of any one of the MPL, the GPL or the LGPL.
36 * 36 *
37 * ***** END LICENSE BLOCK ***** */ 37 * ***** END LICENSE BLOCK ***** */
38 38
39 #include "chrome/third_party/mozilla_security_manager/nsNSSCertTrust.h" 39 #include "net/third_party/mozilla_security_manager/nsNSSCertTrust.h"
40
41 namespace mozilla_security_manager {
40 42
41 void 43 void
42 nsNSSCertTrust::AddCATrust(PRBool ssl, PRBool email, PRBool objSign) 44 nsNSSCertTrust::AddCATrust(PRBool ssl, PRBool email, PRBool objSign)
43 { 45 {
44 if (ssl) { 46 if (ssl) {
45 addTrust(&mTrust.sslFlags, CERTDB_TRUSTED_CA); 47 addTrust(&mTrust.sslFlags, CERTDB_TRUSTED_CA);
46 addTrust(&mTrust.sslFlags, CERTDB_TRUSTED_CLIENT_CA); 48 addTrust(&mTrust.sslFlags, CERTDB_TRUSTED_CLIENT_CA);
47 } 49 }
48 if (email) { 50 if (email) {
49 addTrust(&mTrust.emailFlags, CERTDB_TRUSTED_CA); 51 addTrust(&mTrust.emailFlags, CERTDB_TRUSTED_CA);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 nsNSSCertTrust::addTrust(unsigned int *t, unsigned int v) 358 nsNSSCertTrust::addTrust(unsigned int *t, unsigned int v)
357 { 359 {
358 *t |= v; 360 *t |= v;
359 } 361 }
360 362
361 PRBool 363 PRBool
362 nsNSSCertTrust::hasTrust(unsigned int t, unsigned int v) 364 nsNSSCertTrust::hasTrust(unsigned int t, unsigned int v)
363 { 365 {
364 return !!(t & v); 366 return !!(t & v);
365 } 367 }
368
369 } // namespace mozilla_security_manager
OLDNEW
« no previous file with comments | « net/third_party/mozilla_security_manager/nsNSSCertTrust.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698