aboutsummaryrefslogtreecommitdiff
path: root/src/olm.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/olm.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/olm.cpp')
-rw-r--r--src/olm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/olm.cpp b/src/olm.cpp
index 9d84758..b34a1dc 100644
--- a/src/olm.cpp
+++ b/src/olm.cpp
@@ -59,11 +59,11 @@ static std::uint8_t const * from_c(void const * bytes) {
static const std::uint8_t CIPHER_KDF_INFO[] = "Pickle";
-const olm_cipher *get_pickle_cipher() {
- static olm_cipher *cipher = NULL;
- static olm_cipher_aes_sha_256 PICKLE_CIPHER;
+const _olm_cipher *get_pickle_cipher() {
+ static _olm_cipher *cipher = NULL;
+ static _olm_cipher_aes_sha_256 PICKLE_CIPHER;
if (!cipher) {
- cipher = olm_cipher_aes_sha_256_init(
+ cipher = _olm_cipher_aes_sha_256_init(
&PICKLE_CIPHER,
CIPHER_KDF_INFO, sizeof(CIPHER_KDF_INFO) - 1
);