Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-397

Rampart Utils - Some Code Improvements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • rampart
    • 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

      Attachments

        Activity

          People

            kau Malinda Kaushalye Kapuruge
            nabeel_yoosuf Nabeel Yoosuf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: