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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
6ba731c5
Commit
6ba731c5
authored
Jan 10, 2014
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #38285: sipaccount: tlsEnable should be a boolean, not a string
parent
724ed9f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/sip/sipaccount.cpp
+6
-6
6 additions, 6 deletions
daemon/src/sip/sipaccount.cpp
daemon/src/sip/sipaccount.h
+1
-2
1 addition, 2 deletions
daemon/src/sip/sipaccount.h
with
7 additions
and
8 deletions
daemon/src/sip/sipaccount.cpp
+
6
−
6
View file @
6ba731c5
...
...
@@ -99,7 +99,7 @@ SIPAccount::SIPAccount(const std::string& accountID, bool presenceEnabled)
,
stunServerName_
()
,
stunPort_
(
PJ_STUN_PORT
)
,
dtmfType_
(
OVERRTP_STR
)
,
tlsEnable_
(
Conf
::
FALSE_STR
)
,
tlsEnable_
(
false
)
,
tlsCaListFile_
()
,
tlsCertificateFile_
()
,
tlsPrivateKeyFile_
()
...
...
@@ -710,8 +710,8 @@ void SIPAccount::setAccountDetails(const std::map<std::string, std::string> &det
validate
(
srtpKeyExchange_
,
iter
->
second
,
VALID_SRTP_KEY_EXCHANGES
);
// TLS settings
parseBool
(
details
,
CONFIG_TLS_ENABLE
,
tlsEnable_
);
parseInt
(
details
,
CONFIG_TLS_LISTENER_PORT
,
tlsListenerPort_
);
parseString
(
details
,
CONFIG_TLS_ENABLE
,
tlsEnable_
);
parseString
(
details
,
CONFIG_TLS_CA_LIST_FILE
,
tlsCaListFile_
);
parseString
(
details
,
CONFIG_TLS_CERTIFICATE_FILE
,
tlsCertificateFile_
);
parseString
(
details
,
CONFIG_TLS_PRIVATE_KEY_FILE
,
tlsPrivateKeyFile_
);
...
...
@@ -865,7 +865,7 @@ std::map<std::string, std::string> SIPAccount::getAccountDetails() const
std
::
stringstream
tlslistenerport
;
tlslistenerport
<<
tlsListenerPort_
;
a
[
CONFIG_TLS_LISTENER_PORT
]
=
tlslistenerport
.
str
();
a
[
CONFIG_TLS_ENABLE
]
=
tlsEnable_
;
a
[
CONFIG_TLS_ENABLE
]
=
tlsEnable_
?
Conf
::
TRUE_STR
:
Conf
::
FALSE_STR
;
a
[
CONFIG_TLS_CA_LIST_FILE
]
=
tlsCaListFile_
;
a
[
CONFIG_TLS_CERTIFICATE_FILE
]
=
tlsCertificateFile_
;
a
[
CONFIG_TLS_PRIVATE_KEY_FILE
]
=
tlsPrivateKeyFile_
;
...
...
@@ -890,7 +890,7 @@ void SIPAccount::registerVoIPLink()
#if HAVE_TLS
// Init TLS settings if the user wants to use TLS
if
(
tlsEnable_
==
Conf
::
TRUE_STR
)
{
if
(
tlsEnable_
)
{
DEBUG
(
"TLS is enabled for account %s"
,
accountID_
.
c_str
());
transportType_
=
PJSIP_TRANSPORT_TLS
;
initTlsConfiguration
();
...
...
@@ -1088,7 +1088,7 @@ void SIPAccount::loadConfig()
#if HAVE_TLS
if
(
tlsEnable_
==
Conf
::
TRUE_STR
)
{
if
(
tlsEnable_
)
{
initTlsConfiguration
();
transportType_
=
PJSIP_TRANSPORT_TLS
;
}
else
...
...
@@ -1455,7 +1455,7 @@ std::map<std::string, std::string> SIPAccount::getTlsSettings() const
std
::
stringstream
portstr
;
portstr
<<
tlsListenerPort_
;
tlsSettings
[
CONFIG_TLS_LISTENER_PORT
]
=
portstr
.
str
();
tlsSettings
[
CONFIG_TLS_ENABLE
]
=
tlsEnable_
;
tlsSettings
[
CONFIG_TLS_ENABLE
]
=
tlsEnable_
?
Conf
::
TRUE_STR
:
Conf
::
FALSE_STR
;
tlsSettings
[
CONFIG_TLS_CA_LIST_FILE
]
=
tlsCaListFile_
;
tlsSettings
[
CONFIG_TLS_CERTIFICATE_FILE
]
=
tlsCertificateFile_
;
tlsSettings
[
CONFIG_TLS_PRIVATE_KEY_FILE
]
=
tlsPrivateKeyFile_
;
...
...
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sip/sipaccount.h
+
1
−
2
View file @
6ba731c5
...
...
@@ -727,9 +727,8 @@ class SIPAccount : public Account {
/**
* Determine if TLS is enabled for this account. TLS provides a secured channel for
* SIP signalization. It is independant than the media encription provided by SRTP or ZRTP.
* FIXME: this should be a bool
*/
std
::
string
tlsEnable_
;
bool
tlsEnable_
;
/**
* Certificate autority file
...
...
...
...
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
sign in
to comment