You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
51 lines
1.4 KiB
From 60a728ff002d71215b4573d5a32c440cd4a5a094 Mon Sep 17 00:00:00 2001
|
|
From: David Tardon <dtardon@redhat.com>
|
|
Date: Wed, 2 Mar 2016 07:48:09 +0100
|
|
Subject: [PATCH 34/37] coverity: honor exception specs
|
|
|
|
---
|
|
src/libcmis/http-session.cxx | 6 ++++++
|
|
src/libcmis/http-session.hxx | 2 +-
|
|
2 files changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/libcmis/http-session.cxx b/src/libcmis/http-session.cxx
|
|
index 9b6c460..2a5d6b2 100644
|
|
--- a/src/libcmis/http-session.cxx
|
|
+++ b/src/libcmis/http-session.cxx
|
|
@@ -692,6 +692,8 @@ void HttpSession::httpRunRequest( string url, vector< string > headers, bool red
|
|
|
|
|
|
void HttpSession::checkOAuth2( string url )
|
|
+ throw ( CurlException )
|
|
+try
|
|
{
|
|
if ( m_oauth2Handler )
|
|
{
|
|
@@ -700,6 +702,10 @@ void HttpSession::checkOAuth2( string url )
|
|
oauth2Authenticate( );
|
|
}
|
|
}
|
|
+catch ( const libcmis::Exception& e )
|
|
+{
|
|
+ throw CurlException( e.what( ) );
|
|
+}
|
|
|
|
long HttpSession::getHttpStatus( )
|
|
{
|
|
diff --git a/src/libcmis/http-session.hxx b/src/libcmis/http-session.hxx
|
|
index eadd455..245e00b 100644
|
|
--- a/src/libcmis/http-session.hxx
|
|
+++ b/src/libcmis/http-session.hxx
|
|
@@ -168,7 +168,7 @@ class HttpSession
|
|
|
|
private:
|
|
void checkCredentials( ) throw ( CurlException );
|
|
- void checkOAuth2( std::string url );
|
|
+ void checkOAuth2( std::string url ) throw ( CurlException );
|
|
void oauth2Refresh( );
|
|
void initProtocols( );
|
|
};
|
|
--
|
|
2.5.0
|
|
|