| 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 24 matching lines...) Expand all Loading... |
| 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 NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ | 39 #ifndef NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ |
| 40 #define NET_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 #include "net/base/net_api.h" | 45 #include "net/base/net_export.h" |
| 46 | 46 |
| 47 namespace mozilla_security_manager { | 47 namespace mozilla_security_manager { |
| 48 | 48 |
| 49 /* | 49 /* |
| 50 * nsNSSCertTrust | 50 * nsNSSCertTrust |
| 51 * | 51 * |
| 52 * Class for maintaining trust flags for an NSS certificate. | 52 * Class for maintaining trust flags for an NSS certificate. |
| 53 */ | 53 */ |
| 54 class NET_API nsNSSCertTrust | 54 class NET_EXPORT nsNSSCertTrust |
| 55 { | 55 { |
| 56 public: | 56 public: |
| 57 nsNSSCertTrust(); | 57 nsNSSCertTrust(); |
| 58 nsNSSCertTrust(unsigned int ssl, unsigned int email, unsigned int objsign); | 58 nsNSSCertTrust(unsigned int ssl, unsigned int email, unsigned int objsign); |
| 59 nsNSSCertTrust(CERTCertTrust *t); | 59 nsNSSCertTrust(CERTCertTrust *t); |
| 60 virtual ~nsNSSCertTrust(); | 60 virtual ~nsNSSCertTrust(); |
| 61 | 61 |
| 62 /* query */ | 62 /* query */ |
| 63 PRBool HasAnyCA(); | 63 PRBool HasAnyCA(); |
| 64 PRBool HasAnyUser(); | 64 PRBool HasAnyUser(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 private: | 119 private: |
| 120 void addTrust(unsigned int *t, unsigned int v); | 120 void addTrust(unsigned int *t, unsigned int v); |
| 121 void removeTrust(unsigned int *t, unsigned int v); | 121 void removeTrust(unsigned int *t, unsigned int v); |
| 122 PRBool hasTrust(unsigned int t, unsigned int v); | 122 PRBool hasTrust(unsigned int t, unsigned int v); |
| 123 CERTCertTrust mTrust; | 123 CERTCertTrust mTrust; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace mozilla_security_manager | 126 } // namespace mozilla_security_manager |
| 127 | 127 |
| 128 #endif // NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ | 128 #endif // NET_THIRD_PARTY_MOZILLA_SECURITY_MANAGER_NSNSSCERTTRUST_H_ |
| OLD | NEW |