Skip to content
Snippets Groups Projects
Commit e57a6d6f authored by Eric Cano's avatar Eric Cano
Browse files

Reverted the previous change trying to fix signed/unsigned issues (as the...

Reverted the previous change trying to fix signed/unsigned issues (as the length field is int in SLC5 and size_t in SLC6) and added the proper compilation options in Cmake.
parent 94f79d56
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,8 @@ set (XRDXCASTOR2FS_LIB_SRC_FILES
XrdxCastorClient.cpp)
set_property(SOURCE XrdxCastor2Fs.cpp
PROPERTY COMPILE_FLAGS -Wno-write-strings)
set_property(SOURCE XrdxCastor2ServerAcc.cpp
PROPERTY COMPILE_FLAGS -Wno-sign-compare)
add_library (XrdxCastor2Fs SHARED ${XRDXCASTOR2FS_LIB_SRC_FILES})
set_target_properties (XrdxCastor2Fs PROPERTIES
SOVERSION ${MAJOR_CASTOR_VERSION}
......
......@@ -419,7 +419,7 @@ XrdxCastor2ServerAcc::SignBase64( unsigned char* input,
int cnt = 0;
// Remove the backslash from the signature buffer
for ( size_t i = 0; (i + 1) <= bptr->length; i++ ) {
for ( int i = 0; i <= ( bptr->length - 1 ); i++ ) {
if ( buff[i] != '\n' ) {
signed_signature_buff[cnt] = buff[i];
cnt++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment