]> err.no Git - yubikey-server-c/log
yubikey-server-c
15 years agoWorkaround for buggy libykclient
Tollef Fog Heen [Mon, 19 Oct 2009 13:21:39 +0000 (15:21 +0200)]
Workaround for buggy libykclient

libykclient requires that parameters come in a particular order,
contrary to what the spec says.  Reorder parameters in order to not
break it.

15 years agoConstify first parameter to ysc_b64_decode
Tollef Fog Heen [Mon, 19 Oct 2009 13:21:05 +0000 (15:21 +0200)]
Constify first parameter to ysc_b64_decode

15 years agoDon't rely on strings being null-terminated.
Tollef Fog Heen [Mon, 19 Oct 2009 13:20:16 +0000 (15:20 +0200)]
Don't rely on strings being null-terminated.

15 years agouse id, not just i when checking the signature
Tollef Fog Heen [Mon, 19 Oct 2009 13:18:47 +0000 (15:18 +0200)]
use id, not just i when checking the signature

15 years agouse syslog rather than printf for logging
Tollef Fog Heen [Mon, 12 Oct 2009 10:59:01 +0000 (12:59 +0200)]
use syslog rather than printf for logging

15 years agoXXX comment
Tollef Fog Heen [Mon, 12 Oct 2009 10:20:28 +0000 (12:20 +0200)]
XXX comment

15 years agoUse select(2) to consume as little CPU as possible
Tollef Fog Heen [Mon, 12 Oct 2009 10:20:11 +0000 (12:20 +0200)]
Use select(2) to consume as little CPU as possible

15 years agoMore paranoia
Tollef Fog Heen [Mon, 12 Oct 2009 09:19:11 +0000 (11:19 +0200)]
More paranoia

15 years agoInitialise more variables to NULL
Tollef Fog Heen [Mon, 12 Oct 2009 09:14:18 +0000 (11:14 +0200)]
Initialise more variables to NULL

15 years agoValidate h if it exists in the request
Tollef Fog Heen [Mon, 12 Oct 2009 09:13:58 +0000 (11:13 +0200)]
Validate h if it exists in the request

15 years agoGet rid of error code struct too
Tollef Fog Heen [Mon, 12 Oct 2009 09:01:35 +0000 (11:01 +0200)]
Get rid of error code struct too

15 years agoBAD_OTP, not BAD OTP as the status
Tollef Fog Heen [Mon, 12 Oct 2009 08:52:05 +0000 (10:52 +0200)]
BAD_OTP, not BAD OTP as the status

15 years agoRemove return_codes enum, it is not used
Tollef Fog Heen [Mon, 12 Oct 2009 08:45:22 +0000 (10:45 +0200)]
Remove return_codes enum, it is not used

15 years agoRemove glib dependency from build system too
Tollef Fog Heen [Mon, 12 Oct 2009 08:34:10 +0000 (10:34 +0200)]
Remove glib dependency from build system too

15 years agoSwitch to ysc_b64_encode, get rid of glib dependency
Tollef Fog Heen [Mon, 12 Oct 2009 08:32:39 +0000 (10:32 +0200)]
Switch to ysc_b64_encode, get rid of glib dependency

15 years agoZero memory first, to quieten valgrind
Tollef Fog Heen [Mon, 12 Oct 2009 08:30:56 +0000 (10:30 +0200)]
Zero memory first, to quieten valgrind

15 years agoAdd utility functions
Tollef Fog Heen [Mon, 12 Oct 2009 08:25:38 +0000 (10:25 +0200)]
Add utility functions

15 years agoBetter error handling in get_data_for_uid
Tollef Fog Heen [Mon, 12 Oct 2009 06:52:44 +0000 (08:52 +0200)]
Better error handling in get_data_for_uid

15 years agoBetter error handling in split_otp
Tollef Fog Heen [Mon, 12 Oct 2009 06:46:41 +0000 (08:46 +0200)]
Better error handling in split_otp

15 years agoRemove unused variable
Tollef Fog Heen [Mon, 12 Oct 2009 06:46:19 +0000 (08:46 +0200)]
Remove unused variable

15 years agoError handling in split_otp
Tollef Fog Heen [Mon, 12 Oct 2009 06:44:46 +0000 (08:44 +0200)]
Error handling in split_otp

15 years agoError handling in get_shared_secret; free memory on failure
Tollef Fog Heen [Mon, 12 Oct 2009 06:44:21 +0000 (08:44 +0200)]
Error handling in get_shared_secret; free memory on failure

15 years agoPlug some memory leaks
Tollef Fog Heen [Mon, 12 Oct 2009 06:28:44 +0000 (08:28 +0200)]
Plug some memory leaks

15 years agoFree alloced memory
Tollef Fog Heen [Mon, 12 Oct 2009 06:17:54 +0000 (08:17 +0200)]
Free alloced memory

15 years agoAlways set the status pointer, rather than passing a const string to the sign function
Tollef Fog Heen [Mon, 12 Oct 2009 06:08:38 +0000 (08:08 +0200)]
Always set the status pointer, rather than passing a const string to the sign function

15 years agoRemove XXX comment, fixed
Tollef Fog Heen [Mon, 12 Oct 2009 06:05:26 +0000 (08:05 +0200)]
Remove XXX comment, fixed

15 years agoVarious cleanups
Tollef Fog Heen [Mon, 12 Oct 2009 06:04:49 +0000 (08:04 +0200)]
Various cleanups

15 years agoInitial write-up
Tollef Fog Heen [Fri, 9 Oct 2009 08:02:16 +0000 (10:02 +0200)]
Initial write-up

15 years agoDecude query string a bit, grab shared secret from db
Tollef Fog Heen [Wed, 7 Oct 2009 11:52:18 +0000 (13:52 +0200)]
Decude query string a bit, grab shared secret from db

15 years agoHard code port for now
Tollef Fog Heen [Fri, 18 Sep 2009 16:45:12 +0000 (18:45 +0200)]
Hard code port for now

15 years agoMust copy the data when creating a response
Tollef Fog Heen [Fri, 18 Sep 2009 16:44:57 +0000 (18:44 +0200)]
Must copy the data when creating a response

15 years ago0 != "0" when talking about C string
Tollef Fog Heen [Fri, 18 Sep 2009 16:43:48 +0000 (18:43 +0200)]
0 != "0" when talking about C string

15 years agoAdd initial postgresql support
Tollef Fog Heen [Fri, 18 Sep 2009 16:35:50 +0000 (18:35 +0200)]
Add initial postgresql support

15 years agoInitial commit
Tollef Fog Heen [Fri, 18 Sep 2009 14:58:35 +0000 (16:58 +0200)]
Initial commit