Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
All
Description
I had a quick glance at some of the files in rampart utils..Some suggestions
1. In some functions the same value is recalculated several times which is not efficient.
E.g.
rampart_utils.c:rampart_generate_nonce(..)
OXS_BUFFER_GET_SIZE(buffer, env)
rampart_cryto_utils.c:rampart_crypto_sha1(..)
axis2_base64_decode_len(nonce)
2. Memory leaks
E.g.
rampart_crypt_utils.c:45 - what is allocated is not freed
3. I find many printf's - are these for debugging? the better way is to perform a runtime debugging.
Thanks
-Nabeel