aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-10-11 18:16:39 +0100
committerDavid Baker <dave@matrix.org>2018-10-11 18:16:39 +0100
commitfac1d52dfe25d8bf6119cc41645a84c9111c6f6e (patch)
tree6ff5aab106c2889acfa7c6f443bd457fa10e3c2e /include
parente73ebcea67b50ada065a362ec774bd66ec47b065 (diff)
Add aliases for deprecated functions
Diffstat (limited to 'include')
-rw-r--r--include/olm/pk.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/olm/pk.h b/include/olm/pk.h
index 8748506..4278fca 100644
--- a/include/olm/pk.h
+++ b/include/olm/pk.h
@@ -116,6 +116,10 @@ size_t olm_clear_pk_decryption(
*/
size_t olm_pk_private_key_length();
+/** DEPRECATED: Use olm_pk_private_key_length()
+ */
+size_t olm_pk_generate_key_random_length(void);
+
/** Initialise the key from the private part of a key as returned by
* olm_pk_get_private_key(). The associated public key will be written to the
* pubkey buffer. Returns olm_error() on failure. If the pubkey buffer is too
@@ -132,6 +136,14 @@ size_t olm_pk_key_from_private(
void * privkey, size_t privkey_length
);
+/** DEPRECATED: Use olm_pk_key_from_private
+ */
+size_t olm_pk_generate_key(
+ OlmPkDecryption * decryption,
+ void * pubkey, size_t pubkey_length,
+ void * privkey, size_t privkey_length
+);
+
/** Returns the number of bytes needed to store a decryption object. */
size_t olm_pickle_pk_decryption_length(
OlmPkDecryption * decryption