ssb: Support publishing private messages from the command-line. #89
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 26m28s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 26m28s
This commit is contained in:
13
src/ssb.h
13
src/ssb.h
@ -30,6 +30,8 @@ enum
|
||||
k_ssb_blob_bytes_max = 5 * 1024 * 1024,
|
||||
|
||||
k_ssb_peer_exchange_expires_seconds = 60 * 60,
|
||||
|
||||
k_max_private_message_recipients = 8,
|
||||
};
|
||||
|
||||
/**
|
||||
@ -1128,4 +1130,15 @@ int tf_ssb_connection_get_flags(tf_ssb_connection_t* connection);
|
||||
*/
|
||||
tf_ssb_ebt_t* tf_ssb_connection_get_ebt(tf_ssb_connection_t* connection);
|
||||
|
||||
/**
|
||||
** Encrypt a private message to a set of recipients.
|
||||
** @param private_key The private key of the author.
|
||||
** @param recipients A list of recipient identities.
|
||||
** @param recipients_count The number of recipients in recipients.
|
||||
** @param message The plain text to post.
|
||||
** @param message_size The length in bytes of message.
|
||||
** @return A secret box string. Free with tf_free().
|
||||
*/
|
||||
char* tf_ssb_private_message_encrypt(uint8_t* private_key, const char** recipients, int recipients_count, const char* message, size_t message_size);
|
||||
|
||||
/** @} */
|
||||
|
Reference in New Issue
Block a user