Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: function_visibility.patch

Issue 2847081: Initial code. (Closed) Base URL: ssh://git@chromiumos-git/libscrypt.git
Patch Set: Use scrypt distro and patch with changes instead. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « configure.ac ('k') | src/FORMAT » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: function_visibility.patch
diff --git a/function_visibility.patch b/function_visibility.patch
new file mode 100644
index 0000000000000000000000000000000000000000..7268b3ea4df2ea84a731ac1054793da4ab9f2022
--- /dev/null
+++ b/function_visibility.patch
@@ -0,0 +1,35 @@
+diff -Nuar src.orig/lib/scryptenc/scryptenc.h src/lib/scryptenc/scryptenc.h
+--- src.orig/lib/scryptenc/scryptenc.h 2010-01-16 12:48:20.000000000 -0800
++++ src/lib/scryptenc/scryptenc.h 2010-07-26 14:34:14.000000000 -0700
+@@ -78,6 +78,7 @@
+ * Encrypt inbuflen bytes from inbuf, writing the resulting inbuflen + 128
+ * bytes to outbuf.
+ */
++__attribute__ ((visibility("default")))
+ int scryptenc_buf(const uint8_t *, size_t, uint8_t *,
+ const uint8_t *, size_t, size_t, double, double);
+
+@@ -88,6 +89,7 @@
+ * decrypted data length to outlen. The allocated length of outbuf must
+ * be at least inbuflen.
+ */
++__attribute__ ((visibility("default")))
+ int scryptdec_buf(const uint8_t *, size_t, uint8_t *, size_t *,
+ const uint8_t *, size_t, size_t, double, double);
+
+@@ -97,6 +99,7 @@
+ * Read a stream from infile and encrypt it, writing the resulting stream to
+ * outfile.
+ */
++__attribute__ ((visibility("default")))
+ int scryptenc_file(FILE *, FILE *, const uint8_t *, size_t,
+ size_t, double, double);
+
+@@ -106,6 +109,7 @@
+ * Read a stream from infile and decrypt it, writing the resulting stream to
+ * outfile.
+ */
++__attribute__ ((visibility("default")))
+ int scryptdec_file(FILE *, FILE *, const uint8_t *, size_t,
+ size_t, double, double);
+
« no previous file with comments | « configure.ac ('k') | src/FORMAT » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698