@@ -42,6 +42,12 @@ struct TSocketFriend {
4242 static Bool_t IsAuthenticated (const TSocket &s);
4343 static void SetSecContext (TSocket &s, TSecContext *ctx);
4444 static TSecContext *GetSecContext (const TSocket &s);
45+
46+ static TSocket *CreateAuthSocket (const char *user, const char *host,
47+ Int_t port, Int_t size = 0 ,
48+ Int_t tcpwindowsize = -1 , TSocket *s = nullptr , Int_t *err = nullptr );
49+ static TSocket *CreateAuthSocket (const char *url, Int_t size = 0 ,
50+ Int_t tcpwindowsize = -1 , TSocket *s = nullptr , Int_t *err = nullptr );
4551};
4652} // namespace ROOT::Deprecated
4753
@@ -183,9 +189,15 @@ friend struct ROOT::Deprecated::TSocketFriend;
183189
184190 static TSocket *CreateAuthSocket (const char *user, const char *host,
185191 Int_t port, Int_t size = 0 ,
186- Int_t tcpwindowsize = -1 , TSocket *s = nullptr , Int_t *err = nullptr );
192+ Int_t tcpwindowsize = -1 , TSocket *s = nullptr , Int_t *err = nullptr )
193+ R__DEPRECATED(6 , 42 , " Socket authentication is deprecated. See README.AUTH for details." )
194+ { return ROOT::Deprecated::TSocketFriend::CreateAuthSocket (
195+ user, host, port, size, tcpwindowsize, s, err); }
187196 static TSocket *CreateAuthSocket (const char *url, Int_t size = 0 ,
188- Int_t tcpwindowsize = -1 , TSocket *s = nullptr , Int_t *err = nullptr );
197+ Int_t tcpwindowsize = -1 , TSocket *s = nullptr , Int_t *err = nullptr )
198+ R__DEPRECATED(6 , 42 , " Socket authentication is deprecated. See README.AUTH for details." )
199+ { return ROOT::Deprecated::TSocketFriend::CreateAuthSocket (url, size, tcpwindowsize, s, err); }
200+
189201 static void NetError (const char *where, Int_t error);
190202
191203 ClassDefOverride (TSocket,0 ) // This class implements client sockets
0 commit comments