From e0256b1f7a306bb3f440517afb96674c0d37e998 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Thu, 21 Nov 2013 16:26:44 +0100 Subject: [PATCH] fix compilation issue --- .cproject | 2 +- coreapi/bellesip_sal/sal_impl.c | 4 ++-- include/sal/sal.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.cproject b/.cproject index d4a5780c3..51c77f8e9 100644 --- a/.cproject +++ b/.cproject @@ -22,7 +22,7 @@ - + diff --git a/coreapi/bellesip_sal/sal_impl.c b/coreapi/bellesip_sal/sal_impl.c index d73142e71..80f577490 100644 --- a/coreapi/bellesip_sal/sal_impl.c +++ b/coreapi/bellesip_sal/sal_impl.c @@ -705,7 +705,7 @@ SalAuthInfo* sal_auth_info_create(belle_sip_auth_event_t* event) { auth_info->realm = ms_strdup(belle_sip_auth_event_get_realm(event)); auth_info->username = ms_strdup(belle_sip_auth_event_get_username(event)); auth_info->domain = ms_strdup(belle_sip_auth_event_get_domain(event)); - auth_info->mode = belle_sip_auth_event_get_mode(event); + auth_info->mode = (SalAuthMode)belle_sip_auth_event_get_mode(event); return auth_info; } @@ -877,7 +877,7 @@ void sal_enable_unconditional_answer(Sal *sal,int value) { * @param format either PEM or DER */ void sal_certificates_chain_parse_file(SalAuthInfo* auth_info, const char* path, SalCertificateRawFormat format) { - auth_info->certificates = (SalCertificatesChain*) belle_sip_certificates_chain_parse_file(path, format); // + auth_info->certificates = (SalCertificatesChain*) belle_sip_certificates_chain_parse_file(path, (belle_sip_certificate_raw_format_t)format); // if (auth_info->certificates) belle_sip_object_ref((belle_sip_object_t *) auth_info->certificates); } diff --git a/include/sal/sal.h b/include/sal/sal.h index 86f20c60d..70146cd05 100644 --- a/include/sal/sal.h +++ b/include/sal/sal.h @@ -334,7 +334,7 @@ typedef enum SalTextDeliveryStatus{ /** * auth event mode * */ -typedef enum SalAuthMode { +typedef enum SalAuthMode { /*this enum must be same as belle_sip_auth_mode_t*/ SalAuthModeHttpDigest, /** Digest authentication requested*/ SalAuthModeTls /** Client certificate requested*/ }SalAuthMode; @@ -347,7 +347,7 @@ typedef struct _SalSigningKey SalSigningKey; /** * Format of certificate buffer * */ -typedef enum SalCertificateRawFormat { +typedef enum SalCertificateRawFormat {/*this enum must be same as belle_sip_certificate_raw_format_t*/ SAL_CERTIFICATE_RAW_FORMAT_PEM, /** PEM format*/ SAL_CERTIFICATE_RAW_FORMAT_DER /** ASN.1 raw format*/ }SalCertificateRawFormat;