summaryrefslogtreecommitdiff
path: root/net-mgmt/send/files/patch-libs-libcga-cga_keyutils.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2019-03-17 11:28:18 +0000
committerHiroki Sato <hrs@FreeBSD.org>2019-03-17 11:28:18 +0000
commita27ed4e6a9eb6b839eb3da2e033a395f002540ad (patch)
tree0647f1f6552040995c1df4367244581c78791dd2 /net-mgmt/send/files/patch-libs-libcga-cga_keyutils.c
parentUpdate to 6.0.3 (diff)
Fix build with OpenSSL 1.1.x.
Diffstat (limited to 'net-mgmt/send/files/patch-libs-libcga-cga_keyutils.c')
-rw-r--r--net-mgmt/send/files/patch-libs-libcga-cga_keyutils.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-mgmt/send/files/patch-libs-libcga-cga_keyutils.c b/net-mgmt/send/files/patch-libs-libcga-cga_keyutils.c
new file mode 100644
index 000000000000..30423a55492d
--- /dev/null
+++ b/net-mgmt/send/files/patch-libs-libcga-cga_keyutils.c
@@ -0,0 +1,19 @@
+--- libs/libcga/cga_keyutils.c.orig 2019-02-27 16:25:45 UTC
++++ libs/libcga/cga_keyutils.c
+@@ -45,6 +45,7 @@
+ #include <pthread.h>
+ #include <openssl/err.h>
+ #include <openssl/pem.h>
++#include <openssl/x509.h>
+
+ #include "config.h"
+ #include <applog.h>
+@@ -80,7 +81,7 @@ cga_load_cert(cga_ctx_t *cga, const char *f)
+ goto fail;
+ }
+
+- k = X509_PUBKEY_get(x->cert_info->key);
++ k = X509_PUBKEY_get(X509_get_X509_PUBKEY(x));
+
+ if (cga->key && cga->free_key) {
+ free(cga->key);