Skip to content

Commit

Permalink
[Server] Some TLS fixes and add get/putFile into the mix.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and simonmichal committed Oct 16, 2019
1 parent 37f3a37 commit 357b4ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/XProtocol/XProtocol.hh
Expand Up @@ -95,11 +95,12 @@

#define kXR_haveTLS 0x80000000
#define kXR_gotoTLS 0x40000000
#define kXR_tlsAny 0x0f000000
#define kXR_tlsAny 0x1f000000
#define kXR_tlsData 0x01000000
#define kXR_tlsLogin 0x02000000
#define kXR_tlsSess 0x04000000
#define kXR_tlsTPC 0x08000000
#define kXR_tlsGPFile 0x02000000
#define kXR_tlsLogin 0x04000000
#define kXR_tlsSess 0x08000000
#define kXR_tlsTPC 0x10000000

#define kXR_maxReqRetry 10

Expand Down Expand Up @@ -571,8 +572,9 @@ enum ExpectFlags {
kXR_ExpMask = 0x0f, // Isolate the relevant expect birs (encoded)
kXR_ExpNone = 0x00,
kXR_ExpBind = 0x01,
kXR_ExpLogin = 0x02,
kXR_ExpTPC = 0x03
kXR_ExpGPF = 0x02,
kXR_ExpLogin = 0x03,
kXR_ExpTPC = 0x04
};

};
Expand Down
5 changes: 4 additions & 1 deletion src/Xrd/XrdConfig.cc
Expand Up @@ -555,7 +555,10 @@ int XrdConfig::Configure(int argc, char **argv)
if (PortTLS > 0 && !XrdGlobal::tlsCtx)
{Log.Say("Config TLS port specification ignored; TLS not configured!");
PortTLS = -1;
}
} else {
ProtInfo.tlsCtx = XrdGlobal::tlsCtx;
ProtInfo.tlsPort = PortTLS;
}

// Put largest buffer size in the env
//
Expand Down

0 comments on commit 357b4ac

Please sign in to comment.