est31
94141a79e2
Update README to reflect recent changes
2016-04-10 15:16:33 +02:00
est31
deaa11a7c2
Improve format
...
Don't align a function call continuation with
spaces. I don't know why clang-format did this,
but now it doesn't seem to do it anymore.
2016-04-10 14:44:42 +02:00
est31
6f38189279
Fix "control reaches end of function" warning
2016-04-10 04:05:09 +02:00
est31
0362a6e36e
Update README with clang-format info
2016-04-10 04:02:44 +02:00
est31
66323332eb
Format code with clang-format
...
Voice of world control said: let there be peace about code style.
And there was no more fighting.
Voice of world control saw that it was good.
2016-04-10 04:02:44 +02:00
est31
2a90017b0f
Preparations for clang-format
2016-04-10 04:02:39 +02:00
est31
55e8af5ee3
Remove SRP pcgrandom
...
not required anymore :)
2016-04-10 01:26:47 +02:00
est31
9cea7e5564
Check f{read,close} retvals
...
Fixes #1 .
2016-04-10 01:26:41 +02:00
est31
16bffd8db4
Error case fixes
...
* Make the library watertight if srp_alloc returns NULL.
For this, we changed the return value to SRP_Result at some places.
Also, we fixed a case where
* Fix username not being freed on error case
* More goto spaghetti 🍝 🎉 to handle the additional cases more easily
* Couple of other fixes, like changing SRP_Result order.
2016-04-10 00:30:22 +02:00
est31
a78f43854d
Only use secure random
...
And fail if no secure random could be found
2016-04-09 23:26:38 +02:00
est31
b9d057842f
Add gitignore
...
Also rename executable name of quick compile helper
2016-04-09 23:21:33 +02:00
est31
695822e45d
Don't compile pcgrandom on windows
...
There it isn't needed.
2015-11-08 18:15:00 +01:00
est31
ea7a19c6a1
Fix an enum name useage in test_srp.c
2015-09-30 09:17:10 +02:00
est31
e9c5d754de
Remove sizeof(char) useage
2015-09-30 09:14:00 +02:00
est31
d97da9e7c7
Better return value and error checking
2015-09-30 08:43:03 +02:00
est31
29ae96092e
Some testing log improvements
2015-09-30 08:07:49 +02:00
est31
707d1854cd
Allow users to set custom memory functions
2015-09-30 08:03:22 +02:00
est31
a736c0c856
Fix some memory allocation issues
2015-09-30 01:03:38 +02:00
est31
44c909e6b4
Initialize random for verification key generation too
2015-08-06 04:59:38 +02:00
est31
8d33413276
Make OPENSSL_cleanse available to sha1 too
2015-07-24 21:46:50 +02:00
est31
84a07dde15
Check output of mpz_set_str and fix leak on error condition
2015-07-24 21:39:23 +02:00
Ner'zhul
c6da9eeb3f
Fix clang always-true warning
2015-07-24 21:19:25 +02:00
est31
3e3af1139a
Use our own sha.h file
...
Before we relied on openssl's sha
2015-07-24 21:16:36 +02:00
est31
4fb2e1b411
Add compiling startup help
...
Its always nicer to have a finished command one can copy or adjust.
2015-05-24 21:07:23 +02:00
est31
e7c73f5c5e
Update README
...
Some changes occured the last weeks, document them.
2015-05-08 08:02:54 +02:00
est31
e263bbcf5c
Fix segfault and one more size_t conversion
2015-05-07 22:56:26 +02:00
est31
0fa0790802
Use size_t for length, fix some compilation warnings
2015-05-07 22:26:03 +02:00
est31
1fcd908406
Fix c++ compilability, add preprocessor mechanism for hashes, and use size_t on places
2015-05-07 22:07:54 +02:00
est31
a7a01d64a3
Use const only where we don't change anything
2015-05-07 20:19:33 +02:00
est31
2a7ff334b3
Whitespace style changes
...
Use tabs.
2015-05-07 20:19:30 +02:00
est31
b15de7b2ad
Fix windows compilability
2015-05-07 20:19:20 +02:00
est31
f78911d858
Fix c++ compilability
2015-05-01 10:23:18 +02:00
est31
16d6125ed5
Use PcgRandom from @kwolekr for OSes not providing /dev/urandom
...
Also, begin with style fix changes.
2015-05-01 10:01:14 +02:00
est31
e5a12b1d06
Add RFC 5054 test vector tests and SHA-1 algorithm
2015-04-24 07:41:12 +02:00
est31
f4f75901d5
Add easier way to debug
...
You only have to change the defines now to debug, not modify the code itself.
2015-04-24 07:41:12 +02:00
est31
84bccc73e3
Use separate verifier to point out that usernames for verifiers can be different
2015-04-24 07:41:12 +02:00
est31
8b5019ecc2
Memory fixes
2015-04-24 07:41:12 +02:00
est31
a7057b41dd
Remove trailing spaces in test_srp.c and add option to pass NULL
...
Now, you can pass NULL as username in srp_user_start_authentication, if you
don't need the username (usually in most cases).
2015-04-24 07:41:12 +02:00
est31
d98a48df06
Smaller fixes
...
Better checking and clearing of u and k, fix compiler failure for bytes_B
2015-04-24 07:41:12 +02:00
est31
6306b40e2a
Change copyright boilerplate
2015-04-24 07:41:12 +02:00
est31
e91130a97e
Fix couple of issues
...
Adds some changes of csrp forks:
* Pad in H_nn
* Try to become rfc 5054 compatible (still omitting 1536 bit)
* Make calculations of B and S based modulo N (this breaks compat, use with care)
* couple of other fixes (like freeing when aborting, or checking H_nn return value)
2015-04-24 07:40:59 +02:00
est31
1d6e37db06
Clarify README RNG OS situation
2015-04-15 04:15:16 +02:00
est31
9187622899
Fix build
...
Some compilers had problems with these inline functions.
2015-04-12 12:43:53 +02:00
est31
2cf2a29e35
Improve readme
2015-04-12 03:49:51 +02:00
est31
8c815b2214
Port to LibGMP
2015-04-12 03:40:29 +02:00
tcocagne
c0069bcc4e
Updated licence description in srp.h and srp.c to match the LICENSE file
2013-10-09 08:08:49 -05:00
tcocagne
fc91cd4a18
Converted to Unix line endings
2013-04-02 21:32:42 -05:00
tcocagne
ac4f7186bd
Aesthetic change
2013-04-02 21:29:22 -05:00
cocagne
542e43da6f
Merge pull request #1 from hoccer/fix_uninitialized_ptr
...
avoid returning an uninitialized pointer
2013-04-02 19:24:49 -07:00
David Siegel
48d9005e0e
avoid returning an uninitialized pointer
2013-04-03 02:42:56 +02:00