Skip to content

Commit

Permalink
Fix unused parametres in XrdSecInterface and XrdFileCacheDecision, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Feb 25, 2016
1 parent 89e30ce commit f3dd306
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/XrdFileCache/XrdFileCacheDecision.hh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ namespace XrdFileCache
//!
//! @return status of configuration
//------------------------------------------------------------------------------
virtual bool ConfigDecision(const char* params) { return true; }
virtual bool ConfigDecision(const char* params)
{
(void) params;
return true;
}
};
}

Expand Down
35 changes: 29 additions & 6 deletions src/XrdSec/XrdSecInterface.hh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ virtual XrdSecCredentials *getCredentials(XrdSecParameters *parm=0,
virtual int Encrypt(const char *inbuff, // Data to be encrypted
int inlen, // Length of data in inbuff
XrdSecBuffer **outbuff // Returns encrypted data
) {return -ENOTSUP;}
)
{
(void) inbuff; (void) inlen; (void) outbuff;
return -ENOTSUP;
}

//------------------------------------------------------------------------------
//! Decrypt data in inbuff using the session key.
Expand All @@ -210,7 +214,11 @@ virtual int Encrypt(const char *inbuff, // Data to be encrypted
virtual int Decrypt(const char *inbuff, // Data to be decrypted
int inlen, // Length of data in inbuff
XrdSecBuffer **outbuff // Buffer for decrypted data
) {return -ENOTSUP;}
)
{
(void) inbuff; (void) inlen; (void) outbuff;
return -ENOTSUP;
}

//------------------------------------------------------------------------------
//! Sign data in inbuff using the session key.
Expand All @@ -227,7 +235,11 @@ virtual int Decrypt(const char *inbuff, // Data to be decrypted
virtual int Sign(const char *inbuff, // Data to be signed
int inlen, // Length of data in inbuff
XrdSecBuffer **outbuff // Buffer for the signature
) {return -ENOTSUP;}
)
{
(void) inbuff; (void) inlen; (void) outbuff;
return -ENOTSUP;
}

//------------------------------------------------------------------------------
//! Verify a signature using the session key.
Expand All @@ -246,7 +258,10 @@ virtual int Verify(const char *inbuff, // Data to be decrypted
int inlen, // Length of data in inbuff
const char *sigbuff, // Buffer for signature
int siglen) // Length if signature
{return -ENOTSUP;}
{
(void) inbuff; (void) inlen; (void) sigbuff; (void) siglen;
return -ENOTSUP;
}

//------------------------------------------------------------------------------
//! Get the current encryption key (i.e. session key)
Expand All @@ -261,7 +276,11 @@ virtual int Verify(const char *inbuff, // Data to be decrypted
//!
//------------------------------------------------------------------------------

virtual int getKey(char *buff = 0, int size = 0) {return -ENOTSUP;}
virtual int getKey(char *buff = 0, int size = 0)
{
(void) buff; (void) size;
return -ENOTSUP;
}

//------------------------------------------------------------------------------
//! Set the current encryption key
Expand All @@ -273,7 +292,11 @@ virtual int getKey(char *buff = 0, int size = 0) {return -ENOTSUP;}
//! = 0 The new key has been set.
//------------------------------------------------------------------------------

virtual int setKey(char *buff, int size) {return -ENOTSUP;}
virtual int setKey(char *buff, int size)
{
(void) buff; (void) size;
return -ENOTSUP;
}

//------------------------------------------------------------------------------
//! Delete the protocol object. DO NOT use C++ delete() on this object.
Expand Down

0 comments on commit f3dd306

Please sign in to comment.