瀏覽代碼

Signed-off-by: Russ Whitehead <william.whitehead@lexisnexis.com>

Russ Whitehead 7 年之前
父節點
當前提交
7bf8348667
共有 2 個文件被更改,包括 3 次插入9 次删除
  1. 0 6
      system/security/zcrypt/zcrypt.cpp
  2. 3 3
      system/security/zcrypt/zcrypt.ipp

+ 0 - 6
system/security/zcrypt/zcrypt.cpp

@@ -110,9 +110,6 @@ int RSAZCryptor::setPublicKey(const char* publickeyBuff)
         return -1;
     }
 
-    if(m_trace_level > 10)
-        printf("setting publickeyBuff:\n%s\n", publickeyBuff);
-
     if(pubkey)
     {
         EVP_PKEY_free(pubkey);
@@ -165,9 +162,6 @@ int RSAZCryptor::setPrivateKey(const char* privatekeyBuff, const char* passphras
         return -1;
     }
 
-    if(m_trace_level > 10)
-        printf("setting privatekeyBuff:\n%s\n", privatekeyBuff);
-
     if(privkey)
     {
         EVP_PKEY_free(privkey);

+ 3 - 3
system/security/zcrypt/zcrypt.ipp

@@ -236,9 +236,9 @@ private:
     virtual int setPrivateKey(const char* privatekeyBuff, const char* passphrase);
 
 public:
-    RSAZCryptor(unsigned traceLevel = 11);
-    RSAZCryptor(const char* publickey, unsigned traceLevel = 11);
-    RSAZCryptor(const char* privatekey, const char* passphrase, unsigned traceLevel = 11);
+    RSAZCryptor(unsigned traceLevel = 0);
+    RSAZCryptor(const char* publickey, unsigned traceLevel = 0);
+    RSAZCryptor(const char* privatekey, const char* passphrase, unsigned traceLevel = 0);
     virtual ~RSAZCryptor();
 
     virtual ZBuffer& publickey_encrypt(int in_len, unsigned char* in, ZBuffer& result);