Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
8c97e0c5
Commit
8c97e0c5
authored
Aug 09, 2017
by
Sylvain Berfini
🐮
Browse files
Moved key related methods on LinphoneContent from private to public header
parent
a396e891
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
coreapi/private.h
coreapi/private.h
+0
-21
include/linphone/content.h
include/linphone/content.h
+22
-0
No files found.
coreapi/private.h
View file @
8c97e0c5
...
...
@@ -1946,27 +1946,6 @@ SalStreamDir sal_dir_from_call_params_dir(LinphoneMediaDirection cpdir);
/*****************************************************************************
* LINPHONE CONTENT PRIVATE ACCESSORS *
****************************************************************************/
/**
* Get the key associated with a RCS file transfer message if encrypted
* @param[in] content LinphoneContent object.
* @return The key to encrypt/decrypt the file associated to this content.
*/
LINPHONE_PUBLIC
const
char
*
linphone_content_get_key
(
const
LinphoneContent
*
content
);
/**
* Get the size of key associated with a RCS file transfer message if encrypted
* @param[in] content LinphoneContent object.
* @return The key size in bytes
*/
size_t
linphone_content_get_key_size
(
const
LinphoneContent
*
content
);
/**
* Set the key associated with a RCS file transfer message if encrypted
* @param[in] content LinphoneContent object.
* @param[in] key The key to be used to encrypt/decrypt file associated to this content.
* @param[in] keyLength The lengh of the key.
*/
void
linphone_content_set_key
(
LinphoneContent
*
content
,
const
char
*
key
,
const
size_t
keyLength
);
/**
* Get the address of the crypto context associated with a RCS file transfer message if encrypted
...
...
include/linphone/content.h
View file @
8c97e0c5
...
...
@@ -192,6 +192,28 @@ LINPHONE_PUBLIC LinphoneContent * linphone_content_find_part_by_header(const Lin
*/
LINPHONE_PUBLIC
const
char
*
linphone_content_get_custom_header
(
const
LinphoneContent
*
content
,
const
char
*
header_name
);
/**
* Get the key associated with a RCS file transfer message if encrypted
* @param[in] content LinphoneContent object.
* @return The key to encrypt/decrypt the file associated to this content.
*/
LINPHONE_PUBLIC
const
char
*
linphone_content_get_key
(
const
LinphoneContent
*
content
);
/**
* Get the size of key associated with a RCS file transfer message if encrypted
* @param[in] content LinphoneContent object.
* @return The key size in bytes
*/
LINPHONE_PUBLIC
size_t
linphone_content_get_key_size
(
const
LinphoneContent
*
content
);
/**
* Set the key associated with a RCS file transfer message if encrypted
* @param[in] content LinphoneContent object.
* @param[in] key The key to be used to encrypt/decrypt file associated to this content.
* @param[in] keyLength The lengh of the key.
*/
LINPHONE_PUBLIC
void
linphone_content_set_key
(
LinphoneContent
*
content
,
const
char
*
key
,
const
size_t
keyLength
);
/**
* @}
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment