aboutsummaryrefslogtreecommitdiff
path: root/src/utility.cpp
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-20 11:59:31 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-23 18:55:06 +0100
commit444ef1f70687c340ba1b0b2a22d6e63c734d5f9e (patch)
tree08e39a888a262acab58d2c0616a966a5e1034ca1 /src/utility.cpp
parentc57b2b71c5a1314e79a0ee110ed9e1168a70b921 (diff)
Prefix for internal symbols
Give a load of internal symbols "_olm_" prefixes. This better delineates the public and private interfaces in the module, and helps avoid internal symbols leaking out and possibly being abused.
Diffstat (limited to 'src/utility.cpp')
-rw-r--r--src/utility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utility.cpp b/src/utility.cpp
index 2169e60..67029c9 100644
--- a/src/utility.cpp
+++ b/src/utility.cpp
@@ -35,7 +35,7 @@ size_t olm::Utility::sha256(
last_error = OlmErrorCode::OLM_OUTPUT_BUFFER_TOO_SMALL;
return std::size_t(-1);
}
- crypto_sha256(input, input_length, output);
+ _olm_crypto_sha256(input, input_length, output);
return SHA256_OUTPUT_LENGTH;
}