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
42b51aaa
Commit
42b51aaa
authored
Oct 13, 2017
by
Sylvain Berfini
🐮
Browse files
Uniformized set/get_passwd in set/get_password
parent
47824233
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
234 additions
and
184 deletions
+234
-184
coreapi/authentication.c
coreapi/authentication.c
+8
-1
include/linphone/auth_info.h
include/linphone/auth_info.h
+26
-0
wrappers/java/migration.sh
wrappers/java/migration.sh
+200
-183
No files found.
coreapi/authentication.c
View file @
42b51aaa
...
...
@@ -83,6 +83,10 @@ const char *linphone_auth_info_get_username(const LinphoneAuthInfo *i) {
}
const
char
*
linphone_auth_info_get_passwd
(
const
LinphoneAuthInfo
*
i
)
{
return
linphone_auth_info_get_password
(
i
);
}
const
char
*
linphone_auth_info_get_password
(
const
LinphoneAuthInfo
*
i
)
{
return
i
->
passwd
;
}
...
...
@@ -118,8 +122,11 @@ const char *linphone_auth_info_get_tls_key_path(const LinphoneAuthInfo *i) {
return
i
->
tls_key_path
;
}
void
linphone_auth_info_set_passwd
(
LinphoneAuthInfo
*
info
,
const
char
*
passwd
)
{
linphone_auth_info_set_password
(
info
,
passwd
);
}
void
linphone_auth_info_set_password
(
LinphoneAuthInfo
*
info
,
const
char
*
passwd
)
{
if
(
info
->
passwd
)
{
ms_free
(
info
->
passwd
);
info
->
passwd
=
NULL
;
...
...
include/linphone/auth_info.h
View file @
42b51aaa
...
...
@@ -78,6 +78,22 @@ LINPHONE_PUBLIC void linphone_auth_info_unref(LinphoneAuthInfo *info);
**/
LINPHONE_PUBLIC
void
linphone_auth_info_set_passwd
(
LinphoneAuthInfo
*
info
,
const
char
*
passwd
);
/**
* Sets the password.
* @param[in] info The #LinphoneAuthInfo object
* @param[in] passwd The password.
* @deprecated, use linphone_auth_info_set_password instead
* @donotwrap
**/
LINPHONE_PUBLIC
void
linphone_auth_info_set_passwd
(
LinphoneAuthInfo
*
info
,
const
char
*
passwd
);
/**
* Sets the password.
* @param[in] info The #LinphoneAuthInfo object
* @param[in] passwd The password.
**/
LINPHONE_PUBLIC
void
linphone_auth_info_set_password
(
LinphoneAuthInfo
*
info
,
const
char
*
passwd
);
/**
* Sets the username.
* @param[in] info The #LinphoneAuthInfo object
...
...
@@ -154,9 +170,19 @@ LINPHONE_PUBLIC const char *linphone_auth_info_get_username(const LinphoneAuthIn
* Gets the password.
* @param[in] info The #LinphoneAuthInfo object
* @return The password.
* @deprecated, use linphone_auth_info_get_password instead
* @donotwrap
*/
LINPHONE_PUBLIC
const
char
*
linphone_auth_info_get_passwd
(
const
LinphoneAuthInfo
*
info
);
/**
* Gets the password.
* @param[in] info The #LinphoneAuthInfo object
* @return The password.
*/
LINPHONE_PUBLIC
const
char
*
linphone_auth_info_get_password
(
const
LinphoneAuthInfo
*
info
);
/**
* Gets the userid.
* @param[in] info The #LinphoneAuthInfo object
...
...
wrappers/java/migration.sh
View file @
42b51aaa
This diff is collapsed.
Click to expand it.
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