mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-15 17:10:56 -08:00
Load OpenSSL error strings in main()
So we can report errors from OpenSSL.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "util.hpp"
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <openssl/err.h>
|
||||
|
||||
static void print_usage (const char* argv0)
|
||||
{
|
||||
@@ -62,6 +63,7 @@ try {
|
||||
return 2;
|
||||
}
|
||||
|
||||
ERR_load_crypto_strings();
|
||||
|
||||
if (strcmp(argv[1], "init") == 0 && argc == 3) {
|
||||
init(argv[0], argv[2]);
|
||||
|
||||
Reference in New Issue
Block a user