Explorar o código

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

Russ Whitehead %!s(int64=7) %!d(string=hai) anos
pai
achega
7bf8348667
Modificáronse 2 ficheiros con 3 adicións e 9 borrados
  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);