Explorar o código

Z991239-1017 #comment fea token实体中,清除两个未使用的接口,公玥解密和私玥加密,SM OS不存在

陈良瑜80374463 %!s(int64=5) %!d(string=hai) anos
pai
achega
9ec730bf87
Modificáronse 1 ficheiros con 9 adicións e 2 borrados
  1. 9 2
      Module/mod_tokenmgr/mod_tokenmgr.cpp

+ 9 - 2
Module/mod_tokenmgr/mod_tokenmgr.cpp

@@ -174,6 +174,7 @@ public:
 
 	ErrorCodeEnum DecryptWithPubKey(const CBlob &enc_data, CBlob &raw_data)
 	{
+		/*
 		ErrorCodeEnum Error(Error_Succeed);
 		EnterCriticalSection(&m_lock);
 		if (!m_bKeyInitialized) {
@@ -190,11 +191,15 @@ public:
             }
 		}
 		LeaveCriticalSection(&m_lock);
-		return Error;
+		*/
+		LogWarn(Severity_Low, Error_Cancel, 0, "DecWithRsaPubKey not support in sm os!");
+
+		return Error_Cancel;
 	}
 
 	ErrorCodeEnum EncryptWithPriKey(const CBlob &raw_data, CBlob &enc_data)
 	{
+		/*
 		ErrorCodeEnum Error(Error_Succeed);
 		EnterCriticalSection(&m_lock);
 		if (!m_bKeyInitialized) {
@@ -219,7 +224,9 @@ public:
             }
 		}
 		LeaveCriticalSection(&m_lock);
-		return Error;
+		*/
+		LogWarn(Severity_Low, Error_Cancel, 0, "EncryptWithPriKey not support in sm os!");
+		return Error_Cancel;
 	}
 	ErrorCodeEnum DecryptWithPriKey(const CBlob &enc_data, CBlob &raw_data)
 	{