~ubuntu-branches/ubuntu/oneiric/cups/oneiric-proposed

« back to all changes in this revision

Viewing changes to cups/md5.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt, Till Kamppeter, Martin Pitt
  • Date: 2011-08-07 12:53:12 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110807125312-s323cyb3oqaxaemo
Tags: 1.5.0-1
[ Till Kamppeter ]
* New upstream release
* debian/patches/usb-backend-no-segfault-on-bad-device-id.patch,
  debian/patches/usb-backend-accept-old-usblp-uris.patch,
  debian/patches/use-ps2write-ghostscript-device-for-pdftops-filter.patch:
  Removed, included upstream.
* debian/patches/poppler-based-pdftops-fixes.patch,
  debian/patches/do-not-emit-ps-level-3-with-poppler.patch: Replaced patch
  by a new one only containing the parts which remain after removing the
  parts included upstream.
* debian/patches/pidfile.patch,
  debian/patches/ppd-poll-with-client-conf.patch,
  debian/patches/cups-avahi.patch,
  debian/patches/drop_unnecessary_dependencies.patch,
  debian/patches/do-not-broadcast-with-hostnames.patch,
  debian/patches/ppdc-dynamic-linking.patch,
  debian/patches/pstops-based-workflow-only-for-printing-ps-on-a-ps-printer.patch:
  Manually regenerated to adapt to upstream changes.
* debian/patches/manpage-translations.patch,
  debian/patches/rootbackends-worldreadable.patch,
  debian/patches/no-conffile-timestamp.patch,
  debian/patches/read-embedded-options-from-incoming-postscript-and-add-to-ipp-attrs.patch,
  debian/patches/cups-snmp-oids-device-id-hp-ricoh.patch,
  debian/patches/configure-default-browse-protocols.patch,
  debian/patches/logfiles_adm_readable.patch,
  debian/patches/confdirperms.patch,
  debian/patches/printer-filtering.patch,
  debian/patches/show-compile-command-lines.patch,
  debian/patches/log-debug-history-nearly-unlimited.patch:
  Refreshed using quilt.
