Copyright 2012 7337621 Canada Corp.
All rights reserved

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL 7337621 CANADA CORP. BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Code included from BSDiff:

  Copyright 2003-2005 Colin Percival
  All rights reserved

  Redistribution and use in source and binary forms, with or without
  modification, are permitted providing that the following conditions 
  are met:
  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.

  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  POSSIBILITY OF SUCH DAMAGE.

Code included from bsdiff4/cx_bsdiff:

  Copyright 2003-2005, Computronix (Canada) Ltd., Edmonton, Alberta, Canada.

  BSD PROTECTION LICENSE
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION, AND MODIFICATION
  ----------------------------------------------------------------

  0. Definitions.
     a) "Program", below, refers to any program or work distributed under
        the terms of this license.
     b) A "work based on the Program", below, refers to either the Program
        or any derivative work under copyright law.
     c) "Modification", below, refers to the act of creating derivative works.
     d) "You", below, refers to each licensee.

  1. Scope.
     This license governs the copying, distribution, and modification of the
     Program.  Other activities are outside the scope of this license; The
     act of running the Program is not restricted, and the output from the
     Program is covered only if its contents constitute a work based on the
     Program.

  2. Verbatim copies.
     You may copy and distribute verbatim copies of the Program as you
     receive it, in any medium, provided that you conspicuously and
     appropriately publish on each copy an appropriate copyright notice; keep
     intact all the notices that refer to this License and to the absence of
     any warranty; and give any other recipients of the Program a copy of this
     License along with the Program.

  3. Modification and redistribution under closed license.
     You may modify your copy or copies of the Program, and distribute
     the resulting derivative works, provided that you meet the
     following conditions:
     a) The copyright notice and disclaimer on the Program must be reproduced
        and included in the source code, documentation, and/or other materials
      provided in a manner in which such notices are normally distributed.
   b) The derivative work must be clearly identified as such, in order that
      it may not be confused with the original work.
   c) The license under which the derivative work is distributed must
      expressly prohibit the distribution of further derivative works.

  4. Modification and redistribution under open license.
     You may modify your copy or copies of the Program, and distribute
     the resulting derivative works, provided that you meet the
     following conditions:
     a) The copyright notice and disclaimer on the Program must be reproduced
        and included in the source code, documentation, and/or other materials
        provided in a manner in which such notices are normally distributed.
     b) You must clearly indicate the nature and date of any changes made
        to the Program.  The full details need not necessarily be included in
        the individual modified files, provided that each modified file is
        clearly marked as such and instructions are included on where the
        full details of the modifications may be found.
     c) You must cause any work that you distribute or publish, that in whole
        or in part contains or is derived from the Program or any part
        thereof, to be licensed as a whole at no charge to all third
        parties under the terms of this License.

  5. Implied acceptance.
     You may not copy or distribute the Program or any derivative works except
     as expressly provided under this license.  Consequently, any such action
     will be taken as implied acceptance of the terms of this license.

  6. NO WARRANTY.
     THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
     INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
     AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
     THE COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
     REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE FOR ANY DIRECT,
     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING, BUT
     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
     USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
     ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
     TORT, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
     POSSIBILITY OF SUCH DAMAGES.

Code included from node-bsdiff:

  Copyright 2012 Michael Phan-Ba

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
