Skip to content

Commit

Permalink
deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Oct 9, 2023
1 parent 4e3a273 commit 9f09d8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/pubnub_crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ enum pubnub_res pubnub_set_secret_key(pubnub_t *p, char const* secret_key);
@param n The size of the string
@return 0: OK, -1: error
*/
int pubnub_encrypt(char const *cipher_key, pubnub_bymebl_t msg, char *base64_str, size_t *n);
PUBNUB_DEPRECATED int pubnub_encrypt(char const *cipher_key, pubnub_bymebl_t msg, char *base64_str, size_t *n);

/** Similar to pubnub_encrypt() - but this function doesn't allocate
memory, it uses the memory provided by @p buffer for its "working
memory".
*/
int pubnub_encrypt_buffered(char const *cipher_key, pubnub_bymebl_t msg, char *base64_str, size_t *n, pubnub_bymebl_t buffer);
PUBNUB_DEPRECATED int pubnub_encrypt_buffered(char const *cipher_key, pubnub_bymebl_t msg, char *base64_str, size_t *n, pubnub_bymebl_t buffer);

/** Decrypts a message from a Base64 encoded string @p base64_str to
user-allocated memory @p data. On input @p data->size holds the
Expand All @@ -73,12 +73,12 @@ int pubnub_encrypt_buffered(char const *cipher_key, pubnub_bymebl_t msg, char *b
@param data User allocated memory block to write the decrypted contents to
@return 0: OK, -1: error
*/
int pubnub_decrypt(char const *cipher_key, char const *base64_str, pubnub_bymebl_t *data);
PUBNUB_DEPRECATED int pubnub_decrypt(char const *cipher_key, char const *base64_str, pubnub_bymebl_t *data);

/** Similar to pubnub_decrypt(), but never allocates memory - it uses
the memory provided by @p buffer as its "working memory".
*/
int pubnub_decrypt_buffered(char const *cipher_key, char const *base64_str, pubnub_bymebl_t *data, pubnub_bymebl_t *buffer);
PUBNUB_DEPRECATED int pubnub_decrypt_buffered(char const *cipher_key, char const *base64_str, pubnub_bymebl_t *data, pubnub_bymebl_t *buffer);

/** Similar to pubnub_decrpyt(), but this will allocate the memory to
write the decrypted contents to and return it as the result.
Expand All @@ -88,7 +88,7 @@ int pubnub_decrypt_buffered(char const *cipher_key, char const *base64_str, pubn
@result Memory block (pointer and size) of the decoded and decrypted
message. On failure, pointer will be NULL and size is undefined.
*/
pubnub_bymebl_t pubnub_decrypt_alloc(char const *cipher_key, char const *base64_str);
PUBNUB_DEPRECATED pubnub_bymebl_t pubnub_decrypt_alloc(char const *cipher_key, char const *base64_str);


/** Decrypts the next message in the context @p p using the key
Expand Down

0 comments on commit 9f09d8d

Please sign in to comment.