|
41 | 41 | #include <credentials/PersistentStorageOpCertStore.h>
|
42 | 42 | #include <crypto/DefaultSessionKeystore.h>
|
43 | 43 | #include <crypto/OperationalKeystore.h>
|
44 |
| -#if CHIP_CRYPTO_PSA |
45 |
| -#include <crypto/PSAOperationalKeystore.h> |
46 |
| -#else |
47 | 44 | #include <crypto/PersistentStorageOperationalKeystore.h>
|
48 |
| -#endif |
49 | 45 | #include <inet/InetConfig.h>
|
50 | 46 | #include <lib/core/CHIPConfig.h>
|
51 | 47 | #include <lib/support/SafeInt.h>
|
@@ -218,14 +214,10 @@ struct CommonCaseDeviceServerInitParams : public ServerInitParams
|
218 | 214 | // PersistentStorageDelegate "software-based" operational key access injection
|
219 | 215 | if (this->operationalKeystore == nullptr)
|
220 | 216 | {
|
221 |
| -#if CHIP_CRYPTO_PSA |
222 |
| - this->operationalKeystore = &sPSAOperationalKeystore; |
223 |
| -#else |
224 | 217 | // WARNING: PersistentStorageOperationalKeystore::Finish() is never called. It's fine for
|
225 | 218 | // for examples and for now.
|
226 | 219 | ReturnErrorOnFailure(sPersistentStorageOperationalKeystore.Init(this->persistentStorageDelegate));
|
227 | 220 | this->operationalKeystore = &sPersistentStorageOperationalKeystore;
|
228 |
| -#endif |
229 | 221 | }
|
230 | 222 |
|
231 | 223 | // OpCertStore can be injected but default to persistent storage default
|
@@ -281,11 +273,7 @@ struct CommonCaseDeviceServerInitParams : public ServerInitParams
|
281 | 273 |
|
282 | 274 | private:
|
283 | 275 | static KvsPersistentStorageDelegate sKvsPersistenStorageDelegate;
|
284 |
| -#if CHIP_CRYPTO_PSA |
285 |
| - static PSAOperationalKeystore sPSAOperationalKeystore; |
286 |
| -#else |
287 | 276 | static PersistentStorageOperationalKeystore sPersistentStorageOperationalKeystore;
|
288 |
| -#endif |
289 | 277 | static Credentials::PersistentStorageOpCertStore sPersistentStorageOpCertStore;
|
290 | 278 | static Credentials::GroupDataProviderImpl sGroupDataProvider;
|
291 | 279 | static chip::app::DefaultTimerDelegate sTimerDelegate;
|
|
0 commit comments