Browse Source

Fix code style

Konrad Kuśnierz 1 year ago
parent
commit
8b8e7312ea
No account linked to committer's email address
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/framework/util/crypt.cpp

+ 2
- 4
src/framework/util/crypt.cpp View File

@@ -349,13 +349,11 @@ void Crypt::rsaSetPrivateKey(const std::string& p, const std::string& q, const s
349 349
     BN_dec2bn(&m_rsa->q, q.c_str());
350 350
     BN_dec2bn(&m_rsa->d, d.c_str());
351 351
     // clear rsa cache
352
-    if (m_rsa->_method_mod_p)
353
-    {
352
+    if(m_rsa->_method_mod_p) {
354 353
         BN_MONT_CTX_free(m_rsa->_method_mod_p);
355 354
         m_rsa->_method_mod_p = nullptr;
356 355
     }
357
-    if (m_rsa->_method_mod_q)
358
-    {
356
+    if(m_rsa->_method_mod_q) {
359 357
         BN_MONT_CTX_free(m_rsa->_method_mod_q);
360 358
         m_rsa->_method_mod_q = nullptr;
361 359
     }

Loading…
Cancel
Save