mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-18 02:09:13 -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 "util.hpp"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <openssl/err.h>
|
||||||
|
|
||||||
static void print_usage (const char* argv0)
|
static void print_usage (const char* argv0)
|
||||||
{
|
{
|
||||||
@@ -62,6 +63,7 @@ try {
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ERR_load_crypto_strings();
|
||||||
|
|
||||||
if (strcmp(argv[1], "init") == 0 && argc == 3) {
|
if (strcmp(argv[1], "init") == 0 && argc == 3) {
|
||||||
init(argv[0], argv[2]);
|
init(argv[0], argv[2]);
|
||||||
|
|||||||
Reference in New Issue
Block a user