| OLD | NEW |
| 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 Loading... |
| 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 #ifndef CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ | 39 #ifndef NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ |
| 40 #define CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ | 40 #define NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ |
| 41 | 41 |
| 42 #include <certt.h> | 42 #include <certt.h> |
| 43 #include <certdb.h> | 43 #include <certdb.h> |
| 44 | 44 |
| 45 namespace mozilla_security_manager { |
| 46 |
| 45 /* | 47 /* |
| 46 * nsNSSCertTrust | 48 * nsNSSCertTrust |
| 47 * | 49 * |
| 48 * Class for maintaining trust flags for an NSS certificate. | 50 * Class for maintaining trust flags for an NSS certificate. |
| 49 */ | 51 */ |
| 50 class nsNSSCertTrust | 52 class nsNSSCertTrust |
| 51 { | 53 { |
| 52 public: | 54 public: |
| 53 nsNSSCertTrust(); | 55 nsNSSCertTrust(); |
| 54 nsNSSCertTrust(unsigned int ssl, unsigned int email, unsigned int objsign); | 56 nsNSSCertTrust(unsigned int ssl, unsigned int email, unsigned int objsign); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 /* get it (const?) (shallow?) */ | 114 /* get it (const?) (shallow?) */ |
| 113 CERTCertTrust * GetTrust() { return &mTrust; } | 115 CERTCertTrust * GetTrust() { return &mTrust; } |
| 114 | 116 |
| 115 private: | 117 private: |
| 116 void addTrust(unsigned int *t, unsigned int v); | 118 void addTrust(unsigned int *t, unsigned int v); |
| 117 void removeTrust(unsigned int *t, unsigned int v); | 119 void removeTrust(unsigned int *t, unsigned int v); |
| 118 PRBool hasTrust(unsigned int t, unsigned int v); | 120 PRBool hasTrust(unsigned int t, unsigned int v); |
| 119 CERTCertTrust mTrust; | 121 CERTCertTrust mTrust; |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 #endif // CHROME_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ | 124 } // namespace mozilla_security_manager |
| 125 |
| 126 #endif // NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ |
| OLD | NEW |