Commit 6c5349a4 authored by Simon Morlat's avatar Simon Morlat

enhance configure script and add missing stubs

parent 6522407f
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment