Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
belle-sip
Commits
6c5349a4
Commit
6c5349a4
authored
Feb 05, 2015
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enhance configure script and add missing stubs
parent
6522407f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
configure.ac
configure.ac
+1
-1
src/transports/tls_channel_polarssl.c
src/transports/tls_channel_polarssl.c
+10
-5
No files found.
configure.ac
View file @
6c5349a4
...
...
@@ -266,7 +266,7 @@ if test "$use_tls" = "true" ; then
,[found_polarssl=yes
POLARSSL_LIBS=" -lpolarssl"
AC_MSG_NOTICE([polarssl usable])]
,[AC_MSG_
WARN
([polarssl not
usable
])])
,[AC_MSG_
ERROR
([polarssl not
found or usable but TLS support required.
])])
])
CPPFLAGS=$CPPFLAGS_save
...
...
src/transports/tls_channel_polarssl.c
View file @
6c5349a4
...
...
@@ -59,19 +59,24 @@ struct belle_sip_signing_key {
#endif
};
#ifdef HAVE_POLARSSL
/**
* Retrieve key or certificate in a string(PEM format)
*/
#if POLARSSL_VERSION_NUMBER < 0x01030000
/*stubs*/
char
*
belle_sip_certificates_chain_get_pem
(
belle_sip_certificates_chain_t
*
cert
)
{
return
NULL
;
}
char
*
belle_sip_signing_key_get_pem
(
belle_sip_signing_key_t
*
key
)
{
return
NULL
;
}
#else
/* POLARSSL_VERSION_NUMBER >= 0x01030000 */
#endif
#ifdef HAVE_POLARSSL
/**
* Retrieve key or certificate in a string(PEM format)
*/
#if POLARSSL_VERSION_NUMBER >= 0x01030000
char
*
belle_sip_certificates_chain_get_pem
(
belle_sip_certificates_chain_t
*
cert
)
{
char
*
pem_certificate
=
NULL
;
size_t
olen
=
0
;
...
...
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