~andersk/ubuntu/oneiric/openssl/spurious-reboot

« back to all changes in this revision

Viewing changes to crypto/bn/bn.h

  • Committer: Package Import Robot
  • Author(s): Steve Beattie
  • Date: 2011-09-14 22:06:03 UTC
  • mfrom: (11.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20110914220603-tsuxw8z3kt4lx9oc
Tags: 1.0.0e-2ubuntu1
* Resynchronise with Debian, fixes CVE-2011-1945, CVE-2011-3207 and
  CVE-2011-3210 (LP: #850608). Remaining changes:
  - debian/libssl1.0.0.postinst:
    + Display a system restart required notification bubble on libssl1.0.0
      upgrade.
    + Use a different priority for libssl1.0.0/restart-services depending
      on whether a desktop, or server dist-upgrade is being performed.
  - debian/{libssl1.0.0-udeb.dirs, control, rules}: Create
    libssl1.0.0-udeb, for the benefit of wget-udeb (no wget-udeb package
    in Debian).
  - debian/{libcrypto1.0.0-udeb.dirs, libssl1.0.0.dirs, libssl1.0.0.files,
    rules}: Move runtime libraries to /lib, for the benefit of
    wpasupplicant.
  - debian/patches/aesni.patch: Backport Intel AES-NI support, now from
    http://rt.openssl.org/Ticket/Display.html?id=2065 rather than the
    0.9.8 variant.
  - debian/patches/Bsymbolic-functions.patch: Link using
    -Bsymbolic-functions.
  - debian/patches/perlpath-quilt.patch: Don't change perl #! paths under
    .pc.
  - debian/rules:
    + Don't run 'make test' when cross-building.
    + Use host compiler when cross-building.  Patch from Neil Williams.
    + Don't build for processors no longer supported: i486, i586 (on
      i386), v8 (on sparc).
    + Fix Makefile to properly clean up libs/ dirs in clean target.
    + Replace duplicate files in the doc directory with symlinks.
* debian/libssl1.0.0.postinst: only display restart notification on
  servers (LP: #244250)

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
#define BN_HEX_FMT2     "%08X"
254
254
#endif
255
255
 
 
256
/* 2011-02-22 SMS.
 
257
 * In various places, a size_t variable or a type cast to size_t was
 
258
 * used to perform integer-only operations on pointers.  This failed on
 
259
 * VMS with 64-bit pointers (CC /POINTER_SIZE = 64) because size_t is
 
260
 * still only 32 bits.  What's needed in these cases is an integer type
 
261
 * with the same size as a pointer, which size_t is not certain to be. 
 
262
 * The only fix here is VMS-specific.
 
263
 */
 
264
#if defined(OPENSSL_SYS_VMS)
 
265
# if __INITIAL_POINTER_SIZE == 64
 
266
#  define PTR_SIZE_INT long long
 
267
# else /* __INITIAL_POINTER_SIZE == 64 */
 
268
#  define PTR_SIZE_INT int
 
269
# endif /* __INITIAL_POINTER_SIZE == 64 [else] */
 
270
#else /* defined(OPENSSL_SYS_VMS) */
 
271
# define PTR_SIZE_INT size_t
 
272
#endif /* defined(OPENSSL_SYS_VMS) [else] */
 
273
 
256
274
#define BN_DEFAULT_BITS 1280
257
275
 
258
276
#define BN_FLG_MALLOCED         0x01