Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
ff5a8f94
Commit
ff5a8f94
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #9509: use vector for credential info
parent
8ef04480
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/sip/sipaccount.cpp
+2
-9
2 additions, 9 deletions
daemon/src/sip/sipaccount.cpp
daemon/src/sip/sipaccount.h
+3
-8
3 additions, 8 deletions
daemon/src/sip/sipaccount.h
with
5 additions
and
17 deletions
daemon/src/sip/sipaccount.cpp
+
2
−
9
View file @
ff5a8f94
...
...
@@ -66,7 +66,7 @@ SIPAccount::SIPAccount(const std::string& accountID)
,
serviceRoute_
()
,
tlsListenerPort_
(
DEFAULT_SIP_TLS_PORT
)
,
transportType_
(
PJSIP_TRANSPORT_UNSPECIFIED
)
,
cred_
(
NULL
)
,
cred_
()
,
tlsSetting_
()
,
contactHeader_
()
,
contactUpdateEnabled_
(
false
)
...
...
@@ -101,11 +101,6 @@ SIPAccount::SIPAccount(const std::string& accountID)
,
link_
(
SIPVoIPLink
::
instance
())
{}
SIPAccount
::~
SIPAccount
()
{
delete
[]
cred_
;
}
void
SIPAccount
::
serialize
(
Conf
::
YamlEmitter
*
emitter
)
{
using
namespace
Conf
;
...
...
@@ -927,11 +922,9 @@ void SIPAccount::setCredentials(const std::vector<std::map<std::string, std::str
}
// Create the credential array
delete
[]
cred_
;
cred_
=
new
pjsip_cred_info
[
credentials_
.
size
()];
cred_
.
resize
(
credentials_
.
size
());
size_t
i
=
0
;
for
(
vector
<
map
<
string
,
string
>
>::
const_iterator
iter
=
credentials_
.
begin
();
iter
!=
credentials_
.
end
();
++
iter
)
{
map
<
string
,
string
>::
const_iterator
val
=
(
*
iter
).
find
(
CONFIG_ACCOUNT_PASSWORD
);
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sip/sipaccount.h
+
3
−
8
View file @
ff5a8f94
...
...
@@ -110,11 +110,6 @@ class SIPAccount : public Account {
*/
SIPAccount
(
const
std
::
string
&
accountID
);
/**
* Virtual destructor
*/
virtual
~
SIPAccount
();
virtual
VoIPLink
*
getVoIPLink
();
std
::
string
getUserAgentName
()
const
;
...
...
@@ -196,8 +191,8 @@ class SIPAccount : public Account {
void
stopKeepAliveTimer
();
pjsip_cred_info
*
getCredInfo
()
const
{
return
cred_
;
const
pjsip_cred_info
*
getCredInfo
()
const
{
return
&
(
*
cred_
.
begin
())
;
}
/**
...
...
@@ -605,7 +600,7 @@ class SIPAccount : public Account {
/**
* Credential information stored for further registration.
*/
pjsip_cred_info
*
cred_
;
std
::
vector
<
pjsip_cred_info
>
cred_
;
/**
* The TLS settings, used only if tls is chosen as a sip transport.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment