diff options
| author | simon <root@simon.home> | 2017-04-21 01:24:56 +0100 | 
|---|---|---|
| committer | simon <watermansrdev@gmail.com> | 2017-06-25 01:07:40 +0100 | 
| commit | cb4e15c1aecbe283b87e4e97c1d485062ef7f571 (patch) | |
| tree | 462fb00816ccf67e418a736de9bb0c39c173e121 /client_examples | |
| parent | c80879ee69bcad51564b8b183f63131934006bf5 (diff) | |
| download | libtdevnc-cb4e15c1aecbe283b87e4e97c1d485062ef7f571.tar.gz libtdevnc-cb4e15c1aecbe283b87e4e97c1d485062ef7f571.zip  | |
Added SASL authentication support
Added SASL support to OpenSSL
Diffstat (limited to 'client_examples')
| -rw-r--r-- | client_examples/ppmtest.c | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/client_examples/ppmtest.c b/client_examples/ppmtest.c index b8602f0..eeafc22 100644 --- a/client_examples/ppmtest.c +++ b/client_examples/ppmtest.c @@ -58,12 +58,25 @@ static void SaveFramebufferAsPPM(rfbClient* client, int x, int y, int w, int h)  	fclose(f);  } +char * getuser(rfbClient *client) +{ +return strdup("testuser@test"); +} + +char * getpassword(rfbClient *client) +{ +return strdup("Password"); +} +  int  main(int argc, char **argv)  {  	rfbClient* client = rfbGetClient(8,3,4);  	time_t t=time(NULL); +        client->GetUser = getuser; +        client->GetPassword = getpassword; +  	if(argc>1 && !strcmp("-print",argv[1])) {  		client->GotFrameBufferUpdate = PrintRect;  		argv[1]=argv[0]; argv++; argc--;  | 
