Commit Graph

22 Commits (master)

Author SHA1 Message Date
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 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 d97da9e7c7 Better return value and error checking 2015-09-30 08:43:03 +02:00
est31 707d1854cd Allow users to set custom memory functions 2015-09-30 08:03:22 +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 e5a12b1d06 Add RFC 5054 test vector tests and SHA-1 algorithm 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 6306b40e2a Change copyright boilerplate 2015-04-24 07:41:12 +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 270d1bf303 Included comments by Jason Resch for minor security improvements 2012-10-16 09:50:35 -05:00
Tom Cocagne 69e3d44428 added 8192 bit NG 2011-02-08 14:10:17 -05:00
Tom Cocagne d6be151bbc Renamed opaque srp_gen_sv to srp_create_salted_verification_key 2011-01-04 11:40:45 -05:00
Tom Cocagne c9db82906d updated random number generator seeding. added docs 2010-11-24 16:23:03 -05:00
Tom Cocagne 775cb3ea1c removed need for init/fini functions 2010-11-24 11:41:19 -05:00
Tom Cocagne f4650c1c45 Added hash and Ng specification 2010-11-24 11:26:03 -05:00
Tom Cocagne 7ec0c6c2ae initial commit 2010-10-01 14:32:10 -04:00