Skip to content
Snippets Groups Projects
  1. Oct 27, 2016
    • Corey Farrell's avatar
      Remove ASTERISK_REGISTER_FILE. · a6e5bae3
      Corey Farrell authored
      ASTERISK_REGISTER_FILE no longer has any purpose so this commit removes
      all traces of it.
      
      Previously exported symbols removed:
      * __ast_register_file
      * __ast_unregister_file
      * ast_complete_source_filename
      
      This also removes the mtx_prof static variable that was declared when
      MTX_PROFILE was enabled.  This variable was only used in lock.c so it
      is now initialized in that file only.
      
      ASTERISK-26480 #close
      
      Change-Id: I1074af07d71f9e159c48ef36631aa432c86f9966
      a6e5bae3
  2. Apr 13, 2015
    • Matt Jordan's avatar
      git migration: Refactor the ASTERISK_FILE_VERSION macro · 4a582616
      Matt Jordan authored
      Git does not support the ability to replace a token with a version
      string during check-in. While it does have support for replacing a
      token on clone, this is somewhat sub-optimal: the token is replaced
      with the object hash, which is not particularly easy for human
      consumption. What's more, in practice, the source file version was often
      not terribly useful. Generally, when triaging bugs, the overall version
      of Asterisk is far more useful than an individual SVN version of a file. As a
      result, this patch removes Asterisk's support for showing source file
      versions.
      
      Specifically, it does the following:
      
      * Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
        remove passing the version in with the macro. Other facilities
        than 'core show file version' make use of the file names, such as
        setting a debug level only on a specific file. As such, the act of
        registering source files with the Asterisk core still has use. The
        macro rename now reflects the new macro purpose.
      
      * main/asterisk:
        - Refactor the file_version structure to reflect that it no longer
          tracks a version field.
        - Remove the "core show file version" CLI command. Without the file
          version, it is no longer useful.
        - Remove the ast_file_version_find function. The file version is no
          longer tracked.
        - Rename ast_register_file_version/ast_unregister_file_version to
          ast_register_file/ast_unregister_file, respectively.
      
      * main/manager: Remove value from the Version key of the ModuleCheck
        Action. The actual key itself has not been removed, as doing so would
        absolutely constitute a backwards incompatible change. However, since
        the file version is no longer tracked, there is no need to attempt to
        include it in the Version key.
      
      * UPGRADE: Add notes for:
        - Modification to the ModuleCheck AMI Action
        - Removal of the "core show file version" CLI command
      
      Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
      4a582616
  3. May 17, 2013
  4. May 03, 2012
    • Michael L. Young's avatar
      Update security events unit tests · fdf3cd0e
      Michael L. Young authored
      The security events framework API was changed in Asterisk 10 but the unit tests
      were not updated at the same time.
      
      This patch does the following:
      * Adds two more security events that were added to the API 
      * Add challenge, received_challenge and received_hash in the inval_password 
        security event unit test
      
      (Closes issue ASTERISK-19760)
      Reported by: Michael L. Young
      Tested by: Michael L. Young
      Patches:
      issue-asterisk-19760-trunk.diff uploaded by Michael L. Young (license 5026)
      
      Review: https://reviewboard.asterisk.org/r/1897/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@365248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fdf3cd0e
  5. Apr 18, 2012
  6. Sep 29, 2011
  7. Aug 16, 2011
  8. Jul 14, 2011
  9. Jul 11, 2009
    • Russell Bryant's avatar
      Add an API for reporting security events, and a security event logging module. · 4cf8a968
      Russell Bryant authored
      This commit introduces the security events API.  This API is to be used by
      Asterisk components to report events that have security implications.
      A simple example is when a connection is made but fails authentication.  These
      events can be used by external tools manipulate firewall rules or something
      similar after detecting unusual activity based on security events.
      
      Inside of Asterisk, the events go through the ast_event API.  This means that
      they have a binary encoding, and it is easy to write code to subscribe to these
      events and do something with them.
      
      One module is provided that is a subscriber to these events - res_security_log.
      This module turns security events into a parseable text format and sends them
      to the "security" logger level.  Using logger.conf, these log entries may be
      sent to a file, or to syslog.
      
      One service, AMI, has been fully updated for reporting security events.
      AMI was chosen as it was a fairly straight forward service to convert.
      The next target will be chan_sip.  That will be more complicated and will
      be done as its own project as the next phase of security events work.
      
      For more information on the security events framework, see the documentation
      generated from doc/tex/.  "make asterisk.pdf"
      
      Review: https://reviewboard.asterisk.org/r/273/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@206021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      4cf8a968
Loading