Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 7:07 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jan 27, 2009 11:23 am 
Offline

Joined: Tue Jan 27, 2009 10:36 am
Posts: 12
Been struggling the better part of last night trying to get server-j and libyubikey-client to work together from what I can tell by the very limited documentation those projects currently have it should be a pretty straight forward setup but it does not work. From what I can tell the result sent from the server is not being parsed correctly

D (("server response (%d): %.*s", client->curl_chunk_size,
client->curl_chunk_size, client->curl_chunk));
status = strstr (client->curl_chunk, "status=");

returns two lines insead of just status=X which is used later on

status=OK
h=rM+voSVNKheV2ULE/q+kFBff1BA=

the result of this is
Verification output (101): Internal parse error

how to fix this?


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Tue Jan 27, 2009 11:39 am 
Offline

Joined: Tue Jan 27, 2009 10:36 am
Posts: 12
ok, so first of all I'm no developer..

this however solves the problem until someone can fix it

228c228
< url_template = "http://api.yubico.com/wsapi/verify?id=%d&otp=%s";
---
> url_template = "http://127.0.0.1:8080/wsapi/verify?id=%d&otp=%s";
265d264
<
266a266,267
> strtok(status, "\n");


as you can see I also changed the url_template to fit my needs..


-M


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group