83 switch (iState) |
83 switch (iState) |
84 { |
84 { |
85 case EAddKey: |
85 case EAddKey: |
86 { |
86 { |
87 CUnifiedKeyStore* keyStore = CSharedKeyStores::TheUnifiedKeyStores().operator[](iKeystore); |
87 CUnifiedKeyStore* keyStore = CSharedKeyStores::TheUnifiedKeyStores().operator[](iKeystore); |
|
88 if(iKeyStoreImplLabel.Length() != 0) |
|
89 { |
|
90 SetKeyStoreIndex(keyStore); |
|
91 } |
|
92 |
88 #ifdef SYMBIAN_AUTH_SERVER |
93 #ifdef SYMBIAN_AUTH_SERVER |
89 if(iUseNewApi) |
94 if(iUseNewApi) |
90 { |
95 { |
91 keyStore->CreateKey(0, iUsage, iSize, *iLabel, iAlgorithm, |
96 keyStore->CreateKey(iKeyStoreImplIndex, iUsage, iSize, *iLabel, iAlgorithm, |
92 iAccessType, iStartDate, iEndDate, *iAuthExpression, iFreshness, iKeyInfo, aStatus); |
97 iAccessType, iStartDate, iEndDate, *iAuthExpression, iFreshness, iKeyInfo, aStatus); |
93 } |
98 } |
94 else |
99 else |
95 #endif // SYMBIAN_AUTH_SERVER |
100 #endif // SYMBIAN_AUTH_SERVER |
96 { |
101 { |
97 keyStore->CreateKey(0, iUsage, iSize, *iLabel, iAlgorithm, |
102 keyStore->CreateKey(iKeyStoreImplIndex, iUsage, iSize, *iLabel, iAlgorithm, |
98 iAccessType, iStartDate, iEndDate, iKeyInfo, aStatus); |
103 iAccessType, iStartDate, iEndDate, iKeyInfo, aStatus); |
99 |
104 |
100 } |
105 } |
101 iState = EFinished; |
106 iState = EFinished; |
102 } |
107 } |