Ticket #10043: engine_log.patch

File engine_log.patch, 1.5 KB (added by jbdatko, 6 years ago)

Patch for enhanced engine logging

  • src/common/crypto.c

    old new  
    307307                 " setting default ciphers.");
    308308        ENGINE_set_default(e, ENGINE_METHOD_ALL);
    309309      }
     310      /* Log, if available, the intersection of the set of algorithms
     311         used by Tor and the set of algorithms available in the engine */
    310312      log_engine("RSA", ENGINE_get_default_RSA());
    311313      log_engine("DH", ENGINE_get_default_DH());
     314      log_engine("ECDH", ENGINE_get_default_ECDH());
     315      log_engine("ECDSA", ENGINE_get_default_ECDSA());
    312316      log_engine("RAND", ENGINE_get_default_RAND());
    313317      log_engine("SHA1", ENGINE_get_digest_engine(NID_sha1));
    314       log_engine("3DES", ENGINE_get_cipher_engine(NID_des_ede3_ecb));
    315       log_engine("AES", ENGINE_get_cipher_engine(NID_aes_128_ecb));
     318      log_engine("3DES-CBC", ENGINE_get_cipher_engine(NID_des_ede3_cbc));
     319      log_engine("AES-128-ECB", ENGINE_get_cipher_engine(NID_aes_128_ecb));
     320      log_engine("AES-128-CBC", ENGINE_get_cipher_engine(NID_aes_128_cbc));
     321      log_engine("AES-128-CTR", ENGINE_get_cipher_engine(NID_aes_128_ctr));
     322      log_engine("AES-128-GCM", ENGINE_get_cipher_engine(NID_aes_128_gcm));
     323      log_engine("AES-256-CBC", ENGINE_get_cipher_engine(NID_aes_256_cbc));
     324      log_engine("AES-256-GCM", ENGINE_get_cipher_engine(NID_aes_256_gcm));
     325
    316326#endif
    317327    } else {
    318328      log_info(LD_CRYPTO, "NOT using OpenSSL engine support.");
     
    31273137}
    31283138
    31293139/** @} */
    3130