* debian/patches/default-ripcache-size-auto.patch: Dropped, as once,
  Ghostscript 9.04 is ignoring the cache size value as it crashes easily
  otherwise (Ghostscript upstream bug #691586) and second, CUPS defaults to
  more reasonable 128 MB (now only used for imagetops).
* debian/patches/support-gzipped-charmaps.patch: Dropped, as the SBCS and
  VBCS character maps are not used any more by CUPS.
* debian/rules: Enable threads in the ./configure command line, as otherwise
  CUPS 1.5.0 does not build at all.
* debian/local/filters/pdf-filters/filter/pdftoijs.cxx,
  debian/local/filters/pdf-filters/filter/pdftoraster.cxx,
  debian/local/filters/pdf-filters/pdftoopvp/pdftoopvp.cxx,
  debian/local/filters/pdf-filters/pdftopdf/pdftopdf.cxx: Under CUPS 1.5.x.
  all programs using the PPD API of CUPS need to explicitly include
  "<cups/ppd.h>". Updated the PDF filter add-on package.
* debian/local/filters/pdf-filters/addtocups: Make the addition of the
  pdftopdf and pdftoopvp directories also work with CUPS 1.5.x.
* debian/local/filters/pdf-filters/addtocups,
  debian/local/filters/pdf-filters/removefromcups: Added a symbolic link
  cups/i18n.h, so that texttopdf builds.
* debian/cups-client.install: Install the new ipptool and its sample
  files and manpages.
* debian/cups-client.install: Commented out lines for dropped man page
  translations: ipptool, lppasswd, client.conf, ipptoolfile, cupsenable,
  lpadmin, lpinfo, cupsreject, cupsdisable, cupsaccept
* debian/cups-common.install, debian/rules: The /usr/share/cups/charmaps
  directory got removed from CUPS.
* debian/libcups2-dev.install: cups/i18n.h got renamed to
  cups/language-private.h. Install this as /usr/include/cups/i18n.h.
* debian/libcups2.symbols, debian/libcupsmime1.symbols: Updated.
* debian/cups.lintian-overrides, debian/cups.postinst, debian/cups.prerm,
  debian/cups.templates, debian/local/apparmor-profile: The "scsi"
  CUPS backend got dropped upstream, removed its treatment from these files.

[ Martin Pitt ]
* Add Serbian (Cyrillic) debconf translations, thanks Zlatan Todoric.
  (Closes: #635105)
* Add Serbian (Latin) debconf translations, thanks Zlatan Todoric.
  (Closes: #635108)
* debian/local/apparmor-profile: Allow access to serial printers on USB
  adapters. (LP: #677432)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
  Copyright 2005 by Easy Software Products
3
 
 
4
 
  This source file implements private APIs and should not be used in
5
 
  CUPS-based applications.
6
 
 
7
 
  Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
8
 
 
9
 
  This software is provided 'as-is', without any express or implied
10
 
  warranty.  In no event will the authors be held liable for any damages
11
 
  arising from the use of this software.
12
 
 
13
 
  Permission is granted to anyone to use this software for any purpose,
14
 
  including commercial applications, and to alter it and redistribute it
15
 
  freely, subject to the following restrictions:
16
 
 
17
 
  1. The origin of this software must not be misrepresented; you must not
18
 
     claim that you wrote the original software. If you use this software
19
 
     in a product, an acknowledgment in the product documentation would be
20
 
     appreciated but is not required.
21
 
  2. Altered source versions must be plainly marked as such, and must not be
22
 
     misrepresented as being the original software.
23
 
  3. This notice may not be removed or altered from any source distribution.
24
 
 
25
 
  L. Peter Deutsch
26
 
  ghost@aladdin.com
27
 
 
 
2
 * "$Id: md5.c 9042 2010-03-24 00:45:34Z mike $"
 
3
 *
 
4
 *   Private MD5 implementation for CUPS.
 
5
 *
 
6
 *   Copyright 2007-2010 by Apple Inc.
 
7
 *   Copyright 2005 by Easy Software Products
 
8
 *
 
9
 *   Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
 
10
 *
 
11
 *   This software is provided 'as-is', without any express or implied
 
12
 *   warranty.  In no event will the authors be held liable for any damages
 
13
 *   arising from the use of this software.
 
14
 *
 
15
 *   Permission is granted to anyone to use this software for any purpose,
 
16
 *   including commercial applications, and to alter it and redistribute it
 
17
 *   freely, subject to the following restrictions:
 
18
 *
 
19
 *   1. The origin of this software must not be misrepresented; you must not
 
20
 *      claim that you wrote the original software. If you use this software
 
21
 *      in a product, an acknowledgment in the product documentation would be
 
22
 *      appreciated but is not required.
 
23
 *   2. Altered source versions must be plainly marked as such, and must not be
 
24
 *      misrepresented as being the original software.
 
25
 *   3. This notice may not be removed or altered from any source distribution.
 
26
 *
 
27
 *   L. Peter Deutsch
 
28
 *   ghost@aladdin.com
28
29
 */
29
 
/*$Id: md5.c 8179 2008-12-10 05:03:11Z mike $ */
30
30
/*
31
31
  Independent implementation of MD5 (RFC 1321).
32
32
 
43
43
  1999-05-03 lpd Original version.
44
44
 */
45
45
 
46
 
#include "md5.h"
47
 
#include "string.h"
48
 
#ifdef __APPLE__
49
 
#  include "md5-apple.h"
50
 
#endif /* __APPLE__ */
 
46
#include "md5-private.h"
 
47
#include "string-private.h"
51
48
 
52
49
#define T1 0xd76aa478
53
50
#define T2 0xe8c7b756
342
339
    for (i = 0; i < 16; ++i)
343
340
        digest[i] = (unsigned char)(pms->abcd[i >> 2] >> ((i & 3) << 3));
344
341
}
 
342
 
 
343
 
 
344
/*
 
345
 * End of "$Id: md5.c 9042 2010-03-24 00:45:34Z mike $".
 
346
 */