Skip to content

Commit

Permalink
stupidgcm: fix openssl 1.1 build failure
Browse files Browse the repository at this point in the history
Fixed by including the correct header. Should work on older openssl
versions as well.

Error was:
locking.go:21: undefined reference to `CRYPTO_set_locking_callback'
  • Loading branch information
rfjakob committed Jul 14, 2017
1 parent 3062de6 commit 61e9644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/stupidgcm/locking.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stupidgcm
// has been removed completely in openssl 1.1.0.

/*
#include <openssl/evp.h>
#include <openssl/crypto.h>
#include <stdio.h>
static void dummy_callback(int mode, int n, const char *file, int line) {
Expand Down

0 comments on commit 61e9644

Please sign in to comment.