aboutsummaryrefslogtreecommitdiff
path: root/include/olm/base64.h
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 /include/olm/base64.h
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 'include/olm/base64.h')
-rw-r--r--include/olm/base64.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/olm/base64.h b/include/olm/base64.h
index e7a9a50..80384a8 100644
--- a/include/olm/base64.h
+++ b/include/olm/base64.h
@@ -30,7 +30,7 @@ extern "C" {
/**
* The number of bytes of unpadded base64 needed to encode a length of input.
*/
-size_t olm_encode_base64_length(
+size_t _olm_encode_base64_length(
size_t input_length
);
@@ -42,7 +42,7 @@ size_t olm_encode_base64_length(
*
* Returns number of bytes encoded
*/
-size_t olm_encode_base64(
+size_t _olm_encode_base64(
uint8_t const * input, size_t input_length,
uint8_t * output
);
@@ -51,7 +51,7 @@ size_t olm_encode_base64(
* The number of bytes of raw data a length of unpadded base64 will encode to.
* Returns size_t(-1) if the length is not a valid length for base64.
*/
-size_t olm_decode_base64_length(
+size_t _olm_decode_base64_length(
size_t input_length
);
@@ -63,7 +63,7 @@ size_t olm_decode_base64_length(
*
* Returns number of bytes decoded
*/
-size_t olm_decode_base64(
+size_t _olm_decode_base64(
uint8_t const * input, size_t input_length,
uint8_t * output
);