Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | #ifndef nsSyncJPAKE_h__ |
michael@0 | 5 | #define nsSyncJPAKE_h__ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsISyncJPAKE.h" |
michael@0 | 8 | |
michael@0 | 9 | #define NS_SYNCJPAKE_CONTRACTID \ |
michael@0 | 10 | "@mozilla.org/services-crypto/sync-jpake;1" |
michael@0 | 11 | |
michael@0 | 12 | #define NS_SYNCJPAKE_CID \ |
michael@0 | 13 | {0x0b9721c0, 0x1805, 0x47c3, {0x86, 0xce, 0x68, 0x13, 0x79, 0x5a, 0x78, 0x3f}} |
michael@0 | 14 | |
michael@0 | 15 | typedef struct PK11SymKeyStr PK11SymKey; |
michael@0 | 16 | |
michael@0 | 17 | class nsSyncJPAKE : public nsISyncJPAKE |
michael@0 | 18 | { |
michael@0 | 19 | public: |
michael@0 | 20 | NS_DECL_ISUPPORTS |
michael@0 | 21 | NS_DECL_NSISYNCJPAKE |
michael@0 | 22 | nsSyncJPAKE(); |
michael@0 | 23 | virtual ~nsSyncJPAKE(); |
michael@0 | 24 | private: |
michael@0 | 25 | enum { JPAKENotStarted, JPAKEBeforeRound2, JPAKEAfterRound2 } round; |
michael@0 | 26 | PK11SymKey * key; |
michael@0 | 27 | }; |
michael@0 | 28 | |
michael@0 | 29 | NS_IMPL_ISUPPORTS(nsSyncJPAKE, nsISyncJPAKE) |
michael@0 | 30 | |
michael@0 | 31 | #endif // nsSyncJPAKE_h__ |