diff options
Diffstat (limited to 'snxxx/1.0')
-rw-r--r--[-rwxr-xr-x] | snxxx/1.0/SecureElement.cpp | 18 | ||||
-rw-r--r-- | snxxx/1.0/VirtualISO.cpp | 16 |
2 files changed, 17 insertions, 17 deletions
diff --git a/snxxx/1.0/SecureElement.cpp b/snxxx/1.0/SecureElement.cpp index 021f783..f605957 100755..100644 --- a/snxxx/1.0/SecureElement.cpp +++ b/snxxx/1.0/SecureElement.cpp @@ -128,7 +128,7 @@ Return<void> SecureElement::getAtr(getAtr_cb _hidl_cb) { } status = phNxpEse_SetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "Endpoint set failed"; + LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed"; } status = phNxpEse_getAtr(&atrData); if (status != ESESTATUS_SUCCESS) { @@ -142,7 +142,7 @@ Return<void> SecureElement::getAtr(getAtr_cb _hidl_cb) { status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "Endpoint set failed"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed"; } if (status != ESESTATUS_SUCCESS) { @@ -202,7 +202,7 @@ Return<void> SecureElement::transmit(const hidl_vec<uint8_t>& data, } status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } _hidl_cb(result); @@ -302,7 +302,7 @@ Return<void> SecureElement::openLogicalChannel(const hidl_vec<uint8_t>& aid, send the callback and return*/ status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } _hidl_cb(resApduBuff, sestatus); return Void(); @@ -390,7 +390,7 @@ Return<void> SecureElement::openLogicalChannel(const hidl_vec<uint8_t>& aid, } status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } _hidl_cb(resApduBuff, sestatus); phNxpEse_free(cpdu.pdata); @@ -490,7 +490,7 @@ Return<void> SecureElement::openBasicChannel(const hidl_vec<uint8_t>& aid, } status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } if (sestatus != SecureElementStatus::SUCCESS) { SecureElementStatus closeChannelStatus = @@ -553,7 +553,7 @@ SecureElement::internalCloseChannel(uint8_t channelNumber) { } status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } } if (mOpenedChannels[channelNumber]) { @@ -611,7 +611,7 @@ SecureElement::closeChannel(uint8_t channelNumber) { } status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } } if (mOpenedChannels[channelNumber]) { @@ -679,7 +679,7 @@ SecureElement::seHalDeInit() { if (ESESTATUS_SUCCESS != deInitStatus) mIsDeInitDone = false; status = phNxpEse_ResetEndPoint_Cntxt(0); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; mIsDeInitDone = false; } status = phNxpEse_close(deInitStatus); diff --git a/snxxx/1.0/VirtualISO.cpp b/snxxx/1.0/VirtualISO.cpp index 3683208..12c2197 100644 --- a/snxxx/1.0/VirtualISO.cpp +++ b/snxxx/1.0/VirtualISO.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * - * Copyright 2018-2021 NXP + * Copyright 2018-2021, 2023 NXP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -144,7 +144,7 @@ Return<void> VirtualISO::transmit(const hidl_vec<uint8_t>& data, } status = phNxpEse_ResetEndPoint_Cntxt(1); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } _hidl_cb(result); @@ -241,7 +241,7 @@ Return<void> VirtualISO::openLogicalChannel(const hidl_vec<uint8_t>& aid, send the callback and return*/ status = phNxpEse_ResetEndPoint_Cntxt(1); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } _hidl_cb(resApduBuff, sestatus); return Void(); @@ -326,7 +326,7 @@ Return<void> VirtualISO::openLogicalChannel(const hidl_vec<uint8_t>& aid, } status = phNxpEse_ResetEndPoint_Cntxt(1); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } _hidl_cb(resApduBuff, sestatus); phNxpEse_free(cpdu.pdata); @@ -415,7 +415,7 @@ Return<void> VirtualISO::openBasicChannel(const hidl_vec<uint8_t>& aid, } status = phNxpEse_ResetEndPoint_Cntxt(1); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } if (sestatus != SecureElementStatus::SUCCESS) { SecureElementStatus closeChannelStatus = @@ -479,7 +479,7 @@ VirtualISO::internalCloseChannel(uint8_t channelNumber) { } status = phNxpEse_ResetEndPoint_Cntxt(1); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } } if (mOpenedChannels[channelNumber]) { @@ -538,7 +538,7 @@ VirtualISO::closeChannel(uint8_t channelNumber) { } status = phNxpEse_ResetEndPoint_Cntxt(1); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; } } if (mOpenedChannels[channelNumber]) { @@ -593,7 +593,7 @@ VirtualISO::seHalDeInit() { if (ESESTATUS_SUCCESS != deInitStatus) mIsDeInitDone = false; status = phNxpEse_ResetEndPoint_Cntxt(1); if (status != ESESTATUS_SUCCESS) { - LOG(ERROR) << "phNxpEse_SetEndPoint_Cntxt failed!!!"; + LOG(ERROR) << "phNxpEse_ResetEndPoint_Cntxt failed!!!"; mIsDeInitDone = false; } status = phNxpEse_close(deInitStatus); |