Added rfc5054 compatibility. Used the implementation from hoccer/csrp/fix_rfc5054_cmpat as the reference implementation but added a configurable switch to choose either the old or new behavior
Fix compilation error GCC 4.7+

Now srp.c can be compiled on GCC 4.7+ without -fpermissive. (Tested with -wall)
remove trailing space
Merge pull request #4 from 0xbaadf00d/patch-1

Fix compilation error GCC 4.7+ and remove trailing white space.
Fixed error induced by the gcc 4.7 patch. Incorrectly detected memory allocation failure
Added missing 1536 bit group for RFC 5054 compliance, reported by ya-isakov. NOTE this changes the NG_<numbits> enumeration in a backwards-incompliant manner
Removed backward compatibility problem with 1536-bit support
abort nicely when A == 0 (mod N)
avoid buffer underflow when A is longer than N
abort nicely when H_nn_* fails
Merge pull request #5 from miko3k/rfc5054_compat

Merged correctness fixes for handling potentially malicious user input. Thanks to miko3k.