Pull out openssl code into separate crypto-openssl.cpp file

This will allow the use of different crypto libraries in the future.

Modified-by: Andrew Ayer <agwa@andrewayer.name>

  * Don't include openssl/err.h from git-crypt.cpp
  * Fix whitespace and other style to conform to project conventions
  * Remove unnecessary operators from Aes_ctr_encryptor
  * Rename crypto_init to init_crypto, for consistency with init_std_streams()
This commit is contained in:
Jon Sailor
2014-07-06 02:33:35 -07:00
committed by Andrew Ayer
parent f6e3b63a93
commit 66a2266968
5 changed files with 154 additions and 59 deletions

View File

@@ -39,7 +39,6 @@
#include <unistd.h>
#include <iostream>
#include <string.h>
#include <openssl/err.h>
const char* argv0;
@@ -90,7 +89,7 @@ try {
*/
init_std_streams();
ERR_load_crypto_strings();
init_crypto();
/*
* Parse command line arguments