diff options
author | Christian Beier <[email protected]> | 2017-09-02 17:02:38 +0200 |
---|---|---|
committer | Christian Beier <[email protected]> | 2017-09-02 17:02:38 +0200 |
commit | 98e1be528f8c39a5c196ce251338e24bca948d90 (patch) | |
tree | 903dcb4bcf92e41c71b7ed41d9533a597b0f2daa /client_examples | |
parent | 1155edec9ecc8eab112d7131f844a911d4aeca8e (diff) | |
parent | cb4e15c1aecbe283b87e4e97c1d485062ef7f571 (diff) | |
download | libtdevnc-98e1be528f8c39a5c196ce251338e24bca948d90.tar.gz libtdevnc-98e1be528f8c39a5c196ce251338e24bca948d90.zip |
Merge branch 'sasl2' of git://github.com/simonwaterman/libvncserver into simonwaterman-sasl2
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--; |