summarylogtreecommitdiffstats
path: root/wrap.c
diff options
context:
space:
mode:
authorAviana Cruz2023-01-02 19:59:53 +0800
committerAviana Cruz2023-01-02 19:59:53 +0800
commitb21904a6c940fa5c1d0497e5133b1364c015c6d6 (patch)
treed682f111472e4e21d2ff77683addb2c23a33def4 /wrap.c
parent3d6f4e2e6175434cc76dcd8fb916c87a080bb31c (diff)
downloadaur-b21904a6c940fa5c1d0497e5133b1364c015c6d6.tar.gz
Make the function of sending files actually work
Diffstat (limited to 'wrap.c')
-rw-r--r--wrap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/wrap.c b/wrap.c
index fed4824cb2d3..fdcfa369e5ad 100644
--- a/wrap.c
+++ b/wrap.c
@@ -1,5 +1,5 @@
// by https://aur.archlinux.org/account/AvianaCruz
-#include <stddef.h>
+#include <openssl/ssl.h>
#ifdef WRAP_FORCE_SINK_HARDWARE
#include <dlfcn.h>
@@ -8,7 +8,13 @@
#include <string.h>
#endif
-void *SSL_get_peer_certificate(const void *s) { return NULL; }
+#ifdef SSL_get_peer_certificate
+#undef SSL_get_peer_certificate
+#endif
+
+X509 *SSL_get_peer_certificate(const SSL *s) {
+ return SSL_get1_peer_certificate(s);
+}
#ifdef WRAP_FORCE_SINK_HARDWARE
typedef pa_operation *(*wrap_pa_get_sink_by_name_t)(pa_context *c,