1 // AuthenticationServer.h
3 #ifndef NETFS_AUTHENTICATION_SERVER_H
4 #define NETFS_AUTHENTICATION_SERVER_H
6 #include <Application.h>
9 #include "HashString.h"
11 class AuthenticationServer
: public BApplication
{
13 AuthenticationServer();
14 ~AuthenticationServer();
18 static int32
_RequestThreadEntry(void* data
);
19 int32
_RequestThread();
21 bool _GetAuthentication(const char* context
,
22 const char* server
, const char* share
,
23 HashString
* user
, HashString
* password
);
24 status_t
_AddAuthentication(const char* context
,
25 const char* server
, const char* share
,
26 const char* user
, const char* password
,
28 status_t
_SendRequestReply(port_id port
, int32 token
,
29 status_t error
, bool cancelled
,
30 const char* user
, const char* password
);
37 struct AuthenticationRequest
;
39 friend class UserDialogTask
;
43 thread_id fRequestThread
;
44 ServerEntryMap
* fServerEntries
;
48 #endif // NETFS_AUTHENTICATION_SERVER_H