Merge branch 'master' of github.com:cloudflare/quiche into HEAD
Change-Id: I72f55b818f2ba430996ff8dd148bb7db91dbda3e
diff --git a/src/ffi.rs b/src/ffi.rs
index 03f82c2..f75f45d 100644
--- a/src/ffi.rs
+++ b/src/ffi.rs
@@ -38,11 +38,11 @@
use crate::*;
-#[no_mangle]
-pub extern fn quiche_version() -> *const u8 {
- static VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "\0");
- VERSION.as_ptr()
-}
+// #[no_mangle]
+// pub extern fn quiche_version() -> *const u8 {
+// static VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "\0");
+// VERSION.as_ptr()
+// }
struct Logger {
cb: extern fn(line: *const u8, argp: *mut c_void),
diff --git a/src/tls.rs b/src/tls.rs
index efb9e14..5238b0e 100644
--- a/src/tls.rs
+++ b/src/tls.rs
@@ -763,6 +763,12 @@
trace!("{}", std::str::from_utf8(&err).unwrap());
}
+#[cfg(not(target_os = "fuchsia"))]
+#[link(name = "stdc++")]
+extern {}
+
+#[link(name = "ssl")]
+#[link(name = "crypto")]
extern {
// SSL_METHOD
fn TLS_method() -> *const SSL_METHOD;