aboutsummaryrefslogtreecommitdiff
path: root/src/base64.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/base64.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/base64.cpp')
-rw-r--r--src/base64.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base64.cpp b/src/base64.cpp
index 920119e..bbfb210 100644
--- a/src/base64.cpp
+++ b/src/base64.cpp
@@ -138,13 +138,13 @@ std::uint8_t const * olm::decode_base64(
// implementations of base64.h
-size_t olm_encode_base64_length(
+size_t _olm_encode_base64_length(
size_t input_length
) {
return olm::encode_base64_length(input_length);
}
-size_t olm_encode_base64(
+size_t _olm_encode_base64(
uint8_t const * input, size_t input_length,
uint8_t * output
) {
@@ -152,13 +152,13 @@ size_t olm_encode_base64(
return r - output;
}
-size_t olm_decode_base64_length(
+size_t _olm_decode_base64_length(
size_t input_length
) {
return olm::decode_base64_length(input_length);
}
-size_t olm_decode_base64(
+size_t _olm_decode_base64(
uint8_t const * input, size_t input_length,
uint8_t * output
) {